I\'m building a Discord bot and I want to have an if statement that will only proceed if the message author has an administrator role in the guild.
if
I\'v
On the GuildMember object, you have a hasPermission function available. So you can just do member.hasPermission('ADMINISTRATOR')
member.hasPermission('ADMINISTRATOR')
If you are interested in all the other strings, that are permission resolvable, you can find them in the discord.js docs.