diff --git a/src/buttonEvents/Claim.ts b/src/buttonEvents/Claim.ts index 9d29f7b..f15e1ae 100644 --- a/src/buttonEvents/Claim.ts +++ b/src/buttonEvents/Claim.ts @@ -42,7 +42,7 @@ export default class Claim extends ButtonEvent { await inventory.Save(Inventory, inventory); - let user = await User.FetchOneById(User, userId) || new User(userId, 300); + const user = await User.FetchOneById(User, userId) || new User(userId, 300); AppLogger.LogSilly("Button/Claim", `${user.Id} has ${user.Currency} currency`); diff --git a/src/commands/give.ts b/src/commands/give.ts index c2504c0..ebdebe4 100644 --- a/src/commands/give.ts +++ b/src/commands/give.ts @@ -56,12 +56,12 @@ export default class Give extends Command { } switch (interaction.options.getSubcommand()) { - case "card": - await this.GiveCard(interaction); - break; - case "currency": - await this.GiveCurrency(interaction); - break; + case "card": + await this.GiveCard(interaction); + break; + case "currency": + await this.GiveCurrency(interaction); + break; } } diff --git a/src/type/command.ts b/src/type/command.ts index 409a4ca..458a81e 100644 --- a/src/type/command.ts +++ b/src/type/command.ts @@ -1,6 +1,7 @@ import { CommandInteraction } from "discord.js"; export abstract class Command { + // eslint-disable-next-line @typescript-eslint/no-explicit-any -- CommandBuilder type is dynamic depending on options and can't be strictly typed public CommandBuilder: any; abstract execute(interaction: CommandInteraction): Promise;