fix: DisconnectAsync not disconnecting users (#2346)
This commit is contained in:
@@ -1404,7 +1404,7 @@ namespace Discord.Rest
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="user">The user to disconnect.</param>
|
/// <param name="user">The user to disconnect.</param>
|
||||||
/// <returns>A task that represents the asynchronous operation for disconnecting a user.</returns>
|
/// <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);
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
async Task<IGuildUser> IGuild.GetUserAsync(ulong id, CacheMode mode, RequestOptions options)
|
async Task<IGuildUser> IGuild.GetUserAsync(ulong id, CacheMode mode, RequestOptions options)
|
||||||
|
|||||||
@@ -1407,7 +1407,7 @@ namespace Discord.WebSocket
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="user">The user to disconnect.</param>
|
/// <param name="user">The user to disconnect.</param>
|
||||||
/// <returns>A task that represents the asynchronous operation for disconnecting a user.</returns>
|
/// <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
|
#endregion
|
||||||
|
|
||||||
#region Stickers
|
#region Stickers
|
||||||
|
|||||||
Reference in New Issue
Block a user