Stop debugging messages
parent
ecaa861135
commit
ef22cd76dd
|
@ -17,7 +17,10 @@ async function main(): Promise<void> {
|
||||||
await client.loadEvents();
|
await client.loadEvents();
|
||||||
await client.loadCommands();
|
await client.loadCommands();
|
||||||
client.connect();
|
client.connect();
|
||||||
client.once('ready', () => client.on('debug', (message) => (client.getChannel('592170164322041856') as TextChannel).createMessage(message)));
|
client.once('ready', () => client.on('debug', (message) => {
|
||||||
|
if (message.includes('/messages')) return;
|
||||||
|
(client.getChannel('592170164322041856') as TextChannel).createMessage(message);
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
main();
|
main();
|
||||||
|
|
Loading…
Reference in New Issue