@sapphire/framework
Advanced tools
Changelog
1.0.0-alpha.8 (2021-02-07)
Events.UnknownCommandName
event arguments to UnknownCommandNamePayload
.Events.UnknownCommand
event arguments to UnknownCommandPayload
.Co-authored-by: Jeroen Claassens support@favware.tech
Changelog
1.0.0-alpha.7 (2021-02-06)
'ArgumentBooleanInvalidBoolean'
to Identifiers.ArgumentBoolean
.'ArgumentCategoryChannelInvalidChannel'
to Identifiers.ArgumentCategoryChannel
.'ArgumentChannelMissingChannel'
to Identifiers.ArgumentChannel
.'ArgumentDateInvalidNumber'
to Identifiers.ArgumentDate
.'ArgumentDateTooSmall'
to Identifiers.ArgumentDateTooSmall
.'ArgumentDateTooBig'
to Identifiers.ArgumentDateTooBig
.'ArgumentDMChannelInvalidChannel'
to Identifiers.ArgumentDMChannel
.'ArgumentFloatInvalidFloat'
to Identifiers.ArgumentFloat
.'ArgumentFloatTooSmall'
to Identifiers.ArgumentFloatTooSmall
.'ArgumentFloatTooBig'
to Identifiers.ArgumentFloatTooBig
.'ArgumentGuildChannelMissingGuild'
to Identifiers.ArgumentGuildChannelMissingGuild
.'ArgumentGuildChannelUnknownChannel'
to Identifiers.ArgumentGuildChannel
.'ArgumentHyperlinkInvalidURL'
to Identifiers.ArgumentHyperlink
.'ArgumentIntegerInvalidNumber'
to Identifiers.ArgumentInteger
.'ArgumentIntegerTooSmall'
to Identifiers.ArgumentIntegerTooSmall
.'ArgumentIntegerTooBig'
to Identifiers.ArgumentIntegerTooBig
.'ArgumentMemberMissingGuild'
to Identifiers.ArgumentMemberMissingGuild
.'ArgumentMemberUnknownMember'
to Identifiers.ArgumentMember
.'ArgumentMessageUnknownMessage'
to Identifiers.Message
.'ArgumentNewsChannelInvalidChannel'
to Identifiers.NewsChannel
.'ArgumentNumberInvalidNumber'
to Identifiers.Number
.'ArgumentNumberTooSmall'
to Identifiers.ArgumentNumberTooSmall
.'ArgumentNumberTooBig'
to Identifiers.ArgumentNumberTooBig
.'ArgumentRoleMissingGuild'
to Identifiers.ArgumentRoleMissingGuild
.'ArgumentRoleUnknownRole'
to Identifiers.Role
.'ArgumentStringTooShort'
to Identifiers.ArgumentStringTooShort
.'ArgumentStringTooLong'
to Identifiers.ArgumentStringTooLong
.'ArgumentTextChannelInvalidChannel'
to Identifiers.TextChannel
.'ArgumentUserUnknownUser'
to Identifiers.User
.'ArgumentVoiceChannelInvalidChannel'
to Identifiers.VoiceChannel
.'CommandDisabled'
to Identifiers.CommandDisabled
.'UnavailableArgument'
to Identifiers.ArgsUnavailable
.'MissingArguments'
to Identifiers.ArgsMissing
.'Cooldown'
to Identifiers.PreconditionCooldown
.'DMOnly'
to Identifiers.PreconditionDMOnly
.'GuildOnly'
to Identifiers.PreconditionGuildOnly
.'NSFW'
to Identifiers.PreconditionNSFW
.'Permissions'
to Identifiers.PreconditionPermissions
.PreconditionContext
as third parameter to IPreconditionContainer#run
.PermissionsPrecondition#context
from PreconditionContext
to Record<PropertyKey, unknown>
.PreconditionContainerSingle#context
from PreconditionContext
to Record<PropertyKey, unknown>
.PreconditionSingleResolvableDetails#context
from PreconditionContext
to Record<PropertyKey, unknown>
.PreconditionContext
as third parameter to IPreconditionCondition#run
.Args.err
to return Err<ArgumentError<T>>
instead of ArgumentError<T>
Changelog
1.0.0-alpha.5 (2021-02-02)
client.arguments
is now client.stores.get('arguments')
client.commands
is now client.stores.get('commands')
client.events
is now client.stores.get('events')
client.preconditions
is now client.stores.get('preconditions')
client.registerUserDirectories
is now client.stores.registerUserDirectories
client.deregisterStore
is now client.stores.deregister
client.registerStore
is now client.stores.register
prefixedMessage
, unknownCommandName
, and unknownCommand
3rd
parameter now have the type string | RegExp
CommandContext.prefix
now has the type string | RegExp
UserError
, PreconditionError
, ArgumentError
classes,
and the ok
, err
functions now take a single parameter which is an object
of properties, rather than multiple parameters.Changelog
1.0.0-alpha.0 (2020-12-22)
Events.SharedReady
-> Events.ShardReady
(#107) (d8ca2c0)