From e3991b5be7a8c33f05fc010eb54881afc8d3265c Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Wed, 9 Oct 2024 14:24:45 -0600 Subject: [PATCH] userinfo: nullcheck getting member to fix slash commands in guilds without bot added --- src/modules/utility/userinfo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/utility/userinfo.js b/src/modules/utility/userinfo.js index d1b0073..4d23bbf 100644 --- a/src/modules/utility/userinfo.js +++ b/src/modules/utility/userinfo.js @@ -95,7 +95,7 @@ userinfo.callback = async function (msg, line) { let guild, member; if (msg.guildID) { guild = msg.channel.guild ?? hf.bot.guilds.get(msg.guildID); - member = guild.members.get(id); + member = guild?.members?.get(id); } if (Date.now() > vencordFetch) {