private static void ChangeVoiceState(this DiscordSocketClient client, ulong guildId, ulong?channelId, bool muted = false, bool deafened = false) { VoiceStateChange state = new VoiceStateChange() { GuildId = guildId, ChannelId = channelId, Muted = muted, Deafened = deafened }; client.Socket.Send(GatewayOpcode.VoiceStateUpdate, state); }
/// <summary> /// Changes a client's voice state /// </summary> public static void ChangeVoiceState(this DiscordSocketClient client, VoiceStateChange state) { client.Send(GatewayOpcode.VoiceStateUpdate, state); }