diff --git a/website/docs/desired-properties.md b/website/docs/desired-properties.md index 51bcf56d3..6dd298c37 100644 --- a/website/docs/desired-properties.md +++ b/website/docs/desired-properties.md @@ -25,8 +25,10 @@ While a single topic might not seem memory-intensive, this property can quickly By choosing to store only the properties relevant to your bot’s functionality — like omitting `channel.topic` when it’s unnecessary — you can save gigabytes of memory. Desired Properties is thus an essential tool for bots needing scalable and efficient caching, allowing for minimal resource usage without sacrificing performance. -:::tip -Check the [TypeScript](#typescript) section if you are using typescript +:::info[Typescript] +When using Typescript you do need to enable `strictNullChecks` in your TSConfig, or else you may get type errors despire configuring stuff properly. + +Check the [TypeScript](#typescript) section for more useful information. ::: ## Configuring diff --git a/website/docs/examples/deno.md b/website/docs/examples/deno.md index 0fcb2f73b..0325ec848 100644 --- a/website/docs/examples/deno.md +++ b/website/docs/examples/deno.md @@ -20,7 +20,7 @@ This is how you can use it to create a bot that logs into discord: ```ts import { load } from 'https://deno.land/std@0.212.0/dotenv/mod.ts' -import { createBot } from 'npm:@discordeno/bot@19.0.0' +import { createBot } from 'npm:@discordeno/bot@21.0.0' const env = await load() diff --git a/website/docs/getting-started.md b/website/docs/getting-started.md index 7c233e00e..7bfde527a 100644 --- a/website/docs/getting-started.md +++ b/website/docs/getting-started.md @@ -21,6 +21,10 @@ If you need more specific packages, you can install them directly for example: npm install @discordeno/types # Using npm ``` +### Typescript + +If you are using Typescript you do need to enable `strictNullChecks` in your TSConfig, or else it may cause issues especially with [Desired Properties](#understanding-desired-properties-in-discordeno) + ## Understanding Bot Helpers Whenever you want to do something on discord, you will need to talk to the discord api. To make this easy, we provide "helpers". For example, to send a message to a channel, you can call the `bot.helpers.sendMessage` method with the 2 required parameters: