Exemplo n.º 1
0
        /// <inheritdoc/>
        public Task StopSpeakingAsync(RequestOptions options = null)
        {
            var args = new ModifyVoiceStateParams
            {
                ChannelId  = Id,
                Suppressed = true
            };

            return(Discord.ApiClient.ModifyMyVoiceState(Guild.Id, args, options));
        }
Exemplo n.º 2
0
        /// <inheritdoc/>
        public Task RemoveFromSpeakerAsync(IGuildUser user, RequestOptions options = null)
        {
            var args = new ModifyVoiceStateParams
            {
                ChannelId  = Id,
                Suppressed = true
            };

            return(Discord.ApiClient.ModifyUserVoiceState(Guild.Id, user.Id, args));
        }
Exemplo n.º 3
0
        /// <inheritdoc/>
        public Task RequestToSpeakAsync(RequestOptions options = null)
        {
            var args = new ModifyVoiceStateParams
            {
                ChannelId = Id,
                RequestToSpeakTimestamp = DateTimeOffset.UtcNow
            };

            return(Discord.ApiClient.ModifyMyVoiceState(Guild.Id, args, options));
        }