Browse Source

Try message.member instead of message.author

master
Abheek Dhawan 4 years ago
parent
commit
96a94dcae7
  1. 2
      index.js

2
index.js

@ -19,7 +19,7 @@ client.on("message", message => {
});
async function bulkDelete(message) {
if (!message.author.permissions.toArray().has('ADMINISTRATOR')) {
if (!message.member.permissions.toArray().has('ADMINISTRATOR')) {
message.reply("you do not have permissions!");
return;
}

Loading…
Cancel
Save