From a2afcfe86b43b92d273fc06a4f1588b708eb44dc Mon Sep 17 00:00:00 2001 From: YouHaveTrouble Date: Fri, 9 Aug 2024 20:56:49 +0200 Subject: [PATCH] clean up and better error message --- .../youhavetrouble/noted/listener/SlashCommandListener.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/me/youhavetrouble/noted/listener/SlashCommandListener.java b/src/main/java/me/youhavetrouble/noted/listener/SlashCommandListener.java index fa2bd1b..7a61de8 100644 --- a/src/main/java/me/youhavetrouble/noted/listener/SlashCommandListener.java +++ b/src/main/java/me/youhavetrouble/noted/listener/SlashCommandListener.java @@ -6,10 +6,8 @@ import me.youhavetrouble.noted.note.Note; import net.dv8tion.jda.api.events.interaction.command.CommandAutoCompleteInteractionEvent; import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent; import net.dv8tion.jda.api.hooks.ListenerAdapter; -import net.dv8tion.jda.api.interactions.InteractionType; import net.dv8tion.jda.api.interactions.commands.Command; import net.dv8tion.jda.api.interactions.commands.OptionMapping; -import net.dv8tion.jda.api.interactions.commands.SlashCommandInteraction; import java.awt.*; import java.util.List; @@ -215,7 +213,7 @@ public class SlashCommandListener extends ListenerAdapter { if (shouldOpenModal) { // TODO open modal with few basic fields - event.reply("Here a modal should open. After I make it.") + event.reply("You need to provide arguments what parts of the note to edit.") .setEphemeral(true) .queue(); return;