-
MethodDescriptionPlease use
CommandClientBuilder.setCommandPreProcessBiFunction(BiFunction)
instead. You can simply add a new parameter for the command, it doesn't have to be used.This is now retrieved fromSlashCommandEvent.getClient()
.Due to the nature of OAuth2 at this moment, bots are not allowed to use the various urls provided.
This method is scheduled for removal upon merging it withmaster
in JDA-Utilities 2.2UseSlashCommandEvent.hasOption(String)
instead.UseSlashCommandEvent.optBoolean(String)
instead.UseSlashCommandEvent.optBoolean(String, boolean)
instead.UseSlashCommandEvent.optDouble(String)
instead.UseSlashCommandEvent.optDouble(String, double)
instead.UseSlashCommandEvent.optGuildChannel(String)
instead.UseSlashCommandEvent.optLong(String)
instead.UseSlashCommandEvent.optLong(String, long)
instead.UseSlashCommandEvent.optMember(String)
instead.UseSlashCommandEvent.optMember(String, Member)
instead.UseSlashCommandEvent.optMentionable(String)
instead.UseSlashCommandEvent.optMessageChannel(String)
instead.UseSlashCommandEvent.optRole(String)
instead.UseSlashCommandEvent.optRole(String, Role)
instead.UseSlashCommandEvent.optString(String)
instead.UseSlashCommandEvent.optString(String, String)
instead.UseSlashCommandEvent.optUser(String)
instead.UseSlashCommandEvent.optUser(String, User)
instead.
SlashCommandEvent
methods instead.