From 6fd891b6365d2c8e404b50cc266e431a503122b7 Mon Sep 17 00:00:00 2001 From: Anthony M <47640864+IDeletedSystem64@users.noreply.github.com> Date: Sun, 28 Feb 2021 00:39:52 -0600 Subject: [PATCH] honestly. i dont know what im doing send help --- commands/setnick.js | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/commands/setnick.js b/commands/setnick.js index bbe388e..dadccff 100644 --- a/commands/setnick.js +++ b/commands/setnick.js @@ -1,6 +1,13 @@ -//module.exports = { -// name: "setnick", -// description: "Set yours or another users nickname." -// execute(client, message, args) { - - \ No newline at end of file +const { DiscordAPIError } = require("discord.js") + +module.exports = { + name: "setnick", + description: "Set yours or another users nickname.", + execute(client, message, args) { + const guild = guild.fetch + const member = guild.member(message.author) + if (guild.member.hasPermission('CHANGE_NICKNAME')) { + message.channel.send("yes") + } else { + message.channel.send("no") + }}}