Browse Source

Add a virtual GUILD_AVAILABLE event to GUILD_SYNC'd guilds

tags/1.0-rc
RogueException 9 years ago
parent
commit
5e81a849dc
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/Discord.Net/DiscordSocketClient.cs

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

@@ -705,6 +705,7 @@ namespace Discord
//This is treated as an extension of GUILD_AVAILABLE //This is treated as an extension of GUILD_AVAILABLE
_unavailableGuilds--; _unavailableGuilds--;
_lastGuildAvailableTime = Environment.TickCount; _lastGuildAvailableTime = Environment.TickCount;
await _guildAvailableEvent.InvokeAsync(guild).ConfigureAwait(false);
await _guildUpdatedEvent.InvokeAsync(before, guild).ConfigureAwait(false); await _guildUpdatedEvent.InvokeAsync(before, guild).ConfigureAwait(false);
} }
else else


Loading…
Cancel
Save