use of net.dv8tion.jda.api.entities.GuildVoiceState in project Robertify-Bot by bombies.
the class PauseSlashCommand method onSlashCommand.
@Override
public void onSlashCommand(@NotNull SlashCommandEvent event) {
if (!checks(event))
return;
sendRandomMessage(event);
event.deferReply().queue();
final GuildVoiceState memberVoiceState = event.getMember().getVoiceState();
final GuildVoiceState selfVoiceState = event.getGuild().getSelfMember().getVoiceState();
event.getHook().sendMessageEmbeds(new PauseCommand().handlePauseEvent(event.getGuild(), selfVoiceState, memberVoiceState).build()).setEphemeral(false).queue();
}
Aggregations