示例#1
0
 public static new ServerTextChannel GetCached(ulong channelId)
 {
     return(FactoryUtils.GetCached(_cache, channelId));
 }
示例#2
0
 public static IDirectMessageChannel GetCachedDirectMessageChannel(ulong channelId)
 {
     return((IDirectMessageChannel)FactoryUtils.GetCached(_globalCache, channelId));
 }
示例#3
0
 public static Server GetCached(ulong serverId)
 {
     return(FactoryUtils.GetCached(_cache, serverId));
 }
示例#4
0
 public static INonCatServerChannel GetCachedNonCatServerChannel(ulong channelId)
 {
     return((INonCatServerChannel)FactoryUtils.GetCached(_globalCache, channelId));
 }
示例#5
0
 public static IChannel GetCachedNonCatChannel(ulong channelId)
 {
     return(FactoryUtils.GetCached(_globalCache, channelId));
 }
示例#6
0
 public static ChannelCategory GetCached(ulong categoryId)
 {
     return(FactoryUtils.GetCached(_cache, categoryId));
 }
示例#7
0
 public static new DirectMessageTextChannel GetCached(ulong channelId)
 {
     return(FactoryUtils.GetCached(_cache, channelId));
 }
示例#8
0
 public static TextChannel GetCached(ulong channelId)
 {
     return(FactoryUtils.GetCached(DirectMessageTextChannel._cache, channelId) ?? (TextChannel)FactoryUtils.GetCached(ServerTextChannel._cache, channelId));
 }