From b1b8b61abb1e7a6796682ec4346e9aadd35cdcb6 Mon Sep 17 00:00:00 2001 From: Nathan Turner Date: Wed, 9 Sep 2020 20:13:19 +0100 Subject: [PATCH] Log my permissions for better debugging (incase I get kicked if I 'don't work' but it's just a permissions problem) --- index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 2167d16..1f12ff5 100755 --- a/index.js +++ b/index.js @@ -29,8 +29,6 @@ client.on('message', async (message) => { let perms = message.channel.permissionsFor(message.guild.me); if (hook != null) { let mentions = message.mentions; - console.log(mentions.members.size); - console.log(mentions.roles.size); if (mentions.everyone || mentions.members.size || mentions.roles.size) { if (perms.has("MANAGE_WEBHOOKS")) { try { @@ -46,7 +44,8 @@ client.on('message', async (message) => { Full message: ${message.content}, Hook name: ${hook.name}, Hook PFP: ${hook.avatar}, - Hook ID: ${hook.id}`); + Hook ID: ${hook.id}, + My permissions: ${perms.bitfield}`); } } if (!message.author.bot) {