Updating from V2 to V3
Full changelog is avaiable on Github
WARNING
The version 3.0.0 of Sheweny require discord.js version 13.3.0 or higher.
Sheweny Client
The handlers
option has been renamed to managers
.
See ShewenyClientOptions
The util
property now return a ClientUtil class.
Managers
Buttons manager
- The options of
ButtonsManager
has been changed :
The first parameter is the client and the second is an object with the BaseManagerOptions
- New methods :
unloadAll()
to unload all buttons.
See ButtonsManager#unloadAll
Commands manager
- The options of
CommandsManager
has been changed :
The first parameter is the client and the second is an object with the CommandsManagerOptions
The guildId
option now support an array of guild id.
See CommandsManagerOptions#guildId
- New options :
autoRegisterApplicationCommands
for choose if the commands manager should automatically register the application commands.
- New methods :
unloadAll()
to unload all commands.
See CommandsManager#unloadAll
Events manager
- The options of
EventsManager
has been changed :
The first parameter is the client and the second is an object with the BaseManagerOptions
- New methods :
unloadAll()
to unload all events.
See EventsManager#unloadAll
Inhibitors manager
- The options of
InhibitorsManager
has been changed :
The first parameter is the client and the second is an object with the BaseManagerOptions
- New methods :
unloadAll()
to unload all inhibitors.
See InhibitorsManager#unloadAll
SelectMenus manager
- The options of
SelectMenusManager
has been changed :
The first parameter is the client and the second is an object with the BaseManagerOptions
- New methods :
unloadAll()
to unload all select-menus.
See SelectMenusManager#unloadAll
Structures
Every structures now have a manager
property.
Commands
In commands there is a new function onAutocomplete()
for use the autocompletion with application commands.
See Command#onAutocomplete.
Events
In events options there is a new property emitter
for use a custom event emitter.
See Event#emitter
Inhibitors
The parameters of the execute()
and onFailure()
methods has been changed : the first parameter is the client and the second is the context.
See Inhibitor#execute and Inhibitor#onFailure for more informations.