alias management

This commit is contained in:
2024-08-10 20:35:59 +02:00
parent d17d5bf55f
commit 1afa4cd2ed
3 changed files with 153 additions and 8 deletions
@@ -184,6 +184,24 @@ public class Main {
)
.setContexts(InteractionContextType.BOT_DM)
).queue();
jda.upsertCommand(Commands.slash("add-alias", "Add alias to a note")
.setIntegrationTypes(IntegrationType.USER_INSTALL)
.addOptions(
new OptionData(OptionType.STRING, "alias", "Existing alias of a note", true, true),
new OptionData(OptionType.STRING, "new-alias", "New alias for the note", true)
)
.setContexts(InteractionContextType.BOT_DM)
).queue();
jda.upsertCommand(Commands.slash("delete-alias", "Remove alias to a note")
.setIntegrationTypes(IntegrationType.USER_INSTALL)
.addOptions(
new OptionData(OptionType.STRING, "alias", "Existing alias of a note", true, true)
)
.setContexts(InteractionContextType.BOT_DM)
).queue();
}
private static void loadProperties() {