diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-12-14 03:05:16 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-12-14 03:05:16 -0500 |
commit | 22578921b9e577c669cd57385df48cfc08fa90eb (patch) | |
tree | c4a70fa7eb2682e5380e0411df857dd854993fec /discord/channel.hpp | |
parent | 33ed25b2f66e727911182f1552aa8abfd558c69e (diff) | |
download | abaddon-portaudio-22578921b9e577c669cd57385df48cfc08fa90eb.tar.gz abaddon-portaudio-22578921b9e577c669cd57385df48cfc08fa90eb.zip |
pretend to be a real client a little better
Diffstat (limited to 'discord/channel.hpp')
-rw-r--r-- | discord/channel.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/discord/channel.hpp b/discord/channel.hpp index 5f8e5e3..040da25 100644 --- a/discord/channel.hpp +++ b/discord/channel.hpp @@ -30,7 +30,8 @@ struct Channel { std::optional<int> UserLimit; std::optional<int> RateLimitPerUser; std::optional<std::vector<User>> Recipients; // only access id - std::optional<std::string> Icon; // null + std::optional<std::vector<Snowflake>> RecipientIDs; + std::optional<std::string> Icon; // null std::optional<Snowflake> OwnerID; std::optional<Snowflake> ApplicationID; std::optional<Snowflake> ParentID; // null @@ -40,4 +41,5 @@ struct Channel { void update_from_json(const nlohmann::json &j); std::optional<PermissionOverwrite> GetOverwrite(Snowflake id) const; + std::vector<User> GetDMRecipients() const; }; |