fix sharded client current user (#1947)

This commit is contained in:
Cenk Ergen
2021-11-25 18:22:50 +03:00
committed by GitHub
parent b5c150dc16
commit d5f5ae132c

View File

@@ -495,9 +495,12 @@ namespace Discord.WebSocket
client.GuildScheduledEventUserAdd += (arg1, arg2) => _guildScheduledEventUserAdd.InvokeAsync(arg1, arg2); client.GuildScheduledEventUserAdd += (arg1, arg2) => _guildScheduledEventUserAdd.InvokeAsync(arg1, arg2);
client.GuildScheduledEventUserRemove += (arg1, arg2) => _guildScheduledEventUserRemove.InvokeAsync(arg1, arg2); client.GuildScheduledEventUserRemove += (arg1, arg2) => _guildScheduledEventUserRemove.InvokeAsync(arg1, arg2);
} }
#endregion #endregion
#region IDiscordClient #region IDiscordClient
/// <inheritdoc />
ISelfUser IDiscordClient.CurrentUser => CurrentUser;
/// <inheritdoc /> /// <inheritdoc />
async Task<IApplication> IDiscordClient.GetApplicationInfoAsync(RequestOptions options) async Task<IApplication> IDiscordClient.GetApplicationInfoAsync(RequestOptions options)
=> await GetApplicationInfoAsync().ConfigureAwait(false); => await GetApplicationInfoAsync().ConfigureAwait(false);