diff --git a/index.js b/index.js index 1791315..60edbf2 100644 --- a/index.js +++ b/index.js @@ -19,7 +19,7 @@ client.on("message", message => { }); async function bulkDelete(message) { - if (!message.member.permissions.toArray().has('ADMINISTRATOR')) { + if (!message.member.hasPermission('ADMINISTRATOR')) { message.reply("you do not have permissions!"); return; }