summaryrefslogtreecommitdiff
path: root/discord/message.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'discord/message.hpp')
-rw-r--r--discord/message.hpp51
1 files changed, 29 insertions, 22 deletions
diff --git a/discord/message.hpp b/discord/message.hpp
index a666aa5..f88ae6e 100644
--- a/discord/message.hpp
+++ b/discord/message.hpp
@@ -9,32 +9,39 @@
#include <vector>
enum class MessageType {
- DEFAULT = 0, // yep
- RECIPIENT_ADD = 1, // yep
- RECIPIENT_REMOVE = 2, // yep
- CALL = 3, // nope
- CHANNEL_NAME_CHANGE = 4, // nope
- CHANNEL_ICON_CHANGE = 5, // nope
- CHANNEL_PINNED_MESSAGE = 6, // yep
- GUILD_MEMBER_JOIN = 7, // yep
- USER_PREMIUM_GUILD_SUBSCRIPTION = 8, // nope
- USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_1 = 9, // nope
- USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_2 = 10, // nope
- USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_3 = 11, // nope
- CHANNEL_FOLLOW_ADD = 12, // nope
- GUILD_DISCOVERY_DISQUALIFIED = 14, // nope
- GUILD_DISCOVERY_REQUALIFIED = 15, // nope
- INLINE_REPLY = 19, // kinda
- APPLICATION_COMMAND = 20, // yep
+ DEFAULT = 0, // yep
+ RECIPIENT_ADD = 1, // yep
+ RECIPIENT_REMOVE = 2, // yep
+ CALL = 3, // nope
+ CHANNEL_NAME_CHANGE = 4, // nope
+ CHANNEL_ICON_CHANGE = 5, // nope
+ CHANNEL_PINNED_MESSAGE = 6, // yep
+ GUILD_MEMBER_JOIN = 7, // yep
+ USER_PREMIUM_GUILD_SUBSCRIPTION = 8, // nope
+ USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_1 = 9, // nope
+ USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_2 = 10, // nope
+ USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_3 = 11, // nope
+ CHANNEL_FOLLOW_ADD = 12, // nope
+ GUILD_DISCOVERY_DISQUALIFIED = 14, // nope
+ GUILD_DISCOVERY_REQUALIFIED = 15, // nope
+ GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING = 16, // nope
+ GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING = 17, // nope
+ THREAD_CREATED = 18, // nope
+ INLINE_REPLY = 19, // yep
+ APPLICATION_COMMAND = 20, // yep
+ THREAD_STARTER_MESSAGE = 21, // nope
};
enum class MessageFlags {
NONE = 0,
- CROSSPOSTED = 1 << 0,
- IS_CROSSPOST = 1 << 1,
- SUPPRESS_EMBEDS = 1 << 2,
- SOURCE_MESSAGE_DELETE = 1 << 3,
- URGENT = 1 << 4,
+ 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 was used to start a thread (?)
+ 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"
};
struct EmbedFooterData {