/// <inheritdoc/> public Task StopSpeakingAsync(RequestOptions options = null) { var args = new ModifyVoiceStateParams { ChannelId = Id, Suppressed = true }; return(Discord.ApiClient.ModifyMyVoiceState(Guild.Id, args, options)); }
/// <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)); }
/// <inheritdoc/> public Task RequestToSpeakAsync(RequestOptions options = null) { var args = new ModifyVoiceStateParams { ChannelId = Id, RequestToSpeakTimestamp = DateTimeOffset.UtcNow }; return(Discord.ApiClient.ModifyMyVoiceState(Guild.Id, args, options)); }