Update give command to allow currency to be given #220

Merged
Vylpes merged 2 commits from feature/206-give-currency into develop 2024-05-11 12:48:48 +01:00
3 changed files with 8 additions and 7 deletions
Showing only changes of commit b741ac154c - Show all commits

View file

@ -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`);

View file

@ -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<void>;