Hey there! Currently working on my own Discord bot and looking to implement the command !botinfo
.
When I enter this command, the goal is for it to display an embedded message in my channel. However, everything seems to be functioning properly except for one issue - the Discord bot avatar isn't showing up. Can anyone provide some assistance with this?
if (command === `${prefix}botinfo`) {
var botIcon = new bot.user.displayAvatarURL;
var botEmbed = new discord.MessageEmbed()
.setDescription("Discord bot info")
.setColor(0xF1C40F)
.setThumbnail(botIcon)
.addField("Bot name", bot.user.username);
return message.channel.send(botEmbed);
The specific error message that I'm encountering is ->
bot.user.displayAvatarURL is not a constructor