forked from Fascinated/Bat
make linking and unlinking only viewable to the user for spotify commands
This commit is contained in:
parent
20905a7962
commit
433dfb4693
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user