From 2dd2ccc2144523725d1f58342e19d9c6203e094d Mon Sep 17 00:00:00 2001 From: Joelius300 Date: Sun, 13 Dec 2020 21:59:25 +0100 Subject: [PATCH] Update summary of SocketVoiceChannel.Users The inherited summary incorrectly stated that all users who _see_ the channel are returned when in reality only the ones _connected_ are. --- .../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 9fff6c2079..bf4a63c9fc 100644 --- a/src/Discord.Net.WebSocket/Entities/Channels/SocketVoiceChannel.cs +++ b/src/Discord.Net.WebSocket/Entities/Channels/SocketVoiceChannel.cs @@ -34,7 +34,12 @@ public ICategoryChannel Category 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();