diff --git a/client/discordAudioBot/dabWrappers.mjs b/client/discordAudioBot/dabWrappers.mjs index 3cdcbc6..3b0b231 100644 --- a/client/discordAudioBot/dabWrappers.mjs +++ b/client/discordAudioBot/dabWrappers.mjs @@ -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);