Skip to content

Releases: Snazzah/slash-create

v3.4.0

26 Jul 20:56
486e9f1
Compare
Choose a tag to compare

Changed:

  • Component callbacks have been changed internally to support other message IDs. (#84)
  • Follow-up messages can now be ephemeral. (#83, 10ba62d)
  • The FollowUpMessageOptions type def is deprecated.
  • ComponentSelectOption.description is now optional (#80)

Added:

v3.3.0

02 Jul 08:47
ccece09
Compare
Choose a tag to compare

Added:

  • Option to manually handle command interactions (SlashCreatorOptions.handleCommandsManually)
    • If this is enabled, all command interactions will be sent through the commandInteraction event.
  • Support for Select Components
    • Types ComponentSelectMenu and ComponentSelectOption are exported to the index
    • ComponentActionRow now accepts ComponentSelectMenu
    • Added SELECT to enum ComponentType
    • Added ComponentSelectMenu as a component alternative of AnyComponent
    • Added values property to ComponentContext

v3.2.3

30 May 02:22
Compare
Choose a tag to compare
chore(lint): auto-lint source code

v3.2.2

30 May 02:05
Compare
Choose a tag to compare

Fixed:

  • Crashing on bad 429 responses (31f4257)
  • syncGlobalCommands and syncCommandsIn checks for changes before updateing (fe41d87)

v3.2.1

27 May 04:45
9a77e24
Compare
Choose a tag to compare

Fixed:

  • Fixed not having numbers allowed in option names

v3.2.0

27 May 03:39
ccbe39e
Compare
Choose a tag to compare

Changed:

  • CommandContext and ComponentContext are now under a parent class: MessageInteractionContext
  • InterationResponseType -> InteractionResponseType

Added:

Fixed:

  • Removed ConvertedOption type
  • Added peer dependency meta, which should remove the warning while installing

v3.1.0

16 Apr 16:29
9381eb5
Compare
Choose a tag to compare

Changed:

  • Removed webserver timeout.

Added:

  • USE_APPLICATION_COMMANDS and REQUEST_TO_SPEAK to the permissions bitfield.
  • Slash Command Permissions (#48)
    • Commands now have an ids Map, populated upon syncing (or with SlashCreator#collectCommandIDs). This pairs the IDs of guild IDs and 'global' to the command ID from the API.
    • SlashCommandOptions#defaultPermissions
    • You can define permissions in SlashCommandOptions#permissions, See here for an example.
  • Fetching messages with CommandContext#fetch (9c876f4)
  • Message#interaction and Message#messageReference (9c876f4)

Fixed:

  • Typing for SlashCreatorAPI#updateCommands

v3.0.1

29 Mar 22:59
0a0b046
Compare
Choose a tag to compare

Fixed:

  • Updated command option validation
    • Command names and option names use the documented regex pattern
    • Choice name is now 1-32 characters
    • Choice description is now 1-100 characters
  • Allow empty payloads when updating commands
  • Prevent webservers from auto-handling interaction errors

v3.0.0

25 Mar 18:29
Compare
Choose a tag to compare

Migrating from 2.x to 3.x

  • CommandContext#acknowledge is now CommandContext#defer.
    • You can set whether auto-defer will be ephemeral with CommandOptions#deferEphemeral
    • Use CommandContext#deferred to check if a deferred message is waiting to be edited.
  • Remove autoAcknowledgeSource from the SlashCreator options.
  • Make sure to stop using includeSource in message options.
  • If you have used InteractionResponseType, the only available types are now PONG, CHANNEL_MESSAGE_WITH_SOURCE and DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE.

Removed:

  • [BREAKING] SlashCreatorOptions#autoAcknowledgeSource has been removed.
  • [BREAKING] MessageOptions#includeSource is removed.
  • [BREAKING] InteractionResponseType.ACKNOWLEDGE and InteractionResponseType.CHANNEL_MESSAGE has been removed
  • Util.objectKeySort is now removed.

Changed:

  • [BREAKING] CommandContext#acknowledge -> CommandContext#defer
    • Deferred messages are like acknowledgements, but editable and used for processing requests.
    • CommandContext#defer has one argument (ephemeral) for if the deferred message should be ephemeral.
  • Docs now refer "auto-acknowledge" to "auto-defer"
  • Command option and subcommand limit has increased to 25
  • CommandContext#send now edits a deferred message if there was a deferred message sent.
  • [BREAKING] InteractionResponseType.ACKNOWLEDGE_WITH_SOURCE -> InteractionResponseType.DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE

Added:

  • SlashCommandOptions#deferEphemeral - Whether auto-deferring should be an ephemeral message.
  • CommandContext#deferred - Whether the initial response has an available deferred message.
  • Ability to send attachments with CommandContext#send
  • Added FAQ page in documentation

Fixed:

  • Documentation for ResolvedMembers
  • SlashCommand#onBlock and SlashCommand#onError giving weird return types in documentation

v2.1.2

16 Mar 11:47
Compare
Choose a tag to compare

Changed:

  • Util.objectKeySort is now deprecated.

Fixed:

  • Syncing commands had a major bug, sorry. (#36)