Fix all eslint v9 issues

This commit is contained in:
Dragon Fire
2024-04-06 18:16:23 -04:00
parent c055419ce1
commit ec6b3e4ed2
16 changed files with 11 additions and 50 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ module.exports = class Player {
const extra = await this.chooseCards(black, chosenCards);
if (!this.user.bot) await this.user.send(`Nice! Return to ${this.game.channel} to await the results!`);
return extra;
} catch (err) {
} catch {
this.strikes++;
return 0;
}
+1 -1
View File
@@ -29,7 +29,7 @@ module.exports = class Game {
for (const user of list) {
try {
await user.send(`You are ${roles[i] === 'detective' ? 'the' : 'a part of the'} **${roles[i]}**.`);
} catch (err) {
} catch {
await this.channel.send(
`${user}, I couldn't send a DM to you. Please open your DMs and use the \`me\` command to see your role.`
);