Currently the big bot gateway worker was sending camelCase packets to the bot which caused the transformers in `@discordeno/bot` to not find most of the properties they need in the payload.
This changes the docs to show to override the forwardToBot method to send the packets as-is to the bot.
Co-authored-by: Awesome Stickz <awesome@stickz.dev>
* Use DesiredPropertiesError instead of strings
Using an object allows typescript to error in more cases as with strings
if the original propriety was a string it would not error for stuff like
`.endsWith(...)`
We use a symbol to make sure the type doesn't actually become a generic
object, but instead is a specific type that can be checked against.
* Update docs
* fix: the 'color' type on role is set to 'undefined' when its value is '0'
* fix: ensure role color is correctly assigned when value is 0
* fix: revert color type change
* fix(docs): fixed typo in big bot guide
* fix(gateway): fixed an issue which would cause bot status to appear as online if the user used 'offline' as the status
* Update settings.json
* remove offline status in DiscordUpdatePresence.status
* Apply suggestions from code review
---------
Co-authored-by: Awesome Stickz <awesome@stickz.dev>
* docs: update header to v20
* Update to upcoming version instead
* Use the new DISCORDENO_VERSION
* Use the new DISCORDENO_VERSION
* Update website/docs/bigbot/step-2-rest.md
---------
Co-authored-by: Awesome Stickz <awesome@stickz.dev>
Co-authored-by: Fleny <Fleny113@outlook.com>
* Remove TBot, Use SetupDesiredProps
* Remove even more clutter from intellisense
* Use type instead of interfaces for some types
This avoids the need for mapped types in Bot
* docs: add info about removing ts clutter to desired props guide
* docs: improve ts clutter section in desired props guide more
---------
Co-authored-by: Awesome Stickz <awesome@stickz.dev>
* Update docs for desired properties
* Update examples to use createBot desiredProperties
The BigBot and reaction roles examples use the Discordeno CLI
* Migrate examples to v19 stable
* Docs work
* docs: add caching guide
* fix: change "client" to BOT
* change BOT to bot instead
* added a bit more info to important point to note in manual caching
* Migrate eslint and prettier to biomejs
This does NOT include examples/bigbot as it has its own formatter
* Update to biome 1.8.0
* Readd dotenv dev dependency to rest
During a merge it got lost
* Do some code changes & run prettier and eslint
* Fix test:test-type script
* Apply code review suggestions
* update heartbeat interval & add a reason for the specific value
* Fix husky error
* Update to TS 5.5
And use ${configDir}
* Fix test.json tsconfig base
---------
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
* Update docusaurus typescript setup for v3
And fix lint-staged and eslint
* Enable automatic JSX runtime
* Remove babel config and dependencies
* update yarn.lock
* add typecheck to site workflow
* update typedoc config
* downgrade docusaurus packages
* Update site.yml
* Type context and options in webpack-docusaurus-plugin.ts
* Add reaction-roles code from docs example
* Finish /roles reactions create command, missing event handler
* Add handler for the role buttons
* Initial update to reactionroles.md
+ code changes accordingly
* Finish reactionroles.md file
* Corrections to reactionroles.md
* update deps & add --strip-leading-paths to swc
* Add a note for the possibile ratelimit on command upsert
* Update website/docs/examples/reactionroles.md
Co-authored-by: LTS20050703 <lts20050703@gmail.com>
* Apply suggestions from code review
Co-authored-by: LTS20050703 <lts20050703@gmail.com>
* Update website/docs/examples/reactionroles.md
Co-authored-by: LTS20050703 <lts20050703@gmail.com>
* Use a register-commands.ts for app commands
* Apply suggestions from code review
Co-authored-by: LTS20050703 <lts20050703@gmail.com>
* Update for the latest version of discordeno
Also add the tsconfig for the reaction roles example as i forgot it and was using the root dir one
* Update deps, add typescript as dev deps, add .swcrc
---------
Co-authored-by: Matt Hatcher <3768988+MatthewSH@users.noreply.github.com>
Co-authored-by: Jonathan Ho <heiheiho000@gmail.com>
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
Co-authored-by: LTS20050703 <lts20050703@gmail.com>
* Update docusaurus typescript setup for v3
And fix lint-staged and eslint
* Enable automatic JSX runtime
* Remove babel config and dependencies
* update yarn.lock
* add typecheck to site workflow
* update typedoc config
* downgrade docusaurus packages
* Update site.yml
* Type context and options in webpack-docusaurus-plugin.ts
* Update env tips and add minimal examples for node and bun
And update the one from deno that was really out of date
---------
Co-authored-by: Matt Hatcher <3768988+MatthewSH@users.noreply.github.com>
* docs: Updated the guide for making custom bot REST instances to use the new createBaseHeaders() function
* Update website/docs/bigbot/step-2-rest.md
* Update website/docs/bigbot/step-2-rest.md
---------
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>