I'm writing a Discord bot that uses the following code to detect and process user messages:
bot.on('message', function (user, userID, channelID, message, evt) {
//Message handling and response code goes here
});
I want to add a command that only works if the user who sent it has the Administrator permission. Is there a way I could do this?