summaryrefslogtreecommitdiff
path: root/discord/channel.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'discord/channel.hpp')
-rw-r--r--discord/channel.hpp4
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;
};