From 0059056d77ccc002e13fd2a8a59b25b6854e5da3 Mon Sep 17 00:00:00 2001 From: Fleny Date: Fri, 31 Jan 2025 17:58:58 +0100 Subject: [PATCH] Use as instead of specifying the generic (#4111) --- website/docs/desired-properties.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/docs/desired-properties.md b/website/docs/desired-properties.md index 0f88a0ba5..123f04f10 100644 --- a/website/docs/desired-properties.md +++ b/website/docs/desired-properties.md @@ -194,9 +194,9 @@ const desiredProperties = createDesiredPropertiesObject({ interface BotDesiredProperties extends Required {} -const bot = createBot({ +const bot = createBot({ // Your usual createBot options, such as token and intents - desiredProperties, + desiredProperties: desiredProperties as BotDesiredProperties, }); ``` @@ -206,4 +206,4 @@ Now, when you hover over `bot.helpers.getUser()`, you'll see: (property) getUser: (id: BigString) => Promise> ``` -This makes it more readable and easier to work with. \ No newline at end of file +This makes it more readable and easier to work with.