aboutsummaryrefslogtreecommitdiff
path: root/commands/mod/whois.js
diff options
context:
space:
mode:
authorame <[email protected]>2024-04-22 23:46:32 -0500
committerame <[email protected]>2024-04-22 23:46:32 -0500
commit2afa151657062ce8df30c6ff64878d798189d8ec (patch)
tree0e4e33f6093c38f19256be3755fdb850a6c7fb33 /commands/mod/whois.js
parente88415c6d38526c511879ac506ca3a508605ac7c (diff)
long time no commit
Diffstat (limited to 'commands/mod/whois.js')
-rw-r--r--commands/mod/whois.js4
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)
}
},