add completions for note aliases

This commit is contained in:
2024-08-07 22:20:30 +02:00
parent c0dff561ba
commit a8a38b2c04
3 changed files with 42 additions and 4 deletions
@@ -59,8 +59,8 @@ public class Main {
jda.upsertCommand(Commands.slash("note", "Get a note")
.setIntegrationTypes(IntegrationType.GUILD_INSTALL, IntegrationType.USER_INSTALL)
.addOptions(
new OptionData(OptionType.STRING, "note-id", "The ID of the note").setRequired(true),
new OptionData(OptionType.BOOLEAN, "ephermeal", "Whether the note should be ephermal").setRequired(false)
new OptionData(OptionType.STRING, "note-id", "The ID of the note", true, true),
new OptionData(OptionType.BOOLEAN, "ephermeal", "Whether the note should be ephermal", true)
)
.setContexts(InteractionContextType.BOT_DM, InteractionContextType.GUILD, InteractionContextType.PRIVATE_CHANNEL)
).queue();