Exemplo n.º 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."));
 }
Exemplo n.º 2
0
 public void Uncache()
 {
     ChannelUtils.Uncache(_cache, this);
 }
Exemplo n.º 3
0
 public override void Uncache()
 {
     ChannelUtils.Uncache(_cache, this);
 }
Exemplo n.º 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));
 }
Exemplo n.º 5
0
 public bool Equals([CanBeNull] IChannel channel)
 {
     return(ChannelUtils.ChannelEquals(this, channel));
 }
Exemplo n.º 6
0
 public override bool Equals([CanBeNull] object obj)
 {
     return(ChannelUtils.ChannelEquals(this, obj));
 }