Interface IGatewayClientCache
- Namespace
- NetCord.Gateway
- Assembly
- NetCord.dll
public interface IGatewayClientCache : IDictionaryProvider, IDisposable
- Inherited Members
-
Properties
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
CacheGuild(Guild)
IGatewayClientCache CacheGuild(Guild guild)
Parameters
guild Guild
Returns
- IGatewayClientCache
CacheGuildChannel(IGuildChannel)
IGatewayClientCache CacheGuildChannel(IGuildChannel channel)
Parameters
channel IGuildChannel
Returns
- IGatewayClientCache
CacheGuildScheduledEvent(GuildScheduledEvent)
IGatewayClientCache CacheGuildScheduledEvent(GuildScheduledEvent scheduledEvent)
Parameters
scheduledEvent GuildScheduledEvent
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, IReadOnlyList<GuildUser>)
IGatewayClientCache CacheGuildUsers(ulong guildId, IReadOnlyList<GuildUser> users)
Parameters
guildId ulong
users IReadOnlyList<GuildUser>
Returns
- IGatewayClientCache
CachePresence(Presence)
IGatewayClientCache CachePresence(Presence presence)
Parameters
presence Presence
Returns
- IGatewayClientCache
CachePresences(ulong, IReadOnlyList<Presence>)
IGatewayClientCache CachePresences(ulong guildId, IReadOnlyList<Presence> presences)
Parameters
guildId ulong
presences IReadOnlyList<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, IReadOnlyDictionary<ulong, GuildThread>)
IGatewayClientCache SyncGuildActiveThreads(ulong guildId, IReadOnlyDictionary<ulong, GuildThread> threads)
Parameters
guildId ulong
threads IReadOnlyDictionary<ulong, GuildThread>
Returns
- IGatewayClientCache
SyncGuildEmojis(ulong, IReadOnlyDictionary<ulong, GuildEmoji>)
IGatewayClientCache SyncGuildEmojis(ulong guildId, IReadOnlyDictionary<ulong, GuildEmoji> emojis)
Parameters
guildId ulong
emojis IReadOnlyDictionary<ulong, GuildEmoji>
Returns
- IGatewayClientCache
SyncGuildStickers(ulong, IReadOnlyDictionary<ulong, GuildSticker>)
IGatewayClientCache SyncGuildStickers(ulong guildId, IReadOnlyDictionary<ulong, GuildSticker> stickers)
Parameters
guildId ulong
stickers IReadOnlyDictionary<ulong, GuildSticker>
Returns
- IGatewayClientCache
SyncGuilds(IReadOnlyList<ulong>)
IGatewayClientCache SyncGuilds(IReadOnlyList<ulong> guildIds)
Parameters
guildIds IReadOnlyList<ulong>
Returns
- IGatewayClientCache