Example #1
0
        public async Task <IMessageChannel> SelectTextChannelAsync(ulong channelId, RequestOptions options = null)
        {
            var model = await ApiClient.SendSelectTextChannelAsync(channelId, options).ConfigureAwait(false);

            return(RpcChannel.Create(this, model) as IMessageChannel);
        }
Example #2
0
        public async Task <IRpcAudioChannel> SelectVoiceChannelAsync(ulong channelId, bool force = false, RequestOptions options = null)
        {
            var model = await ApiClient.SendSelectVoiceChannelAsync(channelId, force, options).ConfigureAwait(false);

            return(RpcChannel.Create(this, model) as IRpcAudioChannel);
        }
Example #3
0
        public async Task <RpcChannel> GetRpcChannelAsync(ulong id, RequestOptions options = null)
        {
            var model = await ApiClient.SendGetChannelAsync(id, options).ConfigureAwait(false);

            return(RpcChannel.Create(this, model));
        }