We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e727325 commit 8ba8fdaCopy full SHA for 8ba8fda
src/app.ts
@@ -40,8 +40,12 @@ client.on('warn', (warning) => {
40
});
41
42
const debugs: string[] = [];
43
+const MAX_DEBUG_LENGTH = 100;
44
client.on('debug', (debug) => {
45
debugs.push(debug.replace(getConfig('DISCORD_BOT_TOKEN'), 'DISCORD_BOT_TOKEN'));
46
+ if (debugs.length > MAX_DEBUG_LENGTH) {
47
+ debugs.shift();
48
+ }
49
50
51
client.on('message', async (msg) => {
0 commit comments