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.