Skip to content
This repository was archived by the owner on Apr 30, 2024. It is now read-only.

Releases: CabbageAdi/DSharpPlus.SlashCommands

DSharpPlus.SlashCommands v2.0.0

11 Aug 05:41
Compare
Choose a tag to compare

New major version!

  • Context menu support!

  • Breaking changes:

    • SlashCommandModule has been renamed to ApplicationCommandModule.
    • BeforeExecutionAsync and AfterExecutionAsync have been renamed to BeforeSlashExecutionAsync and AfterSlashExecutionAsync.
  • 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 a ContextMenuExecutionChecksFailedException (no built in ones for now).
    • BeforeExecutionAsync and AfterExecutionAsync are renamed to BeforeContextMenuExecutionAsync and AfterContextMenuExecutionAsync.
    • They fire ContextMenuErrored and ContextMenuExecuted.

DSharpPlus.SlashCommands v1.7.3

05 Aug 15:16
Compare
Choose a tag to compare
  • Updated dependency to 4.1.0 stable.
  • Scoped module type.

DSharpPlus.SlashCommands v1.7.2

03 Aug 02:39
Compare
Choose a tag to compare
  • Added attachments on response or followup edit; it lets you specify which attached files to keep.
  • Made BeforeExecutionAsync return Task<bool> so you can tell it whether to run the command afterwards.

DSharpPlus.SlashCommands v1.7.1

27 Jul 06:04
Compare
Choose a tag to compare
  • 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 to DiscordMember, DiscordUser or DiscordRole.

DSharpPlus.SlashCommands v1.7.0

20 Jul 18:22
Compare
Choose a tag to compare
  • 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 with Slash
  • Some internal cleanup

DSharpPlus.SlashCommands v1.6.1

14 Jul 17:43
Compare
Choose a tag to compare

Fixes small bug with group commands

DSharpPlus.SlashCommands v1.6.0

12 Jul 05:57
Compare
Choose a tag to compare
  • 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

28 Jun 13:24
Compare
Choose a tag to compare
  • 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)