aboutsummaryrefslogtreecommitdiff
path: root/src/commands/leveling/setXp.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/leveling/setXp.ts')
-rw-r--r--src/commands/leveling/setXp.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/commands/leveling/setXp.ts b/src/commands/leveling/setXp.ts
index 68be528..eeafff3 100644
--- a/src/commands/leveling/setXp.ts
+++ b/src/commands/leveling/setXp.ts
@@ -1,5 +1,4 @@
-import { AllowedMentions, BushCommand, Level, type BushMessage, type BushSlashMessage } from '#lib';
-import { type User } from 'discord.js';
+import { AllowedMentions, ArgType, BushCommand, Level, type BushMessage, type BushSlashMessage } from '#lib';
export default class SetXpCommand extends BushCommand {
public constructor() {
@@ -35,7 +34,10 @@ export default class SetXpCommand extends BushCommand {
});
}
- public override async exec(message: BushMessage | BushSlashMessage, { user, xp }: { user: User; xp: number }) {
+ public override async exec(
+ message: BushMessage | BushSlashMessage,
+ { user, xp }: { user: ArgType<'user'>; xp: ArgType<'abbreviatedNumber'> }
+ ) {
if (!message.guild) return await message.util.reply(`${util.emojis.error} This command can only be run in a guild.`);
if (!user.id) throw new Error('user.id is null');