Пример #1
0
 internal static ServerTextChannel CreateFromJson(ChannelJson json, [CanBeNull] object state)
 {
     return((ServerTextChannel)ChannelUtils.CreateFromJson(json, state) ?? throw new ArgumentOutOfRangeException(nameof(json), "Incorrect JSON type."));
 }
Пример #2
0
 public void Uncache()
 {
     ChannelUtils.Uncache(_cache, this);
 }
Пример #3
0
 public override void Uncache()
 {
     ChannelUtils.Uncache(_cache, this);
 }
Пример #4
0
 public static async Task <TextChannel> GetAsync(ulong channelId, [CanBeNull] Client client)
 {
     return((TextChannel)await ChannelUtils.GetChannelAsync(channelId, client, ChannelType.DirectMessage, ChannelType.GroupDirectMessage, ChannelType.ServerText));
 }
Пример #5
0
 public bool Equals([CanBeNull] IChannel channel)
 {
     return(ChannelUtils.ChannelEquals(this, channel));
 }
Пример #6
0
 public override bool Equals([CanBeNull] object obj)
 {
     return(ChannelUtils.ChannelEquals(this, obj));
 }