summaryrefslogtreecommitdiff
path: root/discord/message.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'discord/message.hpp')
-rw-r--r--discord/message.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/discord/message.hpp b/discord/message.hpp
index de312de..2c8fc3d 100644
--- a/discord/message.hpp
+++ b/discord/message.hpp
@@ -147,4 +147,14 @@ struct Message {
friend void from_json(const nlohmann::json &j, Message &m);
void from_json_edited(const nlohmann::json &j); // for MESSAGE_UPDATE
+
+ // custom fields to track changes
+ void SetDeleted();
+ void SetEdited(std::string new_content);
+ bool IsDeleted() const;
+ bool IsEdited() const;
+
+private:
+ bool m_deleted = false;
+ bool m_edited = false;
};