Compare commits
2 Commits
a3af3c3637
...
6698b7c656
Author | SHA1 | Date | |
---|---|---|---|
6698b7c656 | |||
0a80db8195 |
@ -101,7 +101,6 @@ public class RequestSubCommand extends BatSubCommand implements EventListener {
|
||||
}
|
||||
|
||||
VoiceChannel targetChannel = targetVoiceState.getChannel().asVoiceChannel();
|
||||
|
||||
// User is already in the target channel
|
||||
if (voiceState.getChannel().getId().equals(targetChannel.getId())) {
|
||||
event.replyEmbeds(EmbedUtils.errorEmbed()
|
||||
|
@ -27,6 +27,9 @@ public class RequestListener implements EventListener {
|
||||
.filter(request -> request.getMember().getId().equals(event.getUser().getId()))
|
||||
.findFirst();
|
||||
if (optionalDragRequest.isEmpty()) {
|
||||
event.replyEmbeds(EmbedUtils.errorEmbed()
|
||||
.setDescription("You do not have a request to cancel.")
|
||||
.build()).queue();
|
||||
return;
|
||||
}
|
||||
DragRequest dragRequest = optionalDragRequest.get();
|
||||
|
Reference in New Issue
Block a user