mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 08:22:22 +02:00
Fix all eslint v9 issues
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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.`
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user