blob: d23751cf2bfad090daad883545e733ddb7a6a066 [file] [log] [blame]
pineafan32767212022-03-14 21:27:39 +00001import { CommandInteraction, GuildMember } from "discord.js";
2import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
3import { WrappedCheck } from "jshaiku";
4import confirmationMessage from "../../utils/confirmationMessage.js";
5import EmojiEmbed from "../../utils/generateEmojiEmbed.js";
6import keyValueList from "../../utils/generateKeyValueList.js";
7
8const command = (builder: SlashCommandSubcommandBuilder) =>
9 builder
10 .setName("nick")
11 .setDescription("Changes a users nickname")
12 .addUserOption(option => option.setName("user").setDescription("The user to change").setRequired(true))
13 .addStringOption(option => option.setName("name").setDescription("The name to set").setRequired(false))
14 .addStringOption(option => option.setName("notify").setDescription("If the user should get a message when their nickname is changed | Default no").setRequired(false)
15 .addChoices([["Yes", "yes"], ["No", "no"]])
16 )
17
18const callback = async (interaction: CommandInteraction) => {
19}
20
21const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
22 return true;
23}
24
25export { command, callback, check };