Skip to content

Commit

Permalink
🔨
Browse files Browse the repository at this point in the history
  • Loading branch information
idinium96 committed Jul 18, 2024
1 parent ee60ecf commit 6defa07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/classes/DiscordBot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export default class DiscordBot {
});

// 'ready' binding should be executed BEFORE the login() is complete
this.client.on('ready', this.onClientReady.bind(this));
this.client.on('messageCreate', async message => this.onMessage(message));
void this.client.on('ready', this.onClientReady.bind(this));

Check failure on line 36 in src/classes/DiscordBot.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Promise returned in function argument where a void return was expected

Check failure on line 36 in src/classes/DiscordBot.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Promise returned in function argument where a void return was expected
void this.client.on('messageCreate', async message => this.onMessage(message));

Check failure on line 37 in src/classes/DiscordBot.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Promise returned in function argument where a void return was expected

Check failure on line 37 in src/classes/DiscordBot.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Promise returned in function argument where a void return was expected
this.prefix = this.bot.options.miscSettings?.prefixes?.discord ?? this.prefix;
}

Expand All @@ -49,7 +49,7 @@ export default class DiscordBot {
}
]);

this.client.on('interactionCreate', async interaction => {
void this.client.on('interactionCreate', async interaction => {

Check failure on line 52 in src/classes/DiscordBot.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Promise returned in function argument where a void return was expected

Check failure on line 52 in src/classes/DiscordBot.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Promise returned in function argument where a void return was expected
if (!interaction.isChatInputCommand()) return;

if (interaction.commandName === 'uptime') {
Expand Down

0 comments on commit 6defa07

Please sign in to comment.