diff options
Diffstat (limited to 'src/commands/moderation/kick.ts')
-rw-r--r-- | src/commands/moderation/kick.ts | 2 |
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); |