Releases: Snazzah/slash-create
Releases · Snazzah/slash-create
v6.0.1
v6.0.0
Breaking Changes:
SlashCreator#syncCommands
is now an asynchronous function, replacing#syncCommandsAsync
.- All old command permission functions have been removed.
- Command reregistering has been removed.
- The request handler has been rewritten to use
undici
using this PR by @HeadTriXz. - Setting a maximum signature timestamp (
SlashCreatorOptions#maxSignatureTimestamp
) has been removed. This has caused more issues and timestamps are not checked from other implementations of slash commands. - The minimum Node version of slash-create is now v16.
SlashCreator#registerCommandsIn
is now async.SlashCreator#registerCommand
andSlashCreator#registerCommands
now return the commands that have been registered.
Additions:
- Commands can now use the
throttle()
function which takes a CommandContext and allows you to asynchronously ratelimit users before running the command itself. - slash-create now has a web export for built-in Cloudflare Worker compatibility.
- Support for the Bun runtime with
BunServer
. - Added the
USE_EXTERNAL_SOUNDS
permission. (1 << 46)
Fixed:
- types:
min_length
andmax_length
to string options now exists
v5.14.0
v5.13.0
v5.12.0
Changed:
- Channel: Updated channel object to include almost all available channel properties
- User: Supports avatar decoration presets
- SlashCreator: Switch to using protected internal methods (#419)
Added:
- Member: Add flags property (#460)
- Permissions: Added
MANAGE_EVENTS
,VIEW_CREATOR_MONETIZATION_ANALYTICS
,USE_SOUNDBOARD
,SEND_VOICE_MESSAGES
permissions - BaseInteractionContext: Added
channel
property - Role: Added
tags
property - Member: Added
flags
property
Fixed:
- SlashCreator: Fix sync guild option being ignored
- types: Fixed GUILD_FORUM enum value (#415)
v5.11.0
v5.10.0
Changed:
- Context: Refactored duplicate methods into a single
BaseInteractionContext
(#384) - Server: Deprecated
.use
and.addMiddleware
and madeapp
member public - FastifyServer: Support for v4
Added:
- types:
GUILD_FORUM
andGUILD_DIRECTORY
toChannelType
- types: Added
USER_SELECT
,ROLE_SELECT
,MENTIONABLE_SELECT
,CHANNEL_SELECT
and renamedSELECT
toSTRING_SELECT
(#264)
v5.9.0
Changed:
- RequestHandler: Updated API version to v10
- This shouldn't change anything when it comes to interaction-specific requests, but be mindful when making manual API requests
Added:
- MessageInteractionContext: Editing attachments (#358, #361)
- RequestHandler: Added ability to send audit log reason in requests
Fixed:
- types: Fixed embed types (#357)
v5.8.0
Added:
- User: Avatar Decorations
- Note that this isn't even out yet in canary but as an experiment, so this may change later or just get removed in general. This change also had some fixes with it and doesn't break anything, so it's there for whenever it exists since it is an existing prop in user objects.
Fixed:
- types: Fixed option localization types
- SlashCreator: Modal callbacks actually get removed after use
- SlashCreator: Emit
unverifiedRequest
on bad timestamps - MessageInteractionContext: Options should no longer be modified when used in sending messages