Skip to content

Releases: sapphiredev/framework

v1.0.0-alpha.10

12 Feb 09:56
Compare
Choose a tag to compare
v1.0.0-alpha.10 Pre-release
Pre-release

1.0.0-alpha.10 (2021-02-12)

⚠ BREAKING CHANGES

  • command-accepted: Events.CommandRun third argument changed type to CommandRunPayload,
    this is mostly identical to CommandAcceptedPayload (and exactly identical to CommandFinishPayload)
    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 to CommandFinishPayload,
    this is mostly identical to CommandAcceptedPayload (and exactly identical to CommandRunPayload)
    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 of Args.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

07 Feb 15:27
Compare
Choose a tag to compare
v1.0.0-alpha.9 Pre-release
Pre-release

⚠ BREAKING CHANGES

  • preconditions: Changed PreconditionContext.command to external

Features

  • events: added UnknownCommandPayload.commandName (#166) (3dbcffd)

  • preconditions: make IPreconditionContainer#run's context optional (#167) (57ad8d2)

v1.0.0-alpha.8

07 Feb 13:44
Compare
Choose a tag to compare
v1.0.0-alpha.8 Pre-release
Pre-release

1.0.0-alpha.8 (2021-02-07)

⚠ BREAKING CHANGES

  • events: Changed Events.UnknownCommandName event arguments to UnknownCommandNamePayload.
  • events: Changed Events.UnknownCommand event arguments to UnknownCommandPayload.
  • events: CoreMessageParser is not longer a message event listener

Features

  • events: create Events.PreMessageParsed (#164) (0311838)

  • events: remove UnknownCommandName, changed UnknownCommand (#165) (c3273d1)

v1.0.0-alpha.7

06 Feb 15:56
Compare
Choose a tag to compare
v1.0.0-alpha.7 Pre-release
Pre-release

1.0.0-alpha.7 (2021-02-06)

⚠ BREAKING CHANGES

  • errors: Changed UserError identifier from 'ArgumentBooleanInvalidBoolean' to Identifiers.ArgumentBoolean.
  • errors: Changed UserError identifier from 'ArgumentCategoryChannelInvalidChannel' to Identifiers.ArgumentCategoryChannel.
  • errors: Changed UserError identifier from 'ArgumentChannelMissingChannel' to Identifiers.ArgumentChannel.
  • errors: Changed UserError identifier from 'ArgumentDateInvalidNumber' to Identifiers.ArgumentDate.
  • errors: Changed UserError identifier from 'ArgumentDateTooSmall' to Identifiers.ArgumentDateTooSmall.
  • errors: Changed UserError identifier from 'ArgumentDateTooBig' to Identifiers.ArgumentDateTooBig.
  • errors: Changed UserError identifier from 'ArgumentDMChannelInvalidChannel' to Identifiers.ArgumentDMChannel.
  • errors: Changed UserError identifier from 'ArgumentFloatInvalidFloat' to Identifiers.ArgumentFloat.
  • errors: Changed UserError identifier from 'ArgumentFloatTooSmall' to Identifiers.ArgumentFloatTooSmall.
  • errors: Changed UserError identifier from 'ArgumentFloatTooBig' to Identifiers.ArgumentFloatTooBig.
  • errors: Changed UserError identifier from 'ArgumentGuildChannelMissingGuild' to Identifiers.ArgumentGuildChannelMissingGuild.
  • errors: Changed UserError identifier from 'ArgumentGuildChannelUnknownChannel' to Identifiers.ArgumentGuildChannel.
  • errors: Changed UserError identifier from 'ArgumentHyperlinkInvalidURL' to Identifiers.ArgumentHyperlink.
  • errors: Changed UserError identifier from 'ArgumentIntegerInvalidNumber' to Identifiers.ArgumentInteger.
  • errors: Changed UserError identifier from 'ArgumentIntegerTooSmall' to Identifiers.ArgumentIntegerTooSmall.
  • errors: Changed UserError identifier from 'ArgumentIntegerTooBig' to Identifiers.ArgumentIntegerTooBig.
  • errors: Changed UserError identifier from 'ArgumentMemberMissingGuild' to Identifiers.ArgumentMemberMissingGuild.
  • errors: Changed UserError identifier from 'ArgumentMemberUnknownMember' to Identifiers.ArgumentMember.
  • errors: Changed UserError identifier from 'ArgumentMessageUnknownMessage' to Identifiers.Message.
  • errors: Changed UserError identifier from 'ArgumentNewsChannelInvalidChannel' to Identifiers.NewsChannel.
  • errors: Changed UserError identifier from 'ArgumentNumberInvalidNumber' to Identifiers.Number.
  • errors: Changed UserError identifier from 'ArgumentNumberTooSmall' to Identifiers.ArgumentNumberTooSmall.
  • errors: Changed UserError identifier from 'ArgumentNumberTooBig' to Identifiers.ArgumentNumberTooBig.
  • errors: Changed UserError identifier from 'ArgumentRoleMissingGuild' to Identifiers.ArgumentRoleMissingGuild.
  • errors: Changed UserError identifier from 'ArgumentRoleUnknownRole' to Identifiers.Role.
  • errors: Changed UserError identifier from 'ArgumentStringTooShort' to Identifiers.ArgumentStringTooShort.
  • errors: Changed UserError identifier from 'ArgumentStringTooLong' to Identifiers.ArgumentStringTooLong.
  • errors: Changed UserError identifier from 'ArgumentTextChannelInvalidChannel' to Identifiers.TextChannel.
  • errors: Changed UserError identifier from 'ArgumentUserUnknownUser' to Identifiers.User.
  • errors: Changed UserError identifier from 'ArgumentVoiceChannelInvalidChannel' to Identifiers.VoiceChannel.
  • errors: Changed UserError identifier from 'CommandDisabled' to Identifiers.CommandDisabled.
  • errors: Changed UserError identifier from 'UnavailableArgument' to Identifiers.ArgsUnavailable.
  • errors: Changed UserError identifier from 'MissingArguments' to Identifiers.ArgsMissing.
  • errors: Changed UserError identifier from 'Cooldown' to Identifiers.PreconditionCooldown.
  • errors: Changed UserError identifier from 'DMOnly' to Identifiers.PreconditionDMOnly.
  • errors: Changed UserError identifier from 'GuildOnly' to Identifiers.PreconditionGuildOnly.
  • errors: Changed UserError identifier from 'NSFW' to Identifiers.PreconditionNSFW.
  • errors: Changed UserError identifier from 'Permissions' to Identifiers.PreconditionPermissions.
  • preconditions: Added PreconditionContext as third parameter to IPreconditionContainer#run.
  • preconditions: Changed PermissionsPrecondition#context from PreconditionContext to Record<PropertyKey, unknown>.
  • preconditions: Changed PreconditionContainerSingle#context from PreconditionContext to Record<PropertyKey, unknown>.
  • preconditions: Changed PreconditionSingleResolvableDetails#context from PreconditionContext to Record<PropertyKey, unknown>.
  • preconditions: Added PreconditionContext as third parameter to IPreconditionCondition#run.
  • args: changed Args.err to return Err<ArgumentError<T>> instead of ArgumentError<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

04 Feb 10:14
Compare
Choose a tag to compare
v1.0.0-alpha.6 Pre-release
Pre-release

1.0.0-alpha.6 (2021-02-04)

Bug Fixes

  • preconditions: make options optional (#155) (ecc5323)

v1.0.0-alpha.5

02 Feb 13:52
Compare
Choose a tag to compare
v1.0.0-alpha.5 Pre-release
Pre-release

1.0.0-alpha.5 (2021-02-02)

⚠ BREAKING CHANGES

  • client: client.arguments is now client.stores.get('arguments')
  • client: client.commands is now client.stores.get('commands')
  • client: client.events is now client.stores.get('events')
  • client: client.preconditions is now client.stores.get('preconditions')
  • client: client.registerUserDirectories is now client.stores.registerUserDirectories
  • client: client.deregisterStore is now client.stores.deregister
  • client: client.registerStore is now client.stores.register
  • command parser: The events prefixedMessage, unknownCommandName, and unknownCommand 3rd
    parameter now have the type string | RegExp
  • command parser: CommandContext.prefix now has the type string | RegExp
  • The UserError, PreconditionError, ArgumentError classes,
    and the ok, 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)

v1.0.0-alpha.4

28 Jan 21:18
Compare
Choose a tag to compare
v1.0.0-alpha.4 Pre-release
Pre-release

1.0.0-alpha.4 (2021-01-28)

Features

Bug Fixes

  • add discord.js utilities for type guards (cf74431)

v1.0.0-alpha.3

14 Jan 18:25
Compare
Choose a tag to compare
v1.0.0-alpha.3 Pre-release
Pre-release

1.0.0-alpha.3 (2021-01-14)

Features

Bug Fixes

v1.0.0-alpha.2

03 Jan 15:23
Compare
Choose a tag to compare
v1.0.0-alpha.2 Pre-release
Pre-release

1.0.0-alpha.2 (2021-01-03)

Features

Bug Fixes

v1.0.0-alpha.1

28 Dec 22:59
Compare
Choose a tag to compare
v1.0.0-alpha.1 Pre-release
Pre-release

1.0.0-alpha.1 (2020-12-28)

Features

  • new preconditions (#119) (10c7a1b)
  • arguments: Add Message argument, use discord-utilities (#118) (c70af0a)
  • logger: make Logger.levels protected (5a4b8d6)