From 2f9cc0563b36112db0cc366564daa1b65ccbde98 Mon Sep 17 00:00:00 2001 From: Anthony M <47640864+IDeletedSystem64@users.noreply.github.com> Date: Fri, 12 Mar 2021 10:57:13 -0600 Subject: [PATCH] Fix setnick permission issue --- commands/setnick.js | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/commands/setnick.js b/commands/setnick.js index 2a1dd30..ad9d002 100644 --- a/commands/setnick.js +++ b/commands/setnick.js @@ -1,13 +1,10 @@ module.exports = { name: 'setnick', - description: 'Sets yours or another users nickname', - execute(client, message, args,) { - new Discord.GuildMember(data, guild); - const guild = guild.fetch - const member = guild.member(message.author) - if (message.channel.permissionsFor(message.author).has("CHANGE_NICKNAME")){ - - } else { - message.channel.send("no permission") - } + description: 'i genuinely fucking dont know. :SylvPain:', + execute(client, message, args, Discord) { + if (message.channel.permissionsFor(message.author).has("CHANGE_NICKNAME")) { + message.channel.send("meow") + } else { + message.channel.send("no permission") + }; }} \ No newline at end of file