summaryrefslogtreecommitdiff
path: root/src/discord/message.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/discord/message.hpp')
-rw-r--r--src/discord/message.hpp26
1 files changed, 18 insertions, 8 deletions
diff --git a/src/discord/message.hpp b/src/discord/message.hpp
index df2cb38..5028104 100644
--- a/src/discord/message.hpp
+++ b/src/discord/message.hpp
@@ -8,6 +8,7 @@
#include "emoji.hpp"
#include "member.hpp"
#include "interactions.hpp"
+#include "misc/bitwise.hpp"
enum class MessageType {
DEFAULT = 0, // yep
@@ -35,14 +36,23 @@ enum class MessageType {
enum class MessageFlags {
NONE = 0,
- CROSSPOSTED = 1 << 0, // this message has been published to subscribed channels (via Channel Following)
- IS_CROSSPOST = 1 << 1, // this message originated from a message in another channel (via Channel Following)
- SUPPRESS_EMBEDS = 1 << 2, // do not include any embeds when serializing this message
- SOURCE_MESSAGE_DELETE = 1 << 3, // the source message for this crosspost has been deleted (via Channel Following)
- URGENT = 1 << 4, // this message came from the urgent message system
- HAS_THREAD = 1 << 5, // this message has an associated thread, with the same id as the message
- EPHEMERAL = 1 << 6, // this message is only visible to the user who invoked the Interaction
- LOADING = 1 << 7, // this message is an Interaction Response and the bot is "thinking"
+ CROSSPOSTED = 1 << 0, // this message has been published to subscribed channels (via Channel Following)
+ IS_CROSSPOST = 1 << 1, // this message originated from a message in another channel (via Channel Following)
+ SUPPRESS_EMBEDS = 1 << 2, // do not include any embeds when serializing this message
+ SOURCE_MESSAGE_DELETE = 1 << 3, // the source message for this crosspost has been deleted (via Channel Following)
+ URGENT = 1 << 4, // this message came from the urgent message system
+ HAS_THREAD = 1 << 5, // this message has an associated thread, with the same id as the message
+ EPHEMERAL = 1 << 6, // this message is only visible to the user who invoked the Interaction
+ LOADING = 1 << 7, // this message is an Interaction Response and the bot is "thinking"
+ FAILED_TO_MENTION_SOME_ROLES_IN_THREAD = 1 << 8, // this message failed to mention some roles and add their members to the thread
+ SHOULD_SHOW_LINK_NOT_DISCORD_WARNING = 1 << 10, //
+ SUPPRESS_NOTIFICATIONS = 1 << 12, // this message will not trigger push and desktop notifications
+ IS_VOICE_MESSAGE = 1 << 13, // this message is a voice message
+};
+
+template<>
+struct Bitwise<MessageFlags> {
+ static const bool enable = true;
};
struct EmbedFooterData {