From 713ed0f9271bfd9249809940cf214d600adaecab Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Sat, 29 Aug 2020 01:14:20 -0400 Subject: add dm's --- discord/objects.hpp | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'discord/objects.hpp') diff --git a/discord/objects.hpp b/discord/objects.hpp index 5abafb1..db7927e 100644 --- a/discord/objects.hpp +++ b/discord/objects.hpp @@ -361,12 +361,20 @@ struct MessageData { friend void from_json(const nlohmann::json &j, MessageData &m); }; +struct MessageDeleteData { + Snowflake ID; // + Snowflake ChannelID; // + Snowflake GuildID; // opt + + friend void from_json(const nlohmann::json &j, MessageDeleteData &m); +}; + struct ReadyEventData { - int GatewayVersion; // - UserData User; // - std::vector Guilds; // - std::string SessionID; // - // std::vector PrivateChannels; + int GatewayVersion; // + UserData User; // + std::vector Guilds; // + std::string SessionID; // + std::vector PrivateChannels; // // undocumented std::string AnalyticsToken; // opt -- cgit v1.2.3