enable spotify linking (even tho it doesn't work w/o me adding you rn)

This commit is contained in:
Lee 2024-07-06 20:02:20 +01:00
parent d0ba6e72a4
commit 353962e569
2 changed files with 12 additions and 12 deletions

@ -23,7 +23,7 @@ import org.springframework.stereotype.Component;
@Component @Component
@CommandInfo( @CommandInfo(
name = "ppsize", name = "ppsize",
description = "Get the size of your pp", description = "Get the size of someone's pp",
userInstall = true userInstall = true
) )
public class PPSizeCommand extends BatCommand { public class PPSizeCommand extends BatCommand {

@ -40,17 +40,17 @@ public class LinkSubCommand extends BatCommand implements EventListener {
@Override @SneakyThrows @Override @SneakyThrows
public void execute(BatGuild guild, @NonNull BatUser user, @NonNull MessageChannel channel, Member member, @NonNull SlashCommandInteraction event) { public void execute(BatGuild guild, @NonNull BatUser user, @NonNull MessageChannel channel, Member member, @NonNull SlashCommandInteraction event) {
if (!user.getId().equals(Consts.BOT_OWNER)) { // if (!user.getId().equals(Consts.BOT_OWNER)) {
event.replyEmbeds(EmbedUtils.errorEmbed() // event.replyEmbeds(EmbedUtils.errorEmbed()
.setDescription(""" // .setDescription("""
%s We are currently awaiting Spotify's approval for our application. Please check back later. // %s We are currently awaiting Spotify's approval for our application. Please check back later.
Submitted on: <t:1719583353> // Submitted on: <t:1719583353>
""".formatted(Emojis.CROSS_MARK_EMOJI)) // """.formatted(Emojis.CROSS_MARK_EMOJI))
.build()) // .build())
.setEphemeral(true) // .setEphemeral(true)
.queue(); // .queue();
return; // return;
} // }
event.replyEmbeds(EmbedUtils.genericEmbed() event.replyEmbeds(EmbedUtils.genericEmbed()
.setDescription("%s You can link your Spotify account by clicking [here](%s)".formatted( .setDescription("%s You can link your Spotify account by clicking [here](%s)".formatted(
Emojis.SPOTIFY_EMOJI.getFormatted(), Emojis.SPOTIFY_EMOJI.getFormatted(),