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 6defa07 commit 12def5b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/classes/DiscordBot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ export default class DiscordBot {
});

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

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 (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
//@typescript-eslint/no-misused-promises
this.client.on('messageCreate', async message => this.onMessage(message));

Check failure on line 39 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 39 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 39 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 +51,8 @@ export default class DiscordBot {
}
]);

void this.client.on('interactionCreate', async interaction => {
//@typescript-eslint/no-misused-promises
this.client.on('interactionCreate', async interaction => {

Check failure on line 55 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 55 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 55 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 12def5b

Please sign in to comment.