deleting notes

This commit is contained in:
2024-08-09 23:13:40 +02:00
parent 2655638c41
commit d17d5bf55f
3 changed files with 82 additions and 11 deletions
@@ -176,6 +176,14 @@ public class Main {
)
.setContexts(InteractionContextType.BOT_DM)
).queue();
jda.upsertCommand(Commands.slash("delete-note", "Delete a note")
.setIntegrationTypes(IntegrationType.USER_INSTALL)
.addOptions(
new OptionData(OptionType.STRING, "alias", "The ID of the note", true, true)
)
.setContexts(InteractionContextType.BOT_DM)
).queue();
}
private static void loadProperties() {