userinfo: nullcheck getting member to fix slash commands in guilds without bot added

This commit is contained in:
Cynthia Foxwell 2024-10-09 14:24:45 -06:00
parent d3fda76957
commit e3991b5be7

View file

@ -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) {