Browse Source

fix: Call GuildAvailableAsync for dispatch(GUILD_CREATE) case (#1473)

* Fix for Issue #1471

This change will allow `GuildAvailable` to fire when the client joins a new guild, as well as properly update `IsConnected`.

* Removed unnecessary statement;
tags/2.3.0
TheKingEagle GitHub 5 years ago
parent
commit
03af8e0bb4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/Discord.Net.WebSocket/DiscordSocketClient.cs

+ 1
- 0
src/Discord.Net.WebSocket/DiscordSocketClient.cs View File

@@ -640,6 +640,7 @@ namespace Discord.WebSocket
if (guild != null)
{
await TimedInvokeAsync(_joinedGuildEvent, nameof(JoinedGuild), guild).ConfigureAwait(false);
await GuildAvailableAsync(guild).ConfigureAwait(false);
}
else
{


Loading…
Cancel
Save