use of net.dv8tion.jda.core.entities.MessageChannel in project Ardent by adamint.
the class MusicConfig method noArgs.
@Override
public void noArgs(Guild guild, MessageChannel channel, User user, Message message, String[] args) throws Exception {
Cursor<HashMap> settings = r.db("data").table("music_settings").filter(row -> row.g("guild_id").eq(guild.getId())).run(connection);
if (settings.hasNext()) {
MusicSettingsModel musicSettingsModel = asPojo(settings.next(), MusicSettingsModel.class);
sendTranslatedMessage("**music Settings**\n" + "Delete music play messages: " + musicSettingsModel.isRemove_addition_messages(), channel, user);
} else
sendTranslatedMessage("Your guild has no set music settings! Type **/manage** to find your portal" + " link", channel, user);
}
Aggregations