Fixed:
- lastShardId & totalShards when starting a bot without pre-set `gatewayBot` information
Removed:
- Debug handling of close code 1000 for shards
* refactor(bot,helpers,plugins,rest,util)!: improve rest route handling
- rename endpoints constant to routes
- simplify routes code by removing bases and function calls
- url query params can now be passed to the route functions
* style: deno fmt
* fix base stuff
* suggestions
Added:
- `convertRestError` function so you can edit the error stack better/add additional handling
- `Collection#forceSet` method which ignores the `maxSize` limit of the collection
Changed:
- Intent calculation now needs to be done manually (eg. `Intents.Guilds | Intents.GuildMessages`) **BREAKING**
Fixed:
- `ApplicationCommandOption#required` is optional
- `createInvite` sending the wrong value for `target_application_id`
- `editApplicationCommandPermissions` needs a bearer token to access the related endpoint **BREAKING**
- `sendInteractionResponse` not uploading files
Removed:
- leftover console.log in the `spawnShards` and `processGlobalQueue` functions
* localization updates
Upstream: 2f854d3fd6
Types: DiscordApplicationCommmand and DiscordApplicationCommandOption: Update documentation
Types: DiscordActivityButton: Add documentation link
Helper: upsertApplicationCommand: All fields are optional, but any fields provided will entirely overwrite the existing values of those fields.
* revert unrelated changes
* update SLASH_COMMANDS_NAME_REGEX
* createApplicationCommand options: AtLeastOne instead of Partial
Co-authored-by: ITOH <to@itoh.at>
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>