Table of Contents

Interface IGatewayClientCache

Namespace
NetCord.Gateway
Assembly
NetCord.dll
public interface IGatewayClientCache : IDisposable
Inherited Members

Properties

DMChannels

IReadOnlyDictionary<ulong, DMChannel> DMChannels { get; }

Property Value

IReadOnlyDictionary<ulong, DMChannel>

Guilds

IReadOnlyDictionary<ulong, Guild> Guilds { get; }

Property Value

IReadOnlyDictionary<ulong, Guild>

User

CurrentUser? User { get; }

Property Value

CurrentUser

Methods

CacheCurrentUser(CurrentUser)

IGatewayClientCache CacheCurrentUser(CurrentUser user)

Parameters

user CurrentUser

Returns

IGatewayClientCache

CacheDMChannel(DMChannel)

IGatewayClientCache CacheDMChannel(DMChannel dMChannel)

Parameters

dMChannel DMChannel

Returns

IGatewayClientCache

CacheGuild(Guild)

IGatewayClientCache CacheGuild(Guild guild)

Parameters

guild Guild

Returns

IGatewayClientCache

CacheGuildChannel(IGuildChannel)

IGatewayClientCache CacheGuildChannel(IGuildChannel channel)

Parameters

channel IGuildChannel

Returns

IGatewayClientCache

CacheGuildEmojis(ulong, ImmutableDictionary<ulong, GuildEmoji>)

IGatewayClientCache CacheGuildEmojis(ulong guildId, ImmutableDictionary<ulong, GuildEmoji> emojis)

Parameters

guildId ulong
emojis ImmutableDictionary<ulong, GuildEmoji>

Returns

IGatewayClientCache

CacheGuildScheduledEvent(GuildScheduledEvent)

IGatewayClientCache CacheGuildScheduledEvent(GuildScheduledEvent scheduledEvent)

Parameters

scheduledEvent GuildScheduledEvent

Returns

IGatewayClientCache

CacheGuildStickers(ulong, ImmutableDictionary<ulong, GuildSticker>)

IGatewayClientCache CacheGuildStickers(ulong guildId, ImmutableDictionary<ulong, GuildSticker> stickers)

Parameters

guildId ulong
stickers ImmutableDictionary<ulong, GuildSticker>

Returns

IGatewayClientCache

CacheGuildThread(GuildThread)

IGatewayClientCache CacheGuildThread(GuildThread thread)

Parameters

thread GuildThread

Returns

IGatewayClientCache

CacheGuildUser(GuildUser)

IGatewayClientCache CacheGuildUser(GuildUser user)

Parameters

user GuildUser

Returns

IGatewayClientCache

CacheGuildUsers(ulong, IEnumerable<GuildUser>)

IGatewayClientCache CacheGuildUsers(ulong guildId, IEnumerable<GuildUser> users)

Parameters

guildId ulong
users IEnumerable<GuildUser>

Returns

IGatewayClientCache

CachePresence(Presence)

IGatewayClientCache CachePresence(Presence presence)

Parameters

presence Presence

Returns

IGatewayClientCache

CachePresences(ulong, IEnumerable<Presence>)

IGatewayClientCache CachePresences(ulong guildId, IEnumerable<Presence> presences)

Parameters

guildId ulong
presences IEnumerable<Presence>

Returns

IGatewayClientCache

CacheRole(Role)

IGatewayClientCache CacheRole(Role role)

Parameters

role Role

Returns

IGatewayClientCache

CacheStageInstance(StageInstance)

IGatewayClientCache CacheStageInstance(StageInstance stageInstance)

Parameters

stageInstance StageInstance

Returns

IGatewayClientCache

CacheVoiceState(VoiceState)

IGatewayClientCache CacheVoiceState(VoiceState voiceState)

Parameters

voiceState VoiceState

Returns

IGatewayClientCache

RemoveGuild(ulong)

IGatewayClientCache RemoveGuild(ulong guildId)

Parameters

guildId ulong

Returns

IGatewayClientCache

RemoveGuildChannel(ulong, ulong)

IGatewayClientCache RemoveGuildChannel(ulong guildId, ulong channelId)

Parameters

guildId ulong
channelId ulong

Returns

IGatewayClientCache

RemoveGuildScheduledEvent(ulong, ulong)

IGatewayClientCache RemoveGuildScheduledEvent(ulong guildId, ulong scheduledEventId)

Parameters

guildId ulong
scheduledEventId ulong

Returns

IGatewayClientCache

RemoveGuildThread(ulong, ulong)

IGatewayClientCache RemoveGuildThread(ulong guildId, ulong threadId)

Parameters

guildId ulong
threadId ulong

Returns

IGatewayClientCache

RemoveGuildUser(ulong, ulong)

IGatewayClientCache RemoveGuildUser(ulong guildId, ulong userId)

Parameters

guildId ulong
userId ulong

Returns

IGatewayClientCache

RemoveRole(ulong, ulong)

IGatewayClientCache RemoveRole(ulong guildId, ulong roleId)

Parameters

guildId ulong
roleId ulong

Returns

IGatewayClientCache

RemoveStageInstance(ulong, ulong)

IGatewayClientCache RemoveStageInstance(ulong guildId, ulong stageInstanceId)

Parameters

guildId ulong
stageInstanceId ulong

Returns

IGatewayClientCache

RemoveVoiceState(ulong, ulong)

IGatewayClientCache RemoveVoiceState(ulong guildId, ulong userId)

Parameters

guildId ulong
userId ulong

Returns

IGatewayClientCache

SyncGuildActiveThreads(ulong, ImmutableDictionary<ulong, GuildThread>)

IGatewayClientCache SyncGuildActiveThreads(ulong guildId, ImmutableDictionary<ulong, GuildThread> threads)

Parameters

guildId ulong
threads ImmutableDictionary<ulong, GuildThread>

Returns

IGatewayClientCache

SyncGuilds(IReadOnlyList<ulong>)

IGatewayClientCache SyncGuilds(IReadOnlyList<ulong> guildIds)

Parameters

guildIds IReadOnlyList<ulong>

Returns

IGatewayClientCache