From a643d05d6e5cdb2d8cb3731a32b4b29025af8a9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Mon, 30 Mar 2020 04:12:46 +0300 Subject: [PATCH] Trying to fix bitfield_invalid error when using stop command --- struct/check.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/struct/check.js b/struct/check.js index f16e9d4..d62bf83 100644 --- a/struct/check.js +++ b/struct/check.js @@ -10,8 +10,9 @@ module.exports = function (client, msg, command) { msg.channel.send(client.messageEmojis["x"] + client.messages.wrongVoiceChannel); return false; } + console.log(command.permission); if (!permissions.has(command.permission)) { - message.noPerms = client.messages.noPerms.replace("%commands.permissions%", commands.permissions); + message.noPerms = client.messages.noPerms.replace("%command.permission%", command.permission); msg.channel.send(client.messageEmojis["x"] + message.noPerms); return false; } else return true;