Compare commits

...

2 Commits

Author SHA1 Message Date
320eab34a3 Merge remote-tracking branch 'origin/master'
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 1m8s
2024-06-29 12:45:35 +01:00
433dfb4693 make linking and unlinking only viewable to the user for spotify commands 2024-06-29 12:45:16 +01:00
2 changed files with 5 additions and 0 deletions

View File

@ -43,6 +43,7 @@ public class LinkSubCommand extends BatSubCommand implements EventListener {
interaction.replyEmbeds(EmbedUtils.errorEmbed()
.setDescription("You have already linked your Spotify account!")
.build())
.setEphemeral(true)
.queue();
return;
}
@ -51,6 +52,7 @@ public class LinkSubCommand extends BatSubCommand implements EventListener {
.setDescription("You can link your Spotify account by clicking [here](%s)".formatted(spotifyService.getAuthorizationUrl()))
.build())
.addComponents(ActionRow.of(Button.primary("spotify_link", "Link Spotify")))
.setEphemeral(true)
.queue();
}
@ -88,6 +90,7 @@ public class LinkSubCommand extends BatSubCommand implements EventListener {
event.replyEmbeds(EmbedUtils.successEmbed()
.setDescription("Successfully linked your Spotify account!")
.build())
.setEphemeral(true)
.queue();
}
}

View File

@ -35,6 +35,7 @@ public class UnlinkSubCommand extends BatSubCommand implements EventListener {
interaction.replyEmbeds(EmbedUtils.errorEmbed()
.setDescription("You do not have a linked Spotify account.")
.build())
.setEphemeral(true)
.queue();
return;
}
@ -44,6 +45,7 @@ public class UnlinkSubCommand extends BatSubCommand implements EventListener {
interaction.replyEmbeds(EmbedUtils.successEmbed()
.setDescription("Successfully unlinked your Spotify account.")
.build())
.setEphemeral(true)
.queue();
}
}