I have exhausted a lot of options and attempts at this for the last week or two. I have everything setup right but I am struggling to target the bot's Nickname.
Desired Outcome: I want to update the Discord Bot Nickname (not the username) ever X seconds (in this case 10) to sync with the Binance ticker price.
Issue: targeting the Nickname of the bot properly without issuing a command. I am getting an error that 'me' is undefined
Code:
client.on('ready', () => {
setInterval(() => {
client.guilds.cache.find(guild => guild.id === 'GUILD_ID').me.setNickname("$" + '${ticker.DOGEUSDT}');
}, 10000);
})