fix: Gateway events for DMs (#1854)

* Fix MessageUpdate when there's no channel cached

* Fix message events

* Fix cacheable type

* Fix examples

* Revert MessageUpdated
This commit is contained in:
Paulo
2021-05-28 10:09:05 -03:00
committed by GitHub
parent dfaaa21e0e
commit a7ff6ce0ec
5 changed files with 261 additions and 225 deletions

View File

@@ -10,6 +10,8 @@ namespace Discord.API.Gateway
public ulong MessageId { get; set; }
[JsonProperty("channel_id")]
public ulong ChannelId { get; set; }
[JsonProperty("guild_id")]
public Optional<ulong> GuildId { get; set; }
[JsonProperty("emoji")]
public Emoji Emoji { get; set; }
[JsonProperty("member")]