diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-26 22:53:27 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-26 22:53:27 -0400 |
commit | 7990abdb511eeec2a114b124a3628b10bfefc342 (patch) | |
tree | c9cc92439bb0b8385e8fcd82c169fd6f86bb1974 /src/commands/moderation/mute.ts | |
parent | 80d5b5b11ae261945dc725a0a80115922003afcf (diff) | |
download | tanzanite-7990abdb511eeec2a114b124a3628b10bfefc342.tar.gz tanzanite-7990abdb511eeec2a114b124a3628b10bfefc342.tar.bz2 tanzanite-7990abdb511eeec2a114b124a3628b10bfefc342.zip |
chore: add new eslint rule
Diffstat (limited to 'src/commands/moderation/mute.ts')
-rw-r--r-- | src/commands/moderation/mute.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/moderation/mute.ts b/src/commands/moderation/mute.ts index 779f60d..31cd233 100644 --- a/src/commands/moderation/mute.ts +++ b/src/commands/moderation/mute.ts @@ -61,7 +61,7 @@ export default class MuteCommand extends BushCommand { { user, reason, force }: { user: BushUser; reason?: { duration: number; contentWithoutTime: string }; force: boolean } ): 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, 'mute', true, useForce); |