#16 missed another reference

This commit is contained in:
Logan Cusano
2024-03-24 03:03:47 -04:00
parent 96b32d1241
commit e62be27f74

View File

@@ -102,7 +102,7 @@ export const getDiscordUsername = async (guildId) => {
const guild = await activeDiscordClient.guilds.fetch(guildId);
// Fetch the bot member in the guild
const botMember = await guild.members.fetch(client.user.id);
const botMember = await guild.members.fetch(activeDiscordClient.user.id);
// Return bot's nickname if available, otherwise return username
return botMember.nickname || botMember.user.username;