Releases: Snazzah/slash-create
Releases · Snazzah/slash-create
v3.4.0
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:
- Azure Functions Server (#82)
MessageInteractionContext.registerComponentFrom
to register components from other messages. (#84)
v3.3.0
Added:
- Option to manually handle command interactions (
SlashCreatorOptions.handleCommandsManually
)- If this is enabled, all command interactions will be sent through the
commandInteraction
event.
- If this is enabled, all command interactions will be sent through the
- Support for Select Components
- Types
ComponentSelectMenu
andComponentSelectOption
are exported to the index ComponentActionRow
now acceptsComponentSelectMenu
- Added
SELECT
to enumComponentType
- Added
ComponentSelectMenu
as a component alternative ofAnyComponent
- Added
values
property toComponentContext
- Types
v3.2.3
v3.2.2
v3.2.1
v3.2.0
Changed:
CommandContext
andComponentContext
are now under a parent class:MessageInteractionContext
InterationResponseType
->InteractionResponseType
Added:
- Support for buttons in messages, see docs (#59)
SlashCommand.onUnload
- Types
MessageOptions
,EditMessageOptions
,FollowUpMessageOptions
, andMessageFile
are exported to the index SlashCreator.cleanRegisteredComponents
- Support for AWS Lambda, see docs (#61, @ytausch)
CommandOptionType.MENTIONABLE = 9
- Types for message embeds and attachments
Fixed:
- Removed ConvertedOption type
- Added peer dependency meta, which should remove the warning while installing
v3.1.0
Changed:
- Removed webserver timeout.
Added:
USE_APPLICATION_COMMANDS
andREQUEST_TO_SPEAK
to the permissions bitfield.- Slash Command Permissions (#48)
- Commands now have an
ids
Map, populated upon syncing (or withSlashCreator#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.
- Commands now have an
- Fetching messages with
CommandContext#fetch
(9c876f4) Message#interaction
andMessage#messageReference
(9c876f4)
Fixed:
- Typing for
SlashCreatorAPI#updateCommands
v3.0.1
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
Migrating from 2.x to 3.x
CommandContext#acknowledge
is nowCommandContext#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.
- You can set whether auto-defer will be ephemeral with
- 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 nowPONG
,CHANNEL_MESSAGE_WITH_SOURCE
andDEFERRED_CHANNEL_MESSAGE_WITH_SOURCE
.
Removed:
- [BREAKING]
SlashCreatorOptions#autoAcknowledgeSource
has been removed. - [BREAKING]
MessageOptions#includeSource
is removed. - [BREAKING]
InteractionResponseType.ACKNOWLEDGE
andInteractionResponseType.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
andSlashCommand#onError
giving weird return types in documentation