Cache
Constructors
new Cache(intents, adapter, disabledCache, client)
1new Cache(2 intents: number,3 adapter: Adapter,4 disabledCache: (NonGuildBased | GuildBased | GuildRelated)[],5 client?: UsingClient): Cache
Parameters
Parameter | Type | Default value |
---|---|---|
intents | number | undefined |
adapter | Adapter | undefined |
disabledCache | (NonGuildBased | GuildBased | GuildRelated )[] | [] |
client ? | UsingClient | undefined |
Returns
Source
Properties
Property | Modifier | Type |
---|---|---|
adapter | public | Adapter |
channels? | public | Channels |
disabledCache | readonly | (NonGuildBased | GuildBased | GuildRelated )[] |
emojis? | public | Emojis |
guilds? | public | Guilds |
intents | public | number |
members? | public | Members |
messages? | public | Messages |
overwrites? | public | Overwrites |
presences? | public | Presences |
roles? | public | Roles |
stageInstances? | public | StageInstances |
stickers? | public | Stickers |
threads? | public | Threads |
users? | public | Users |
voiceStates? | public | VoiceStates |
Accessors
hasChannelsIntent
1get hasChannelsIntent(): boolean
Returns
boolean
Source
seyfert/src/cache/index.ts:185
hasDirectMessages
1get hasDirectMessages(): boolean
Returns
boolean
Source
seyfert/src/cache/index.ts:205
hasEmojisAndStickersIntent
1get hasEmojisAndStickersIntent(): boolean
Returns
boolean
Source
seyfert/src/cache/index.ts:193
hasGuildMembersIntent
1get hasGuildMembersIntent(): boolean
Returns
boolean
Source
seyfert/src/cache/index.ts:189
hasGuildsIntent
1get hasGuildsIntent(): boolean
Returns
boolean
Source
seyfert/src/cache/index.ts:177
hasPrenseceUpdates
1get hasPrenseceUpdates(): boolean
Returns
boolean
Source
seyfert/src/cache/index.ts:201
hasRolesIntent
1get hasRolesIntent(): boolean
Returns
boolean
Source
seyfert/src/cache/index.ts:181
hasVoiceStatesIntent
1get hasVoiceStatesIntent(): boolean
Returns
boolean
Source
seyfert/src/cache/index.ts:197
Methods
bulkGet()
1bulkGet(keys: (readonly [NonGuildBased | GuildRelated, string] | readonly [GuildBased, string, string])[]): Promise<Partial<Object>>
Parameters
Parameter | Type |
---|---|
keys | (readonly [NonGuildBased | GuildRelated , string ] | readonly [GuildBased , string , string ])[] |
Returns
Promise
<Partial
<Object
>>
Source
seyfert/src/cache/index.ts:209
bulkPatch()
1bulkPatch(keys: (readonly [NonGuildBased, any, string] | readonly [GuildBased | GuildRelated, any, string, string])[]): Promise<void>
Parameters
Parameter | Type |
---|---|
keys | (readonly [NonGuildBased , any , string ] | readonly [GuildBased | GuildRelated , any , string , string ])[] |
Returns
Promise
<void
>
Source
seyfert/src/cache/index.ts:282
bulkSet()
1bulkSet(keys: (readonly [NonGuildBased, any, string] | readonly [GuildBased | GuildRelated, any, string, string])[]): Promise<void>
Parameters
Parameter | Type |
---|---|
keys | (readonly [NonGuildBased , any , string ] | readonly [GuildBased | GuildRelated , any , string , string ])[] |
Returns
Promise
<void
>
Source
seyfert/src/cache/index.ts:373
flush()
1flush(): void
Returns
void
Source
seyfert/src/cache/index.ts:168
hasIntent()
1hasIntent(intent:2 | "DirectMessages"3 | "Guilds"4 | "GuildMembers"5 | "GuildModeration"6 | "GuildBans"7 | "GuildEmojisAndStickers"8 | "GuildIntegrations"9 | "GuildWebhooks"10 | "GuildInvites"11 | "GuildVoiceStates"12 | "GuildPresences"13 | "GuildMessages"14 | "GuildMessageReactions"15 | "GuildMessageTyping"16 | "DirectMessageReactions"17 | "DirectMessageTyping"18 | "MessageContent"19 | "GuildScheduledEvents"20 | "AutoModerationConfiguration"21 | "AutoModerationExecution"22 | "GuildMessagePolls"23 | "DirectMessagePolls"): boolean
Parameters
Parameter | Type |
---|---|
intent | | "DirectMessages" | "Guilds" | "GuildMembers" | "GuildModeration" | "GuildBans" | "GuildEmojisAndStickers" | "GuildIntegrations" | "GuildWebhooks" | "GuildInvites" | "GuildVoiceStates" | "GuildPresences" | "GuildMessages" | "GuildMessageReactions" | "GuildMessageTyping" | "DirectMessageReactions" | "DirectMessageTyping" | "MessageContent" | "GuildScheduledEvents" | "AutoModerationConfiguration" | "AutoModerationExecution" | "GuildMessagePolls" | "DirectMessagePolls" |
Returns
boolean
Source
seyfert/src/cache/index.ts:173
onPacket()
1onPacket(event: GatewayDispatchPayload): Promise<void>
Parameters
Parameter | Type |
---|---|
event | GatewayDispatchPayload |
Returns
Promise
<void
>