/// <inheritdoc cref="TryGetUsers"/> /// <summary> /// Attempts to get the messages cache from this cache provider. /// </summary> public static bool TryGetMessages(this IGatewayCacheProvider cacheProvider, Snowflake channelId, out ISynchronizedDictionary <Snowflake, CachedUserMessage> cache, bool lookupOnly = false) => cacheProvider.TryGetCache(channelId, out cache, lookupOnly);
/// <inheritdoc cref="TryGetUsers"/> /// <summary> /// Attempts to get the guilds cache from this cache provider. /// </summary> public static bool TryGetGuilds(this IGatewayCacheProvider cacheProvider, out ISynchronizedDictionary <Snowflake, CachedGuild> cache) => cacheProvider.TryGetCache(out cache);
/// <inheritdoc cref="TryGetUsers"/> /// <summary> /// Attempts to get the stages cache from this cache provider. /// </summary> public static bool TryGetStages(this IGatewayCacheProvider cacheProvider, Snowflake guildId, out ISynchronizedDictionary <Snowflake, CachedStage> cache, bool lookupOnly = false) => cacheProvider.TryGetCache(guildId, out cache, lookupOnly);
/// <summary> /// Attempts to get the users cache from this cache provider. /// </summary> /// <param name="cacheProvider"> The cache provider to retrieve the cache from. </param> /// <param name="cache"> The given cache. </param> /// <returns> /// <see langword="true"/> if the cache exists. /// </returns> public static bool TryGetUsers(this IGatewayCacheProvider cacheProvider, out ISynchronizedDictionary <Snowflake, CachedSharedUser> cache) => cacheProvider.TryGetCache(out cache);