From 4c7fad78e1ff4f6701fcce87ba4e1bc6dce1cdfe Mon Sep 17 00:00:00 2001 From: RogueException Date: Wed, 10 May 2017 19:28:25 -0300 Subject: [PATCH] Build promises when guild is unavailable --- src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs b/src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs index f32c6dccf..5358605c8 100644 --- a/src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs +++ b/src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs @@ -126,6 +126,8 @@ namespace Discord.WebSocket _emojis = ImmutableArray.Create(); if (Features == null) _features = ImmutableArray.Create();*/ + _syncPromise = new TaskCompletionSource(); + _downloaderPromise = new TaskCompletionSource(); return; }