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.
This commit is contained in:
@@ -34,7 +34,12 @@ namespace Discord.WebSocket
|
|||||||
public Task SyncPermissionsAsync(RequestOptions options = null)
|
public Task SyncPermissionsAsync(RequestOptions options = null)
|
||||||
=> ChannelHelper.SyncPermissionsAsync(this, Discord, options);
|
=> ChannelHelper.SyncPermissionsAsync(this, Discord, options);
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <summary>
|
||||||
|
/// Gets a collection of users that are currently connected to this voice channel.
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>
|
||||||
|
/// A read-only collection of users that are currently connected to this voice channel.
|
||||||
|
/// </returns>
|
||||||
public override IReadOnlyCollection<SocketGuildUser> Users
|
public override IReadOnlyCollection<SocketGuildUser> Users
|
||||||
=> Guild.Users.Where(x => x.VoiceChannel?.Id == Id).ToImmutableArray();
|
=> Guild.Users.Where(x => x.VoiceChannel?.Id == Id).ToImmutableArray();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user