pineafan | 3276721 | 2022-03-14 21:27:39 +0000 | [diff] [blame^] | 1 | import { CommandInteraction, GuildMember } from "discord.js"; |
| 2 | import { SlashCommandSubcommandBuilder } from "@discordjs/builders"; |
| 3 | import { WrappedCheck } from "jshaiku"; |
| 4 | import confirmationMessage from "../../utils/confirmationMessage.js"; |
| 5 | import EmojiEmbed from "../../utils/generateEmojiEmbed.js"; |
| 6 | import keyValueList from "../../utils/generateKeyValueList.js"; |
| 7 | |
| 8 | const 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 | |
| 18 | const callback = async (interaction: CommandInteraction) => { |
| 19 | } |
| 20 | |
| 21 | const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => { |
| 22 | return true; |
| 23 | } |
| 24 | |
| 25 | export { command, callback, check }; |