Releases: Snazzah/slash-create
Releases · Snazzah/slash-create
v1.1.2
v1.1.1
v1.1.0
This release features mostly completed documentation and changes to the packages typings. If you are using TypeScript for this package, consider this a breaking change.
Changed:
- [SEMI-BREAKING] Index changes
Command
->SlashCommand
Creator
->SlashCreator
CommandContext
is aliased asContext
SlashCommand
is aliased asCommand
SlashCreator
is aliased asCreator
- If you are using any of the changed classes for typings, you must use its class name.
- i.e.
{ Creator }
must be{ SlashCreator }
- i.e.
- (typings) Renamed
AllRequestData
toAnyRequestData
- (typings) Renamed
FastifyOpts
toFastifyOptions
- (typings) Renamed duplicate
LatencyRef
interface in SequentialBucket toMinimalLatencyRef
- (typings) Added CallbackFunction type for SequentialBucket
Added:
- Fastify typings for
FastifyServer#createEndpoint
Fixed:
- Changed HTTP method in
SlashCommandAPI#updateCommand
fromPUT
toPATCH
User#flags
now actually usesUserFlags
- Renamed UserFlags class to the name "UserFlags"
v1.0.0
Removed:
- [BREAKING]
Context.initialResponseDeleted
- [BREAKING]
treq
parameter fromSlashCreator#ping
event - The event no longer emits any parameters
Changed:
- [BREAKING]
treq
parameter inSlashCreator#unknownInteraction
event is nowinteraction
Added:
- More documentation
Context.edit(messageID, content, options)
Context.editOriginal(messageID, content, options)
Context.expired
and internal handlers using thisContext.sendFollowUp(content, options)
Message
andUser
classGatewayServer
- Support for gateway eventsSlashCreatorAPI.interactionCallback(id, token, body)
Server.isWebserver
Server.handleInteraction()
Fixed:
- Default error messages
- Exports for Constants and CommandOptionType
v0.2.0
Removed:
- [BREAKING]
Context.acknowledge
now returns a promise - [BREAKING] Removed
returnPromise
from syncCommands
Added:
- Errors will be thrown if a Server without its installed package is instantiated
Fixed:
- RespondFunction is now a promise
- Context.send erroring
- Added/Updated debug emit lines
- ExpressServer for TypeScript