-
-
Notifications
You must be signed in to change notification settings - Fork 24
Breaking Changes in JDA Chewtils 2.0
Because JDA-Chewtils 2.0 relies on JDA 5, some changes need to be made internally!
This page is only for users migrating from JDA-Chewtils 1.0 or JDA-Utilities to JDA-Chewtils 2.0. If you are new to both, you do not need to worry!
Some breaking changes occurred! Watch out!
-
CooldownScope
is now its own class. It must be imported if it was used.
-
SlashCommandEvent
is replaced with an equivalent in packagecom.jagrosh.jdautilities.command
.To fix this, you can do a simple find and replace across the entire project:
Find:
import net.dv8tion.jda.api.events.interaction.SlashCommandEvent;
Replace:import com.jagrosh.jdautilities.command.SlashCommandEvent;
-
this.getClient()
inSlashCommand
is deprecated. Please useevent.getClient()
instead. -
OptionHelper
's optX methods are now deprecated. Please useevent.optX()
whereevent
is aSlashCommandEvent
- Simple fix for this is replacing
OptionHelper
withevent
and removing theevent,
argument.
- Simple fix for this is replacing
- SlashCommands in JDA-Chewtils
- Context Menus in JDA-Chewtils (Chewtils 2.0+)
- User-Installed Apps (Chewtils 2.1-SNAPSHOT)