Fixed removing DMs from cache

This commit is contained in:
RogueException
2016-06-21 01:18:56 -03:00
parent 23bd574830
commit 4215a9d8cd

View File

@@ -677,7 +677,7 @@ namespace Discord
} }
} }
else else
channel = RemoveDMChannel(data.Id); channel = RemoveDMChannel(data.Recipient.Id);
if (channel != null) if (channel != null)
await ChannelDestroyed.RaiseAsync(channel).ConfigureAwait(false); await ChannelDestroyed.RaiseAsync(channel).ConfigureAwait(false);
else else