Releases: sapphiredev/framework
Releases · sapphiredev/framework
v1.0.0-alpha.10
1.0.0-alpha.10 (2021-02-12)
⚠ BREAKING CHANGES
- command-accepted:
Events.CommandRun
third argument changed type toCommandRunPayload
,
this is mostly identical toCommandAcceptedPayload
(and exactly identical toCommandFinishPayload
)
and likely won't be a breaking change for your code, however you may need to adjust
your import when using TypeScript. - command-accepted:
Events.CommandFinish
third argument changed type toCommandFinishPayload
,
this is mostly identical toCommandAcceptedPayload
(and exactly identical toCommandRunPayload
)
and likely won't be a breaking change for your code, however you may need to adjust
your import when using TypeScript.
Features
- args: add
name
to context ofArgs.unavailableArgument
(#171) (a5bda61) - args: add more data to error context for core arguments (0cfff79)
- args: pass more context to args errors (#174) (007eaed)
- argumenterror: add type default of
unknown
(55be30a) - command-accepted: add received args to event payloads (#173) (fa60b13)
- message-parser: add
caseInsensitivePrefixes
client option (#170) (61f9c41)
v1.0.0-alpha.9
v1.0.0-alpha.8
1.0.0-alpha.8 (2021-02-07)
⚠ BREAKING CHANGES
- events: Changed
Events.UnknownCommandName
event arguments toUnknownCommandNamePayload
. - events: Changed
Events.UnknownCommand
event arguments toUnknownCommandPayload
. - events: CoreMessageParser is not longer a message event listener
Features
v1.0.0-alpha.7
1.0.0-alpha.7 (2021-02-06)
⚠ BREAKING CHANGES
- errors: Changed UserError identifier from
'ArgumentBooleanInvalidBoolean'
toIdentifiers.ArgumentBoolean
. - errors: Changed UserError identifier from
'ArgumentCategoryChannelInvalidChannel'
toIdentifiers.ArgumentCategoryChannel
. - errors: Changed UserError identifier from
'ArgumentChannelMissingChannel'
toIdentifiers.ArgumentChannel
. - errors: Changed UserError identifier from
'ArgumentDateInvalidNumber'
toIdentifiers.ArgumentDate
. - errors: Changed UserError identifier from
'ArgumentDateTooSmall'
toIdentifiers.ArgumentDateTooSmall
. - errors: Changed UserError identifier from
'ArgumentDateTooBig'
toIdentifiers.ArgumentDateTooBig
. - errors: Changed UserError identifier from
'ArgumentDMChannelInvalidChannel'
toIdentifiers.ArgumentDMChannel
. - errors: Changed UserError identifier from
'ArgumentFloatInvalidFloat'
toIdentifiers.ArgumentFloat
. - errors: Changed UserError identifier from
'ArgumentFloatTooSmall'
toIdentifiers.ArgumentFloatTooSmall
. - errors: Changed UserError identifier from
'ArgumentFloatTooBig'
toIdentifiers.ArgumentFloatTooBig
. - errors: Changed UserError identifier from
'ArgumentGuildChannelMissingGuild'
toIdentifiers.ArgumentGuildChannelMissingGuild
. - errors: Changed UserError identifier from
'ArgumentGuildChannelUnknownChannel'
toIdentifiers.ArgumentGuildChannel
. - errors: Changed UserError identifier from
'ArgumentHyperlinkInvalidURL'
toIdentifiers.ArgumentHyperlink
. - errors: Changed UserError identifier from
'ArgumentIntegerInvalidNumber'
toIdentifiers.ArgumentInteger
. - errors: Changed UserError identifier from
'ArgumentIntegerTooSmall'
toIdentifiers.ArgumentIntegerTooSmall
. - errors: Changed UserError identifier from
'ArgumentIntegerTooBig'
toIdentifiers.ArgumentIntegerTooBig
. - errors: Changed UserError identifier from
'ArgumentMemberMissingGuild'
toIdentifiers.ArgumentMemberMissingGuild
. - errors: Changed UserError identifier from
'ArgumentMemberUnknownMember'
toIdentifiers.ArgumentMember
. - errors: Changed UserError identifier from
'ArgumentMessageUnknownMessage'
toIdentifiers.Message
. - errors: Changed UserError identifier from
'ArgumentNewsChannelInvalidChannel'
toIdentifiers.NewsChannel
. - errors: Changed UserError identifier from
'ArgumentNumberInvalidNumber'
toIdentifiers.Number
. - errors: Changed UserError identifier from
'ArgumentNumberTooSmall'
toIdentifiers.ArgumentNumberTooSmall
. - errors: Changed UserError identifier from
'ArgumentNumberTooBig'
toIdentifiers.ArgumentNumberTooBig
. - errors: Changed UserError identifier from
'ArgumentRoleMissingGuild'
toIdentifiers.ArgumentRoleMissingGuild
. - errors: Changed UserError identifier from
'ArgumentRoleUnknownRole'
toIdentifiers.Role
. - errors: Changed UserError identifier from
'ArgumentStringTooShort'
toIdentifiers.ArgumentStringTooShort
. - errors: Changed UserError identifier from
'ArgumentStringTooLong'
toIdentifiers.ArgumentStringTooLong
. - errors: Changed UserError identifier from
'ArgumentTextChannelInvalidChannel'
toIdentifiers.TextChannel
. - errors: Changed UserError identifier from
'ArgumentUserUnknownUser'
toIdentifiers.User
. - errors: Changed UserError identifier from
'ArgumentVoiceChannelInvalidChannel'
toIdentifiers.VoiceChannel
. - errors: Changed UserError identifier from
'CommandDisabled'
toIdentifiers.CommandDisabled
. - errors: Changed UserError identifier from
'UnavailableArgument'
toIdentifiers.ArgsUnavailable
. - errors: Changed UserError identifier from
'MissingArguments'
toIdentifiers.ArgsMissing
. - errors: Changed UserError identifier from
'Cooldown'
toIdentifiers.PreconditionCooldown
. - errors: Changed UserError identifier from
'DMOnly'
toIdentifiers.PreconditionDMOnly
. - errors: Changed UserError identifier from
'GuildOnly'
toIdentifiers.PreconditionGuildOnly
. - errors: Changed UserError identifier from
'NSFW'
toIdentifiers.PreconditionNSFW
. - errors: Changed UserError identifier from
'Permissions'
toIdentifiers.PreconditionPermissions
. - preconditions: Added
PreconditionContext
as third parameter toIPreconditionContainer#run
. - preconditions: Changed
PermissionsPrecondition#context
fromPreconditionContext
toRecord<PropertyKey, unknown>
. - preconditions: Changed
PreconditionContainerSingle#context
fromPreconditionContext
toRecord<PropertyKey, unknown>
. - preconditions: Changed
PreconditionSingleResolvableDetails#context
fromPreconditionContext
toRecord<PropertyKey, unknown>
. - preconditions: Added
PreconditionContext
as third parameter toIPreconditionCondition#run
. - args: changed
Args.err
to returnErr<ArgumentError<T>>
instead ofArgumentError<T>
Features
- args: add Args#ok, refactored Args#error to return Err<ArgumentError> (#159) (65316a6)
- args: change visibility of parser from private to protected (#160) (3ad6f85)
- command: add CommandContext#commandPrefix (#157) (c8c7417)
- command-events: pass more context (#162) (11a6274)
- errors: expose all identifiers in an enum (#161) (3371f35)
- preconditions: add context to Container and Condition (#158) (de6bc03)
v1.0.0-alpha.6
v1.0.0-alpha.5
1.0.0-alpha.5 (2021-02-02)
⚠ BREAKING CHANGES
- client:
client.arguments
is nowclient.stores.get('arguments')
- client:
client.commands
is nowclient.stores.get('commands')
- client:
client.events
is nowclient.stores.get('events')
- client:
client.preconditions
is nowclient.stores.get('preconditions')
- client:
client.registerUserDirectories
is nowclient.stores.registerUserDirectories
- client:
client.deregisterStore
is nowclient.stores.deregister
- client:
client.registerStore
is nowclient.stores.register
- command parser: The events
prefixedMessage
,unknownCommandName
, andunknownCommand
3rd
parameter now have the typestring | RegExp
- command parser:
CommandContext.prefix
now has the typestring | RegExp
- The
UserError
,PreconditionError
,ArgumentError
classes,
and theok
,err
functions now take a single parameter which is an object
of properties, rather than multiple parameters.
Features
- args: add Args#commandContext (#154) (63c195b)
- client: change stores from a Set to a Map (#129) (01f7161)
- command: add generateDashLessAliases (#146) (e94649c)
- command parser: add regexPrefix client option (#145) (86e6b79)
- preconditions: make Permission errors less vague (#151) (c6b04e1)
- make errors take objects instead of many params (#144) (f638410)
Bug Fixes
- update discord redirect URL (61edce2)