Skip to content

Cache

Constructors

new Cache(intents, adapter, disabledCache, client)

1
new Cache(
2
intents: number,
3
adapter: Adapter,
4
disabledCache: (NonGuildBased | GuildBased | GuildRelated)[],
5
client?: UsingClient): Cache

Parameters

ParameterTypeDefault value
intentsnumberundefined
adapterAdapterundefined
disabledCache(NonGuildBased | GuildBased | GuildRelated)[][]
client?UsingClientundefined

Returns

Cache

Source

seyfert/src/cache/index.ts:97

Properties

PropertyModifierType
adapterpublicAdapter
channels?publicChannels
disabledCachereadonly(NonGuildBased | GuildBased | GuildRelated)[]
emojis?publicEmojis
guilds?publicGuilds
intentspublicnumber
members?publicMembers
messages?publicMessages
overwrites?publicOverwrites
presences?publicPresences
roles?publicRoles
stageInstances?publicStageInstances
stickers?publicStickers
threads?publicThreads
users?publicUsers
voiceStates?publicVoiceStates

Accessors

hasChannelsIntent

1
get hasChannelsIntent(): boolean

Returns

boolean

Source

seyfert/src/cache/index.ts:185


hasDirectMessages

1
get hasDirectMessages(): boolean

Returns

boolean

Source

seyfert/src/cache/index.ts:205


hasEmojisAndStickersIntent

1
get hasEmojisAndStickersIntent(): boolean

Returns

boolean

Source

seyfert/src/cache/index.ts:193


hasGuildMembersIntent

1
get hasGuildMembersIntent(): boolean

Returns

boolean

Source

seyfert/src/cache/index.ts:189


hasGuildsIntent

1
get hasGuildsIntent(): boolean

Returns

boolean

Source

seyfert/src/cache/index.ts:177


hasPrenseceUpdates

1
get hasPrenseceUpdates(): boolean

Returns

boolean

Source

seyfert/src/cache/index.ts:201


hasRolesIntent

1
get hasRolesIntent(): boolean

Returns

boolean

Source

seyfert/src/cache/index.ts:181


hasVoiceStatesIntent

1
get hasVoiceStatesIntent(): boolean

Returns

boolean

Source

seyfert/src/cache/index.ts:197

Methods

bulkGet()

1
bulkGet(keys: (readonly [NonGuildBased | GuildRelated, string] | readonly [GuildBased, string, string])[]): Promise<Partial<Object>>

Parameters

ParameterType
keys(readonly [NonGuildBased | GuildRelated, string] | readonly [GuildBased, string, string])[]

Returns

Promise<Partial<Object>>

Source

seyfert/src/cache/index.ts:209


bulkPatch()

1
bulkPatch(keys: (readonly [NonGuildBased, any, string] | readonly [GuildBased | GuildRelated, any, string, string])[]): Promise<void>

Parameters

ParameterType
keys(readonly [NonGuildBased, any, string] | readonly [GuildBased | GuildRelated, any, string, string])[]

Returns

Promise<void>

Source

seyfert/src/cache/index.ts:282


bulkSet()

1
bulkSet(keys: (readonly [NonGuildBased, any, string] | readonly [GuildBased | GuildRelated, any, string, string])[]): Promise<void>

Parameters

ParameterType
keys(readonly [NonGuildBased, any, string] | readonly [GuildBased | GuildRelated, any, string, string])[]

Returns

Promise<void>

Source

seyfert/src/cache/index.ts:373


flush()

1
flush(): void

Returns

void

Source

seyfert/src/cache/index.ts:168


hasIntent()

1
hasIntent(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

ParameterType
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()

1
onPacket(event: GatewayDispatchPayload): Promise<void>

Parameters

ParameterType
eventGatewayDispatchPayload

Returns

Promise<void>

Source

seyfert/src/cache/index.ts:464