diff options
Diffstat (limited to 'commands/mod/whois.js')
-rw-r--r-- | commands/mod/whois.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/commands/mod/whois.js b/commands/mod/whois.js index 6ffd8e6..48f3fdf 100644 --- a/commands/mod/whois.js +++ b/commands/mod/whois.js @@ -62,7 +62,11 @@ module.exports = { this.p_role(client,Discord,interaction,role) if(user!=null){ await interaction.guild.members.fetch() + let _user = user user = interaction.guild.members.cache.get(user.id) + if(!user){ + return interaction.reply({content:"<@"+_user.id+"> not found (have they left?)",ephemeral: true}) + } this.p_user(client,Discord,interaction,user) } }, |