diff options
-rw-r--r-- | discord/channel.hpp | 2 | ||||
-rw-r--r-- | discord/message.hpp | 51 |
2 files changed, 31 insertions, 22 deletions
diff --git a/discord/channel.hpp b/discord/channel.hpp index 4f93569..f1d75db 100644 --- a/discord/channel.hpp +++ b/discord/channel.hpp @@ -14,6 +14,8 @@ enum class ChannelType : int { GUILD_CATEGORY = 4, GUILD_NEWS = 5, GUILD_STORE = 6, + /* 7 and 8 were used for LFG */ + /* 9 and 10 were used for threads */ PUBLIC_THREAD = 11, PRIVATE_THREAD = 12, GUILD_STAGE_VOICE = 13, 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 { |