Browse Source

fix sharded client current user (#1947)

tags/3.0.0
Cenk Ergen GitHub 3 years ago
parent
commit
d5f5ae132c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/Discord.Net.WebSocket/DiscordShardedClient.cs

+ 4
- 1
src/Discord.Net.WebSocket/DiscordShardedClient.cs View File

@@ -495,9 +495,12 @@ namespace Discord.WebSocket
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);


Loading…
Cancel
Save