userinfo: nullcheck getting member to fix slash commands in guilds without bot added
This commit is contained in:
parent
d3fda76957
commit
e3991b5be7
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ userinfo.callback = async function (msg, line) {
|
||||||
let guild, member;
|
let guild, member;
|
||||||
if (msg.guildID) {
|
if (msg.guildID) {
|
||||||
guild = msg.channel.guild ?? hf.bot.guilds.get(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) {
|
if (Date.now() > vencordFetch) {
|
||||||
|
|
Loading…
Reference in a new issue