Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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));
        }