mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
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:
@@ -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(),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user