Skyler Grey | da16adf | 2023-03-05 10:22:12 +0000 | [diff] [blame] | 1 | import { LinkWarningFooter } from "./../../utils/defaults.js"; |
pineafan | 6de4da5 | 2023-03-07 20:43:44 +0000 | [diff] [blame^] | 2 | import { ActionRowBuilder, ButtonBuilder, CommandInteraction, GuildMember, ButtonStyle, Message, ButtonInteraction, ModalBuilder, TextInputBuilder, TextInputStyle } from "discord.js"; |
TheCodedProf | f86ba09 | 2023-01-27 17:10:07 -0500 | [diff] [blame] | 3 | import type { SlashCommandSubcommandBuilder } from "discord.js"; |
pineafan | 3276721 | 2022-03-14 21:27:39 +0000 | [diff] [blame] | 4 | import confirmationMessage from "../../utils/confirmationMessage.js"; |
pineafan | 4edb776 | 2022-06-26 19:21:04 +0100 | [diff] [blame] | 5 | import EmojiEmbed from "../../utils/generateEmojiEmbed.js"; |
pineafan | 3276721 | 2022-03-14 21:27:39 +0000 | [diff] [blame] | 6 | import keyValueList from "../../utils/generateKeyValueList.js"; |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 7 | import client from "../../utils/client.js"; |
PineaFan | e6ba788 | 2023-01-18 20:41:16 +0000 | [diff] [blame] | 8 | import { areTicketsEnabled, create } from "../../actions/createModActionTicket.js"; |
TheCodedProf | 94ff6de | 2023-02-22 17:47:26 -0500 | [diff] [blame] | 9 | import getEmojiByName from "../../utils/getEmojiByName.js"; |
pineafan | 3276721 | 2022-03-14 21:27:39 +0000 | [diff] [blame] | 10 | |
Skyler Grey | da16adf | 2023-03-05 10:22:12 +0000 | [diff] [blame] | 11 | const command = (builder: SlashCommandSubcommandBuilder) => |
| 12 | builder |
| 13 | .setName("nick") |
| 14 | .setDescription("Changes a users nickname") |
| 15 | .addUserOption((option) => option.setName("user").setDescription("The user to change").setRequired(true)) |
| 16 | .addStringOption((option) => |
| 17 | option.setName("name").setDescription("The name to set | Leave blank to clear").setRequired(false) |
| 18 | ); |
pineafan | 3276721 | 2022-03-14 21:27:39 +0000 | [diff] [blame] | 19 | |
pineafan | 6de4da5 | 2023-03-07 20:43:44 +0000 | [diff] [blame^] | 20 | const callback = async (interaction: CommandInteraction | ButtonInteraction, member?: GuildMember): Promise<unknown> => { |
PineaFan | e6ba788 | 2023-01-18 20:41:16 +0000 | [diff] [blame] | 21 | const { log, NucleusColors, entry, renderDelta, renderUser } = client.logger; |
pineafan | 6de4da5 | 2023-03-07 20:43:44 +0000 | [diff] [blame^] | 22 | let newNickname; |
| 23 | if (!interaction.isButton()) { |
| 24 | member = interaction.options.getMember("user") as GuildMember; |
| 25 | newNickname = interaction.options.get("name")?.value as string | undefined; |
| 26 | } |
| 27 | if (!member) return; |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 28 | // TODO:[Modals] Replace this with a modal |
pineafan | 6de4da5 | 2023-03-07 20:43:44 +0000 | [diff] [blame^] | 29 | let notify = false; |
pineafan | 02ba023 | 2022-07-24 22:16:15 +0100 | [diff] [blame] | 30 | let confirmation; |
Skyler Grey | ad00217 | 2022-08-16 18:48:26 +0100 | [diff] [blame] | 31 | let timedOut = false; |
| 32 | let success = false; |
PineaFan | e6ba788 | 2023-01-18 20:41:16 +0000 | [diff] [blame] | 33 | let createAppealTicket = false; |
pineafan | 6de4da5 | 2023-03-07 20:43:44 +0000 | [diff] [blame^] | 34 | let firstRun = !interaction.isButton(); |
PineaFan | e6ba788 | 2023-01-18 20:41:16 +0000 | [diff] [blame] | 35 | do { |
pineafan | 02ba023 | 2022-07-24 22:16:15 +0100 | [diff] [blame] | 36 | confirmation = await new confirmationMessage(interaction) |
| 37 | .setEmoji("PUNISH.NICKNAME.RED") |
| 38 | .setTitle("Nickname") |
Skyler Grey | 75ea917 | 2022-08-06 10:22:23 +0100 | [diff] [blame] | 39 | .setDescription( |
| 40 | keyValueList({ |
pineafan | 6de4da5 | 2023-03-07 20:43:44 +0000 | [diff] [blame^] | 41 | user: renderUser(member.user), |
Skyler Grey | 75ea917 | 2022-08-06 10:22:23 +0100 | [diff] [blame] | 42 | "new nickname": `${ |
pineafan | 6de4da5 | 2023-03-07 20:43:44 +0000 | [diff] [blame^] | 43 | newNickname |
| 44 | ? newNickname |
Skyler Grey | da16adf | 2023-03-05 10:22:12 +0000 | [diff] [blame] | 45 | : "*No nickname*" |
Skyler Grey | 75ea917 | 2022-08-06 10:22:23 +0100 | [diff] [blame] | 46 | }` |
| 47 | }) + |
Skyler Grey | da16adf | 2023-03-05 10:22:12 +0000 | [diff] [blame] | 48 | `Are you sure you want to ${ |
pineafan | 6de4da5 | 2023-03-07 20:43:44 +0000 | [diff] [blame^] | 49 | newNickname ? "change" : "clear" |
| 50 | } <@!${member.id}>'s nickname?` |
Skyler Grey | 75ea917 | 2022-08-06 10:22:23 +0100 | [diff] [blame] | 51 | ) |
pineafan | 02ba023 | 2022-07-24 22:16:15 +0100 | [diff] [blame] | 52 | .setColor("Danger") |
Skyler Grey | 75ea917 | 2022-08-06 10:22:23 +0100 | [diff] [blame] | 53 | .addCustomBoolean( |
PineaFan | e6ba788 | 2023-01-18 20:41:16 +0000 | [diff] [blame] | 54 | "appeal", |
| 55 | "Create appeal ticket", |
| 56 | !(await areTicketsEnabled(interaction.guild!.id)), |
Skyler Grey | da16adf | 2023-03-05 10:22:12 +0000 | [diff] [blame] | 57 | async () => |
| 58 | await create( |
| 59 | interaction.guild!, |
pineafan | 6de4da5 | 2023-03-07 20:43:44 +0000 | [diff] [blame^] | 60 | member!.user, |
Skyler Grey | da16adf | 2023-03-05 10:22:12 +0000 | [diff] [blame] | 61 | interaction.user, |
| 62 | "Nickname changed" |
| 63 | ), |
PineaFan | e6ba788 | 2023-01-18 20:41:16 +0000 | [diff] [blame] | 64 | "An appeal ticket will be created", |
| 65 | null, |
| 66 | "CONTROL.TICKET", |
| 67 | createAppealTicket |
| 68 | ) |
| 69 | .addCustomBoolean( |
Skyler Grey | 75ea917 | 2022-08-06 10:22:23 +0100 | [diff] [blame] | 70 | "notify", |
| 71 | "Notify user", |
| 72 | false, |
| 73 | null, |
PineaFan | e6ba788 | 2023-01-18 20:41:16 +0000 | [diff] [blame] | 74 | "The user will be sent a DM", |
PineaFan | a34d04b | 2023-01-03 22:05:42 +0000 | [diff] [blame] | 75 | null, |
Skyler Grey | 75ea917 | 2022-08-06 10:22:23 +0100 | [diff] [blame] | 76 | "ICONS.NOTIFY." + (notify ? "ON" : "OFF"), |
| 77 | notify |
| 78 | ) |
pineafan | 6de4da5 | 2023-03-07 20:43:44 +0000 | [diff] [blame^] | 79 | .addModal( |
| 80 | "Change nickname", |
| 81 | "ICONS.EDIT", |
| 82 | "modal", |
| 83 | newNickname ?? "", |
| 84 | new ModalBuilder() |
| 85 | .setTitle("Editing nickname") |
| 86 | .addComponents( |
| 87 | new ActionRowBuilder<TextInputBuilder>().addComponents( |
| 88 | new TextInputBuilder() |
| 89 | .setCustomId("default") |
| 90 | .setLabel("Nickname") |
| 91 | .setMaxLength(32) |
| 92 | .setRequired(false) |
| 93 | .setStyle(TextInputStyle.Short) |
| 94 | .setValue(newNickname ? newNickname : " ") |
| 95 | ) |
| 96 | ) |
| 97 | ) |
PineaFan | e6ba788 | 2023-01-18 20:41:16 +0000 | [diff] [blame] | 98 | .setFailedMessage("No changes were made", "Success", "PUNISH.NICKNAME.GREEN") |
| 99 | .send(!firstRun); |
| 100 | firstRun = false; |
Skyler Grey | ad00217 | 2022-08-16 18:48:26 +0100 | [diff] [blame] | 101 | if (confirmation.cancelled) timedOut = true; |
PineaFan | e6ba788 | 2023-01-18 20:41:16 +0000 | [diff] [blame] | 102 | else if (confirmation.success !== undefined) success = true; |
Skyler Grey | ad00217 | 2022-08-16 18:48:26 +0100 | [diff] [blame] | 103 | else if (confirmation.components) { |
Skyler Grey | da16adf | 2023-03-05 10:22:12 +0000 | [diff] [blame] | 104 | notify = confirmation.components["notify"]!.active; |
PineaFan | e6ba788 | 2023-01-18 20:41:16 +0000 | [diff] [blame] | 105 | createAppealTicket = confirmation.components["appeal"]!.active; |
pineafan | 02ba023 | 2022-07-24 22:16:15 +0100 | [diff] [blame] | 106 | } |
pineafan | 6de4da5 | 2023-03-07 20:43:44 +0000 | [diff] [blame^] | 107 | if (confirmation.modals) newNickname = confirmation.modals![0]!.value |
PineaFan | e6ba788 | 2023-01-18 20:41:16 +0000 | [diff] [blame] | 108 | } while (!timedOut && !success); |
| 109 | if (timedOut || !success) return; |
| 110 | let dmSent = false; |
| 111 | let dmMessage: Message; |
| 112 | const config = await client.database.guilds.read(interaction.guild!.id); |
Skyler Grey | ad00217 | 2022-08-16 18:48:26 +0100 | [diff] [blame] | 113 | try { |
| 114 | if (notify) { |
PineaFan | e6ba788 | 2023-01-18 20:41:16 +0000 | [diff] [blame] | 115 | const messageData: { |
| 116 | embeds: EmojiEmbed[]; |
| 117 | components: ActionRowBuilder<ButtonBuilder>[]; |
| 118 | } = { |
Skyler Grey | ad00217 | 2022-08-16 18:48:26 +0100 | [diff] [blame] | 119 | embeds: [ |
| 120 | new EmojiEmbed() |
| 121 | .setEmoji("PUNISH.NICKNAME.RED") |
| 122 | .setTitle("Nickname changed") |
| 123 | .setDescription( |
Skyler Grey | da16adf | 2023-03-05 10:22:12 +0000 | [diff] [blame] | 124 | `Your nickname was ${ |
pineafan | 6de4da5 | 2023-03-07 20:43:44 +0000 | [diff] [blame^] | 125 | newNickname ? "changed" : "cleared" |
Skyler Grey | da16adf | 2023-03-05 10:22:12 +0000 | [diff] [blame] | 126 | } in ${interaction.guild!.name}.` + |
pineafan | 6de4da5 | 2023-03-07 20:43:44 +0000 | [diff] [blame^] | 127 | (newNickname |
| 128 | ? `\nIt is now: ${newNickname}` |
Skyler Grey | ad00217 | 2022-08-16 18:48:26 +0100 | [diff] [blame] | 129 | : "") + |
| 130 | "\n\n" + |
PineaFan | e6ba788 | 2023-01-18 20:41:16 +0000 | [diff] [blame] | 131 | (createAppealTicket |
Skyler Grey | da16adf | 2023-03-05 10:22:12 +0000 | [diff] [blame] | 132 | ? `You can appeal this in the ticket created in <#${ |
| 133 | confirmation.components!["appeal"]!.response |
| 134 | }>` |
Skyler Grey | ad00217 | 2022-08-16 18:48:26 +0100 | [diff] [blame] | 135 | : "") |
| 136 | ) |
| 137 | .setStatus("Danger") |
Skyler Grey | da16adf | 2023-03-05 10:22:12 +0000 | [diff] [blame] | 138 | ], |
| 139 | components: [] |
PineaFan | e6ba788 | 2023-01-18 20:41:16 +0000 | [diff] [blame] | 140 | }; |
| 141 | if (config.moderation.nick.text && config.moderation.nick.link) { |
Skyler Grey | da16adf | 2023-03-05 10:22:12 +0000 | [diff] [blame] | 142 | messageData.embeds[0]!.setFooter(LinkWarningFooter); |
| 143 | messageData.components.push( |
| 144 | new ActionRowBuilder<ButtonBuilder>().addComponents( |
| 145 | new ButtonBuilder() |
PineaFan | e6ba788 | 2023-01-18 20:41:16 +0000 | [diff] [blame] | 146 | .setStyle(ButtonStyle.Link) |
| 147 | .setLabel(config.moderation.nick.text) |
Skyler Grey | da16adf | 2023-03-05 10:22:12 +0000 | [diff] [blame] | 148 | .setURL( |
| 149 | config.moderation.nick.link.replaceAll( |
| 150 | "{id}", |
pineafan | 6de4da5 | 2023-03-07 20:43:44 +0000 | [diff] [blame^] | 151 | member.id |
Skyler Grey | da16adf | 2023-03-05 10:22:12 +0000 | [diff] [blame] | 152 | ) |
| 153 | ) |
| 154 | ) |
| 155 | ); |
PineaFan | e6ba788 | 2023-01-18 20:41:16 +0000 | [diff] [blame] | 156 | } |
pineafan | 6de4da5 | 2023-03-07 20:43:44 +0000 | [diff] [blame^] | 157 | dmMessage = await member.send(messageData); |
PineaFan | e6ba788 | 2023-01-18 20:41:16 +0000 | [diff] [blame] | 158 | dmSent = true; |
Skyler Grey | ad00217 | 2022-08-16 18:48:26 +0100 | [diff] [blame] | 159 | } |
| 160 | } catch { |
PineaFan | e6ba788 | 2023-01-18 20:41:16 +0000 | [diff] [blame] | 161 | dmSent = false; |
Skyler Grey | ad00217 | 2022-08-16 18:48:26 +0100 | [diff] [blame] | 162 | } |
PineaFan | e6ba788 | 2023-01-18 20:41:16 +0000 | [diff] [blame] | 163 | let before: string | null; |
Skyler Grey | ad00217 | 2022-08-16 18:48:26 +0100 | [diff] [blame] | 164 | try { |
PineaFan | e6ba788 | 2023-01-18 20:41:16 +0000 | [diff] [blame] | 165 | before = member.nickname; |
pineafan | 6de4da5 | 2023-03-07 20:43:44 +0000 | [diff] [blame^] | 166 | member.setNickname(newNickname ?? null, "Nucleus Nickname command"); |
Skyler Grey | ad00217 | 2022-08-16 18:48:26 +0100 | [diff] [blame] | 167 | await client.database.history.create( |
| 168 | "nickname", |
PineaFan | e6ba788 | 2023-01-18 20:41:16 +0000 | [diff] [blame] | 169 | interaction.guild!.id, |
Skyler Grey | ad00217 | 2022-08-16 18:48:26 +0100 | [diff] [blame] | 170 | member.user, |
| 171 | interaction.user, |
| 172 | null, |
| 173 | before, |
pineafan | 6de4da5 | 2023-03-07 20:43:44 +0000 | [diff] [blame^] | 174 | newNickname |
Skyler Grey | ad00217 | 2022-08-16 18:48:26 +0100 | [diff] [blame] | 175 | ); |
Skyler Grey | ad00217 | 2022-08-16 18:48:26 +0100 | [diff] [blame] | 176 | } catch { |
| 177 | await interaction.editReply({ |
| 178 | embeds: [ |
| 179 | new EmojiEmbed() |
| 180 | .setEmoji("PUNISH.NICKNAME.RED") |
| 181 | .setTitle("Nickname") |
| 182 | .setDescription("Something went wrong and the users nickname could not be changed.") |
| 183 | .setStatus("Danger") |
| 184 | ], |
| 185 | components: [] |
| 186 | }); |
PineaFan | e6ba788 | 2023-01-18 20:41:16 +0000 | [diff] [blame] | 187 | if (dmSent) await dmMessage!.delete(); |
Skyler Grey | ad00217 | 2022-08-16 18:48:26 +0100 | [diff] [blame] | 188 | return; |
| 189 | } |
PineaFan | e6ba788 | 2023-01-18 20:41:16 +0000 | [diff] [blame] | 190 | const data = { |
| 191 | meta: { |
| 192 | type: "memberUpdate", |
| 193 | displayName: "Member Updated", |
| 194 | calculateType: "guildMemberUpdate", |
| 195 | color: NucleusColors.yellow, |
| 196 | emoji: "PUNISH.NICKNAME.YELLOW", |
TheCodedProf | 6ec331b | 2023-02-20 12:13:06 -0500 | [diff] [blame] | 197 | timestamp: Date.now() |
PineaFan | e6ba788 | 2023-01-18 20:41:16 +0000 | [diff] [blame] | 198 | }, |
| 199 | list: { |
pineafan | 6de4da5 | 2023-03-07 20:43:44 +0000 | [diff] [blame^] | 200 | member: entry(member.id, renderUser(member.user)), |
PineaFan | e6ba788 | 2023-01-18 20:41:16 +0000 | [diff] [blame] | 201 | before: entry(before, before ?? "*No nickname set*"), |
pineafan | 6de4da5 | 2023-03-07 20:43:44 +0000 | [diff] [blame^] | 202 | after: entry(newNickname ?? null, newNickname ?? "*No nickname set*"), |
TheCodedProf | 6ec331b | 2023-02-20 12:13:06 -0500 | [diff] [blame] | 203 | updated: entry(Date.now(), renderDelta(Date.now())), |
PineaFan | e6ba788 | 2023-01-18 20:41:16 +0000 | [diff] [blame] | 204 | updatedBy: entry(interaction.user.id, renderUser(interaction.user)) |
| 205 | }, |
TheCodedProf | 94ff6de | 2023-02-22 17:47:26 -0500 | [diff] [blame] | 206 | separate: { |
Skyler Grey | da16adf | 2023-03-05 10:22:12 +0000 | [diff] [blame] | 207 | end: |
| 208 | getEmojiByName("ICONS.NOTIFY." + (notify ? "ON" : "OFF")) + |
| 209 | ` The user was ${notify ? "" : "not "}notified` |
TheCodedProf | 94ff6de | 2023-02-22 17:47:26 -0500 | [diff] [blame] | 210 | }, |
PineaFan | e6ba788 | 2023-01-18 20:41:16 +0000 | [diff] [blame] | 211 | hidden: { |
| 212 | guild: interaction.guild!.id |
| 213 | } |
| 214 | }; |
| 215 | log(data); |
| 216 | const failed = !dmSent && notify; |
Skyler Grey | ad00217 | 2022-08-16 18:48:26 +0100 | [diff] [blame] | 217 | await interaction.editReply({ |
| 218 | embeds: [ |
| 219 | new EmojiEmbed() |
| 220 | .setEmoji(`PUNISH.NICKNAME.${failed ? "YELLOW" : "GREEN"}`) |
| 221 | .setTitle("Nickname") |
| 222 | .setDescription( |
| 223 | "The members nickname was changed" + |
| 224 | (failed ? ", but was not notified" : "") + |
PineaFan | e6ba788 | 2023-01-18 20:41:16 +0000 | [diff] [blame] | 225 | (confirmation.components!["appeal"]!.response !== null |
| 226 | ? ` and an appeal ticket was opened in <#${confirmation.components!["appeal"]!.response}>` |
Skyler Grey | ad00217 | 2022-08-16 18:48:26 +0100 | [diff] [blame] | 227 | : "") |
| 228 | ) |
| 229 | .setStatus(failed ? "Warning" : "Success") |
| 230 | ], |
| 231 | components: [] |
| 232 | }); |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 233 | }; |
pineafan | 3276721 | 2022-03-14 21:27:39 +0000 | [diff] [blame] | 234 | |
pineafan | 6de4da5 | 2023-03-07 20:43:44 +0000 | [diff] [blame^] | 235 | const check = async (interaction: CommandInteraction | ButtonInteraction, partial: boolean, target?: GuildMember) => { |
Skyler Grey | 75ea917 | 2022-08-06 10:22:23 +0100 | [diff] [blame] | 236 | const member = interaction.member as GuildMember; |
TheCodedProf | f86ba09 | 2023-01-27 17:10:07 -0500 | [diff] [blame] | 237 | // Check if the user has manage_nicknames permission |
| 238 | if (!member.permissions.has("ManageNicknames")) return "You do not have the *Manage Nicknames* permission"; |
| 239 | if (partial) return true; |
PineaFan | 1dee28f | 2023-01-16 22:09:07 +0000 | [diff] [blame] | 240 | const me = interaction.guild!.members.me!; |
pineafan | 6de4da5 | 2023-03-07 20:43:44 +0000 | [diff] [blame^] | 241 | let apply: GuildMember; |
| 242 | if (interaction.isButton()) { |
| 243 | apply = target!; |
| 244 | } else { |
| 245 | apply = interaction.options.getMember("user") as GuildMember; |
| 246 | } |
pineafan | 62ce192 | 2022-08-25 20:34:45 +0100 | [diff] [blame] | 247 | const memberPos = member.roles.cache.size ? member.roles.highest.position : 0; |
| 248 | const mePos = me.roles.cache.size ? me.roles.highest.position : 0; |
| 249 | const applyPos = apply.roles.cache.size ? apply.roles.highest.position : 0; |
PineaFan | 1dee28f | 2023-01-16 22:09:07 +0000 | [diff] [blame] | 250 | if (!interaction.guild) return false; |
pineafan | c1c1879 | 2022-08-03 21:41:36 +0100 | [diff] [blame] | 251 | // Do not allow any changing of the owner |
PineaFan | 0d06edc | 2023-01-17 22:10:31 +0000 | [diff] [blame] | 252 | if (member.id === interaction.guild.ownerId) return "You cannot change the owner's nickname"; |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 253 | // Check if Nucleus can change the nickname |
TheCodedProf | 0941da4 | 2023-02-18 20:28:04 -0500 | [diff] [blame] | 254 | if (!(mePos > applyPos)) return `I do not have a role higher than <@${apply.id}>`; |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 255 | // Check if Nucleus has permission to change the nickname |
PineaFan | 0d06edc | 2023-01-17 22:10:31 +0000 | [diff] [blame] | 256 | if (!me.permissions.has("ManageNicknames")) return "I do not have the *Manage Nicknames* permission"; |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 257 | // Allow the owner to change anyone's nickname |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 258 | if (member.id === interaction.guild.ownerId) return true; |
pineafan | e625d78 | 2022-05-09 18:04:32 +0100 | [diff] [blame] | 259 | // Allow changing your own nickname |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 260 | if (member === apply) return true; |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 261 | // Check if the user is below on the role list |
TheCodedProf | 0941da4 | 2023-02-18 20:28:04 -0500 | [diff] [blame] | 262 | if (!(memberPos > applyPos)) return `You do not have a role higher than <@${apply.id}>`; |
pineafan | 377794f | 2022-04-18 19:01:01 +0100 | [diff] [blame] | 263 | // Allow change |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 264 | return true; |
| 265 | }; |
pineafan | 3276721 | 2022-03-14 21:27:39 +0000 | [diff] [blame] | 266 | |
Skyler Grey | 75ea917 | 2022-08-06 10:22:23 +0100 | [diff] [blame] | 267 | export { command, callback, check }; |
TheCodedProf | a112f61 | 2023-01-28 18:06:45 -0500 | [diff] [blame] | 268 | export const metadata = { |
Skyler Grey | da16adf | 2023-03-05 10:22:12 +0000 | [diff] [blame] | 269 | longDescription: |
| 270 | "Changes the nickname of a member. This is the name that shows in the member list and on messages.", |
| 271 | premiumOnly: true |
| 272 | }; |