Discord.js-Bot-Development
Discord.js-Bot-Development copied to clipboard
Better serverinfo command
Remember that "IconURL" shouldnt be used as a function, this gives back an error.
You need to change these two code lines:
.setAuthor(message.guild.name, message.guild.iconURL()) .setThumbnail(message.guild.iconURL())
Change it into this or it simply wont work since iconURL isnt a valid function.
.setAuthor(message.guild.name, message.guild.iconURL) .setThumbnail(message.guild.iconURL)
Sorry, this code was originally made for Discord.js version 12.0.0-dev, in this version it needs to be iconURL() and avatarURL()
I've fixed it