Releases: Snazzah/slash-create
Releases · Snazzah/slash-create
v4.3.1
v4.3.0
v4.2.0
v4.1.1
v4.1.0
v4.0.1
v4.0.0
Migrating from 3.x to 4.x
- No major breaking changes to the package have been made. If you depend on other files from the package (i.e.
slash-create/lib/server.js
) then you may need to change things. - The permission
MANAGE_EMOJIS
has been renamed toMANAGE_EMOJIS_AND_STICKERS
- For TypeScript users:
FollowUpMessageOptions
andCommandOption
have been removed.ApplicationCommandOption
no longer has thedefault
option.
Removed:
- ApplicationCommandOption: removed deprecated
default
option- Reorder the required options instead.
- Permissions: removed
MANAGE_EMOJIS
permission in favor ofMANAGE_EMOJIS_AND_STICKERS
- types: removed
CommandOption
type - types: removed
FollowUpMessageOptions
in favor ofMessageOptions
Changed:
- types:
RequestHandler
->ServerRequestHandler
- types:
TypedEmitter
->TypedEventEmitter
- Permissions/UserFlags:
FLAGS
constants from Permissions and UserFlags are inaccessible from the file itself. UsePermissions.FLAGS
instead. - index: Almost everything is now properly exported to index (#96)
- All files are no longer using
default
for exporting
- All files are no longer using
Fixed:
- MessageInteractionContext: Deleting the original message de-references the message ID from the context (#97)
- ComponentContext: Remove partial message parsing
v3.5.0
Changed:
- Permissions:
MANAGE_EMOJIS
is nowMANAGE_EMOJIS_AND_STICKERS
, making the former deprecated.
Added:
- SlashCommand: Added multiple types support for context menu commands. (#94, see updated guide)
- CommandContext: Added support for resolved messages and targeted objects. (#94, see updated guide)
- Message: Added
pinned
property. - Permissions: Added
MANAGE_THREADS
,USE_PUBLIC_THREADS
,USE_PRIVATE_THREADS
andUSE_EXTERNAL_STICKERS
.
Fixed:
- SlashCommandAPI: The interaction callback function no longer requires a token.