This repository was archived by the owner on Apr 30, 2024. It is now read-only.
Releases: CabbageAdi/DSharpPlus.SlashCommands
Releases · CabbageAdi/DSharpPlus.SlashCommands
DSharpPlus.SlashCommands v2.0.0
New major version!
-
Context menu support!
-
Breaking changes:
SlashCommandModule
has been renamed toApplicationCommandModule
.BeforeExecutionAsync
andAfterExecutionAsync
have been renamed toBeforeSlashExecutionAsync
andAfterSlashExecutionAsync
.
-
Context Menus:
- You can define a context menu with the
ContextMenu
attribute. - The first parameter should be a
ContextMenuContext
(funny name, I know). - Pre execution checks are made by inheriting
ContextMenuCheckBaseAttribute
and they throw aContextMenuExecutionChecksFailedException
(no built in ones for now). BeforeExecutionAsync
andAfterExecutionAsync
are renamed toBeforeContextMenuExecutionAsync
andAfterContextMenuExecutionAsync
.- They fire
ContextMenuErrored
andContextMenuExecuted
.
- You can define a context menu with the
DSharpPlus.SlashCommands v1.7.3
- Updated dependency to 4.1.0 stable.
- Scoped module type.
DSharpPlus.SlashCommands v1.7.2
- Added
attachments
on response or followup edit; it lets you specify which attached files to keep. - Made
BeforeExecutionAsync
returnTask<bool>
so you can tell it whether to run the command afterwards.
DSharpPlus.SlashCommands v1.7.1
- Added a
RefreshCommands
method, which can be used to refresh choices from choice providers. - Added new option types: double for decimal/rational values, and
SnowflakeObject
for either roles or users which has to be casted toDiscordMember
,DiscordUser
orDiscordRole
.
DSharpPlus.SlashCommands v1.7.0
- Support for singleton module lifespans - use the
SlashModuleLifespan
attribute - Pre execution checks can now be added on groups and command modules and propagate to all commands inside them
- Added built in execution checks, the same ones that are on
CommandsNext
, but prefixed withSlash
- Some internal cleanup
DSharpPlus.SlashCommands v1.6.1
Fixes small bug with group commands
DSharpPlus.SlashCommands v1.6.0
- Added support for DefaultPermission
- You can now mark command modules themselves as groups
- There's a list of RegisteredCommands
- Big bugfix with sub group commands
- Minor internal cleanup
DSharpPlus.SlashCommands v1.5.0
- Property injection (contributed by @OoLunar) - not completely tested, please report any bugs
- Updated dependency to nightly DSharpPlus version (due to broken constructor on latest nightly)