diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-31 17:28:25 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-31 17:28:25 -0400 |
commit | 9aa46f79516c0c044742339c59d471b43060d84f (patch) | |
tree | eeed189fe3d7637043b07c2a292aa2896a175476 /src/commands/moderation/kick.ts | |
parent | bada2976eed34a2530bc09683d2de17c71c744a8 (diff) | |
download | tanzanite-9aa46f79516c0c044742339c59d471b43060d84f.tar.gz tanzanite-9aa46f79516c0c044742339c59d471b43060d84f.tar.bz2 tanzanite-9aa46f79516c0c044742339c59d471b43060d84f.zip |
bug fixes etc
Diffstat (limited to 'src/commands/moderation/kick.ts')
-rw-r--r-- | src/commands/moderation/kick.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/commands/moderation/kick.ts b/src/commands/moderation/kick.ts index 2315712..341d83c 100644 --- a/src/commands/moderation/kick.ts +++ b/src/commands/moderation/kick.ts @@ -61,7 +61,10 @@ export default class KickCommand extends BushCommand { ): Promise<unknown> { const member = message.guild!.members.cache.get(user.id) as BushGuildMember; - if (!member) return await 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} The user you selected is not in the server or is not a valid user.` + ); if (!message.member) throw new Error(`message.member is null`); const useForce = force && message.author.isOwner(); const canModerateResponse = util.moderationPermissionCheck(message.member, member, 'kick', true, useForce); |