Skip to content

v2.0.0

Compare
Choose a tag to compare
@Snazzah Snazzah released this 11 Feb 07:28
· 1132 commits to master since this release

Migrating from 1.x to 2.0

  • Make sure to use guildIDs instead of guildID in the command options. You can now also use an array of guild IDs to assign the same command to more guilds.
  • ctx.member and ctx.guildID is no longer guarenteed. Make sure to null-check this or use ctx.user when referencing a user.
  • If you are in a TypeScript environment, check the changes of this changelog.
  • SlashCommand#guildID is now SlashCommand#guildIDs, giving an array of strings rather than a singular one.

Changed:

  • The typings for DMInteractionRequestData and GuildInteractionRequestData is in the index.
  • The typing for InteractionRequestData is now a type rather than an interface.
  • The ping event now has a user parameter.
  • [BREAKING] CommandContext#member and CommandContext#guildID is now only given in a guild context.
  • [BREAKING] guildID in command options is now guildIDs.
  • [BREAKING] SlashCommand#guildID has been replaced with SlashCommand#guildIDs.

Added:

  • Support for updating commands in bulk. This is now used in syncing. (#20)
  • Support for multiple guild IDs in a command class. (#16)
    • CommandOptions#guildIDs can either be a string or an array of strings.
  • Support for direct message commands. (#22)
    • CommandContext#user can be used in DM and guild contexts.

Fixed:

  • Unnessesary command updating while syncing.