aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moderation/kick.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-26 22:53:27 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-26 22:53:27 -0400
commit7990abdb511eeec2a114b124a3628b10bfefc342 (patch)
treec9cc92439bb0b8385e8fcd82c169fd6f86bb1974 /src/commands/moderation/kick.ts
parent80d5b5b11ae261945dc725a0a80115922003afcf (diff)
downloadtanzanite-7990abdb511eeec2a114b124a3628b10bfefc342.tar.gz
tanzanite-7990abdb511eeec2a114b124a3628b10bfefc342.tar.bz2
tanzanite-7990abdb511eeec2a114b124a3628b10bfefc342.zip
chore: add new eslint rule
Diffstat (limited to 'src/commands/moderation/kick.ts')
-rw-r--r--src/commands/moderation/kick.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/moderation/kick.ts b/src/commands/moderation/kick.ts
index bc7d9d2..5fd83b7 100644
--- a/src/commands/moderation/kick.ts
+++ b/src/commands/moderation/kick.ts
@@ -61,7 +61,7 @@ export default class KickCommand extends BushCommand {
): Promise<unknown> {
const member = message.guild.members.cache.get(user.id) as BushGuildMember;
- if (!member) message.util.reply(`${util.emojis.error} You cannot kick members that are not in the server.`);
+ if (!member) return await message.util.reply(`${util.emojis.error} You cannot kick members that are not in the server.`);
const useForce = force && message.author.isOwner();
const canModerateResponse = util.moderationPermissionCheck(message.member, member, 'kick', true, useForce);