docs: change wordings on caching and desired props page (#4010)

* docs: change wordings on caching and desired props page

* change value to property
This commit is contained in:
Awesome Stickz
2024-11-26 16:34:38 +01:00
committed by GitHub
parent c6f04be311
commit b151328969
5 changed files with 81 additions and 31 deletions
+1 -1
View File
@@ -232,7 +232,7 @@ BOT.rest = createRestManager({
BOT.rest.createBaseHeaders = () => {
return {
'user-agent': `DiscordBot (https://github.com/discordeno/discordeno, v19.0.0-alpha.1)`,
'user-agent': `DiscordBot (https://github.com/discordeno/discordeno, v19.0.0)`,
bot_id: BOT.rest.applicationId.toString(),
}
}
+1 -1
View File
@@ -58,7 +58,7 @@ We are going to proceed with the understanding that we have 5,000 shards, 5,000,
```ts
import { createGatewayManager } from '@discordeno/gateway'
import { logger } from '@discordeno/utils'
import { GatewayIntents } from '@discordeno/types'
import { REST } from '../rest.ts'
export const GATEWAY = createGatewayManager({
+1 -1
View File
@@ -153,7 +153,7 @@ BOT.gateway.requestMembers = async function (guildId, options) {
}
```
This will now send a request to our gateway manager whenever the bot makes a request to fetch members.
This will now send a request to our gateway manager whenever the bot makes a request to fetch members and the gateway process will send back `GUILD_MEMBERS_CHUNK` event(s) to the bot process.
## Caching