Browse Source

Add admin check for addROle

master
Abheek Dhawan 4 years ago
parent
commit
916ba84596
  1. 4
      index.js

4
index.js

@ -112,7 +112,9 @@ client.on("message", async message => {
});
async function addRole(message) {
if (!message.member.hasPermission('ADMINISTRATOR')) {
message.reply("you do not have adequate permissions!")
}
if (!message.content.split(" ")[1]) {
message.reply("role query must contain at least 3 characters!")

Loading…
Cancel
Save