You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.