#16 fixed bug on client when checking username
This commit is contained in:
@@ -99,7 +99,7 @@ export const getDiscordUsername = async (guildId) => {
|
||||
console.log("Requested username");
|
||||
if (activeDiscordClient) {
|
||||
// Fetch the guild
|
||||
const guild = await client.guilds.fetch(guildId);
|
||||
const guild = await activeDiscordClient.guilds.fetch(guildId);
|
||||
|
||||
// Fetch the bot member in the guild
|
||||
const botMember = await guild.members.fetch(client.user.id);
|
||||
|
||||
Reference in New Issue
Block a user