From c238b0279c7686ca45506b0909e376f241cf0e30 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Sun, 5 Sep 2021 17:48:37 -0400 Subject: bestower proofed --- src/commands/leveling/setLevel.ts | 2 ++ src/commands/leveling/setXp.ts | 2 ++ 2 files changed, 4 insertions(+) (limited to 'src/commands') diff --git a/src/commands/leveling/setLevel.ts b/src/commands/leveling/setLevel.ts index 108b5d2..f312356 100644 --- a/src/commands/leveling/setLevel.ts +++ b/src/commands/leveling/setLevel.ts @@ -55,6 +55,8 @@ export default class SetLevelCommand extends BushCommand { { user, level }: { user: User; level: number } ): Promise { if (!message.guild) return await message.util.reply(`${util.emojis.error} This command can only be run in a guild.`); + if (message.author.id === '496409778822709251') + return await message.util.reply(`${util.emojis.error} This command is Bestower proof.`); if (!user.id) throw new Error('user.id is null'); const [levelEntry] = await Level.findOrBuild({ diff --git a/src/commands/leveling/setXp.ts b/src/commands/leveling/setXp.ts index 7aff8e7..fdfd74f 100644 --- a/src/commands/leveling/setXp.ts +++ b/src/commands/leveling/setXp.ts @@ -58,6 +58,8 @@ export default class SetXpCommand extends BushCommand { { user, xp }: { user: User; xp: number } ): Promise { if (!message.guild) return await message.util.reply(`${util.emojis.error} This command can only be run in a guild.`); + if (message.author.id === '496409778822709251') + return await message.util.reply(`${util.emojis.error} This command is Bestower proof.`); if (!user.id) throw new Error('user.id is null'); const [levelEntry] = await Level.findOrBuild({ -- cgit