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;