Compare commits
No commits in common. "24bb560d93b2063b282963df02f52d8e662dc497" and "3ff154eec65bb2492c3e9e8d0e7aeb765a170e1d" have entirely different histories.
24bb560d93
...
3ff154eec6
@ -31,7 +31,7 @@ public class ClearChatCommand
|
|||||||
|
|
||||||
if(!(channel instanceof TextChannel))
|
if(!(channel instanceof TextChannel))
|
||||||
{
|
{
|
||||||
event.reply("\uD83D\uDE22 Sorry! I can't delete messages here.").queue();
|
event.reply("Sorry! I can't delete messages here.").queue();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ public class ClearChatCommand
|
|||||||
|
|
||||||
if(toDeleteAmount <= 0)
|
if(toDeleteAmount <= 0)
|
||||||
{
|
{
|
||||||
event.reply("\uD83D\uDE22 Sorry, I can't delete that amount of messages!").queue();
|
event.reply("Sorry, I can't delete that amount of messages!").queue();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// answer by saying that the operation has begun.
|
// answer by saying that the operation has begun.
|
||||||
@ -134,7 +134,7 @@ public class ClearChatCommand
|
|||||||
a less efficient way that triggers rate-limiting very quickly. */
|
a less efficient way that triggers rate-limiting very quickly. */
|
||||||
} catch (Exception e)
|
} catch (Exception e)
|
||||||
{
|
{
|
||||||
replyInteraction.editOriginal("\uD83D\uDE22 Sorry, I ran into an error! " + e.getMessage()).queue();
|
replyInteraction.editOriginal("\uD83D\uDE22 Sorry, it seems like there was an issue! " + e.getMessage()).queue();
|
||||||
return; // warning: this quits everything.
|
return; // warning: this quits everything.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,27 +0,0 @@
|
|||||||
package wtf.beatrice.hidekobot.commands.slash;
|
|
||||||
|
|
||||||
import net.dv8tion.jda.api.EmbedBuilder;
|
|
||||||
import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
|
||||||
import wtf.beatrice.hidekobot.Configuration;
|
|
||||||
|
|
||||||
public class HelpCommand
|
|
||||||
{
|
|
||||||
|
|
||||||
public void runSlashCommand(@NotNull SlashCommandInteractionEvent event)
|
|
||||||
{
|
|
||||||
// defer reply because replying might take a while
|
|
||||||
event.deferReply().queue();
|
|
||||||
|
|
||||||
EmbedBuilder embedBuilder = new EmbedBuilder();
|
|
||||||
|
|
||||||
// embed processing
|
|
||||||
{
|
|
||||||
embedBuilder.setColor(Configuration.getBotColor());
|
|
||||||
embedBuilder.setTitle("Help");
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
event.getHook().editOriginalEmbeds(embedBuilder.build()).queue();
|
|
||||||
}
|
|
||||||
}
|
|
@ -17,7 +17,6 @@ public class SlashCommandListener extends ListenerAdapter
|
|||||||
case "clear" -> new ClearChatCommand().runSlashCommand(event);
|
case "clear" -> new ClearChatCommand().runSlashCommand(event);
|
||||||
case "coinflip" -> new CoinFlipCommand().runSlashCommand(event);
|
case "coinflip" -> new CoinFlipCommand().runSlashCommand(event);
|
||||||
case "die" -> new DieCommand().runSlashCommand(event);
|
case "die" -> new DieCommand().runSlashCommand(event);
|
||||||
case "help" -> new HelpCommand().runSlashCommand(event);
|
|
||||||
case "invite" -> new InviteCommand().runSlashCommand(event);
|
case "invite" -> new InviteCommand().runSlashCommand(event);
|
||||||
case "ping" -> new PingCommand().runSlashCommand(event);
|
case "ping" -> new PingCommand().runSlashCommand(event);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user