handle test behaviour on start up

This commit is contained in:
mightypanders
2022-05-05 21:39:10 +02:00
parent 8e8c18b3c1
commit 9ae406dfb3
3 changed files with 40 additions and 41 deletions

View File

@ -11,6 +11,7 @@ export class ExtendedClient extends Client {
super({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_SCHEDULED_EVENTS] })
}
public start() {
if (process.env.NODE_ENV === 'test') return
const promises = []
promises.push(this.registerSlashCommands())
promises.push(this.registerEventCallback())