fix: DisconnectAsync not disconnecting users (#2346)
This commit is contained in:
@@ -1407,7 +1407,7 @@ namespace Discord.WebSocket
|
||||
/// </summary>
|
||||
/// <param name="user">The user to disconnect.</param>
|
||||
/// <returns>A task that represents the asynchronous operation for disconnecting a user.</returns>
|
||||
async Task IGuild.DisconnectAsync(IGuildUser user) => await user.ModifyAsync(x => x.Channel = new Optional<IVoiceChannel>());
|
||||
async Task IGuild.DisconnectAsync(IGuildUser user) => await user.ModifyAsync(x => x.Channel = null);
|
||||
#endregion
|
||||
|
||||
#region Stickers
|
||||
|
||||
Reference in New Issue
Block a user