#16 fixed bug on client when checking username

This commit is contained in:
Logan Cusano
2024-03-24 03:01:33 -04:00
parent 7983a45281
commit 96b32d1241

View File

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