Discord.js-Bot-Development icon indicating copy to clipboard operation
Discord.js-Bot-Development copied to clipboard

Better serverinfo command

Open RoeeLupo opened this issue 6 years ago • 3 comments

RoeeLupo avatar Aug 29 '18 12:08 RoeeLupo

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)

ersu98 avatar Aug 30 '18 10:08 ersu98

Sorry, this code was originally made for Discord.js version 12.0.0-dev, in this version it needs to be iconURL() and avatarURL()

RoeeLupo avatar Aug 30 '18 11:08 RoeeLupo

I've fixed it

RoeeLupo avatar Aug 30 '18 11:08 RoeeLupo