Commit Graph

6 Commits

Author SHA1 Message Date
Fleny
ca9f4fec10 docs: Include notice of strictNullChecks being required (#4267)
And also update deno example to use v21
2025-07-28 08:21:51 +02:00
Fleny
ef5cf54c66 fix(bot): Use an object to present desired properties errors (#4208)
* 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
2025-06-01 08:20:16 +02:00
Fleny
0059056d77 Use as instead of specifying the generic (#4111) 2025-01-31 17:58:58 +01:00
Fleny
41219d5417 feat(bot): Remove some clutter from desired proprerties intellisense (#4050)
* 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>
2024-12-28 23:08:15 +05:30
Awesome Stickz
b151328969 docs: change wordings on caching and desired props page (#4010)
* docs: change wordings on caching and desired props page

* change value to property
2024-11-26 16:34:38 +01:00
Fleny
4939822434 docs: Update desired properties docs (#3940)
* 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
2024-11-19 16:40:01 -06:00