From e385c40fc7b3106fd8ee09ec9feb4f2b89514224 Mon Sep 17 00:00:00 2001 From: Joel Liechti <52202086+Joelius300@users.noreply.github.com> Date: Mon, 14 Dec 2020 04:42:04 +0100 Subject: [PATCH] docs: Update summary of SocketVoiceChannel.Users (#1714) The inherited summary incorrectly stated that all users who _see_ the channel are returned when in reality only the ones _connected_ are. --- src/Discord.Net.WebSocket/Entities/Channels/SocketVoiceChannel.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Discord.Net.WebSocket/Entities/Channels/SocketVoiceChannel.cs b/src/Discord.Net.WebSocket/Entities/Channels/SocketVoiceChannel.cs index 9fff6c207..bf4a63c9f 100644 --- a/src/Discord.Net.WebSocket/Entities/Channels/SocketVoiceChannel.cs +++ b/src/Discord.Net.WebSocket/Entities/Channels/SocketVoiceChannel.cs @@ -34,7 +34,12 @@ namespace Discord.WebSocket public Task SyncPermissionsAsync(RequestOptions options = null) => ChannelHelper.SyncPermissionsAsync(this, Discord, options); - /// + /// + /// Gets a collection of users that are currently connected to this voice channel. + /// + /// + /// A read-only collection of users that are currently connected to this voice channel. + /// public override IReadOnlyCollection Users => Guild.Users.Where(x => x.VoiceChannel?.Id == Id).ToImmutableArray();