remove debug and change some command messages
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 34s

This commit is contained in:
Lee 2024-06-28 19:23:37 +01:00
parent 107ec43149
commit dc18c9fe7a
3 changed files with 2 additions and 6 deletions

@ -23,7 +23,7 @@ public class GuildSubCommand extends BatSubCommand {
ImageProxy banner = guild.getDiscordGuild().getBanner(); ImageProxy banner = guild.getDiscordGuild().getBanner();
if (banner == null) { if (banner == null) {
interaction.replyEmbeds(EmbedUtils.errorEmbed() interaction.replyEmbeds(EmbedUtils.errorEmbed()
.setDescription("%s does not have a banner!".formatted(guild.getName())) .setDescription("**%s** does not have a banner!".formatted(guild.getName()))
.build()) .build())
.queue(); .queue();
return; return;

@ -40,7 +40,7 @@ public class UserSubCommand extends BatSubCommand {
ImageProxy banner = target.retrieveProfile().complete().getBanner(); ImageProxy banner = target.retrieveProfile().complete().getBanner();
if (banner == null) { if (banner == null) {
interaction.replyEmbeds(EmbedUtils.errorEmbed() interaction.replyEmbeds(EmbedUtils.errorEmbed()
.setDescription("%s does not have a banner!".formatted(target.getName())) .setDescription("**%s** does not have a banner!".formatted(target.getName()))
.build()) .build())
.queue(); .queue();
return; return;

@ -201,10 +201,6 @@ public class CommandService extends ListenerAdapter {
} }
} }
System.out.println("isSubCommand = " + isSubCommand);
System.out.println("command.getCommandInfo().guildOnly() = " + command.getCommandInfo().guildOnly());
System.out.println("ranInsideGuild = " + ranInsideGuild);
if (isSubCommand && commandInfo.guildOnly() && !ranInsideGuild) { if (isSubCommand && commandInfo.guildOnly() && !ranInsideGuild) {
event.replyEmbeds(EmbedUtils.errorEmbed() event.replyEmbeds(EmbedUtils.errorEmbed()
.setDescription("This command can only be executed in a guild") .setDescription("This command can only be executed in a guild")