From 96a94dcae7d74833a3ac434c5a636355352be597 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Wed, 31 Mar 2021 20:29:19 -0500 Subject: [PATCH] Try message.member instead of message.author --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index a8d46ae..1791315 100644 --- a/index.js +++ b/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; }