use of net.dv8tion.jda.internal.JDAImpl in project JDA by DV8FromTheWorld.
the class DirectAudioControllerImpl method disconnect.
@Override
public void disconnect(@Nonnull Guild guild) {
Checks.notNull(guild, "Guild");
JDAImpl jda = getJDA();
WebSocketClient client = jda.getClient();
client.queueAudioDisconnect(guild);
}
use of net.dv8tion.jda.internal.JDAImpl in project JDA by DV8FromTheWorld.
the class DirectAudioControllerImpl method reconnect.
@Override
public void reconnect(@Nonnull AudioChannel channel) {
Checks.notNull(channel, "Audio Channel");
JDAImpl jda = getJDA();
WebSocketClient client = jda.getClient();
client.queueAudioReconnect(channel);
}
use of net.dv8tion.jda.internal.JDAImpl in project SkyBot by DuncteBot.
the class ChangeLogCommand method execute.
@Override
public void execute(@Nonnull CommandContext ctx) {
if (embedJson == null || embedJson.isEmpty()) {
fetchLatetstGitHubCommits(ctx);
return;
}
final JDAImpl jda = (JDAImpl) ctx.getJDA();
final MessageEmbed embed = jda.getEntityBuilder().createMessageEmbed(DataObject.fromJson(embedJson));
sendEmbed(ctx, new EmbedBuilder(embed));
}
Aggregations