Skip to content

Commit

Permalink
fix sharded client current user (discord-net#1947)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cenngo authored Nov 25, 2021
1 parent b5c150d commit d5f5ae1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Discord.Net.WebSocket/DiscordShardedClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -495,9 +495,12 @@ private void RegisterEvents(DiscordSocketClient client, bool isPrimary)
client.GuildScheduledEventUserAdd += (arg1, arg2) => _guildScheduledEventUserAdd.InvokeAsync(arg1, arg2);
client.GuildScheduledEventUserRemove += (arg1, arg2) => _guildScheduledEventUserRemove.InvokeAsync(arg1, arg2);
}
#endregion
#endregion

#region IDiscordClient
/// <inheritdoc />
ISelfUser IDiscordClient.CurrentUser => CurrentUser;

/// <inheritdoc />
async Task<IApplication> IDiscordClient.GetApplicationInfoAsync(RequestOptions options)
=> await GetApplicationInfoAsync().ConfigureAwait(false);
Expand Down

0 comments on commit d5f5ae1

Please sign in to comment.