forked from Fascinated/Bat
remove debug and change some command messages
This commit is contained in:
parent
107ec43149
commit
dc18c9fe7a
@ -23,7 +23,7 @@ public class GuildSubCommand extends BatSubCommand {
|
||||
ImageProxy banner = guild.getDiscordGuild().getBanner();
|
||||
if (banner == null) {
|
||||
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())
|
||||
.queue();
|
||||
return;
|
||||
|
@ -40,7 +40,7 @@ public class UserSubCommand extends BatSubCommand {
|
||||
ImageProxy banner = target.retrieveProfile().complete().getBanner();
|
||||
if (banner == null) {
|
||||
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())
|
||||
.queue();
|
||||
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) {
|
||||
event.replyEmbeds(EmbedUtils.errorEmbed()
|
||||
.setDescription("This command can only be executed in a guild")
|
||||
|
Loading…
x
Reference in New Issue
Block a user