* perf(plugins/helpers,rest,site,template)!: uppercase rest methods
There is no need for us to pass the methods in lower case and then use the `toUpperCase()` method everywhere. Therefore this PR changes every lowercase method to be uppercase (eg. `"get"` => `"GET"`).
* template is old version
* 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
* fix(rest)!: `editApplicationCommandPermissions`
- add `bearerToken` option
- add headers to `RestPayload`
- remove `batchEditApplicationCommandPermissions` since the related endpoint has been removed
* fix header prefix
* 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>
* feat(helpers,types): slash command localization
Discord has documented the slash command localization feature now.
This adds the full functionality for those to Discordeno.
Additionally a `Locales` has also been added to allow for better typing.
Reference: https://github.com/discord/discord-api-docs/pull/4653
* suggestion
* better locales type
* f
* fix serializing
* stupid direct pushes
* b
* fix: check new types idea
* fix: type errors
* fix: new style
* fix: more cleanup
* fix: more cleanup
* fix: cleanup audit logs
* fix: cleanup stickers
* fix: cleanup integrations
* fix: more cleanup
* fix: organize into 1 place
* fix: few errors
* fix: some broken import fixes
* fix: quite a lot of fixes across the board
* fix: more fixes for broken imports
* fix: more fixes for broken imports
* fix: handler imports
* fix: all remaining import errors
* fix: more errors needing fixes
* fix: clearing up transformers
* fix: few moer types
* fix: more cleanup of extra types
* fix: fmt
* fix: cleanup discordeno file
* Nuke Base Types (#2102)
* fix: cleanup snake stuff
* convert camelCase to snake_case (#2103)
* fix: add camelize
* fix: finalize remaining errors
* fix: imports in test
Co-authored-by: LTS20050703 <87189679+lts20050703@users.noreply.github.com>