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