Skip to content

Commit

Permalink
auto update to latest DPP master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
D++ Update Bot committed Sep 23, 2024
1 parent 75e6cc2 commit c407fbb
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 2 deletions.
Binary file modified MyBot/dependencies/32/debug/bin/dpp.dll
Binary file not shown.
Binary file modified MyBot/dependencies/32/debug/lib/dpp-10.0/dpp.lib
Binary file not shown.
Binary file modified MyBot/dependencies/32/release/bin/dpp.dll
Binary file not shown.
Binary file modified MyBot/dependencies/32/release/lib/dpp-10.0/dpp.lib
Binary file not shown.
Binary file modified MyBot/dependencies/64/debug/bin/dpp.dll
Binary file not shown.
Binary file modified MyBot/dependencies/64/debug/lib/dpp-10.0/dpp.lib
Binary file not shown.
Binary file modified MyBot/dependencies/64/release/bin/dpp.dll
Binary file not shown.
Binary file modified MyBot/dependencies/64/release/lib/dpp-10.0/dpp.lib
Binary file not shown.
32 changes: 30 additions & 2 deletions MyBot/dependencies/include/dpp-10.0/dpp/message.h
Original file line number Diff line number Diff line change
Expand Up @@ -2011,6 +2011,24 @@ namespace cache_policy {
};

/**
* @brief Message Reference type
*/
enum DPP_EXPORT message_ref_type : uint8_t {
/**
* A reply or crosspost
*/
mrt_default = 0,
/**
* A forwarded message
*/
mrt_forward = 1,
};

template <typename T> struct message_snapshot {
std::vector<T> messages;
};

/**
* @brief Represents messages sent and received on Discord
*/
struct DPP_EXPORT message : public managed, json_interface<message> {
Expand Down Expand Up @@ -2140,6 +2158,10 @@ struct DPP_EXPORT message : public managed, json_interface<message> {
* @brief Reference to another message, e.g. a reply
*/
struct message_ref {
/**
* @brief Message reference type, set to 1 to forward a message
*/
message_ref_type type{mrt_default};
/**
* @brief ID of the originating message.
*/
Expand All @@ -2162,10 +2184,15 @@ struct DPP_EXPORT message : public managed, json_interface<message> {
bool fail_if_not_exists;
} message_reference;

/**
* @brief Message snapshots for a forwarded message
*/
message_snapshot<message> message_snapshots;

/**
* @brief Reference to an interaction
*/
struct message_interaction_struct{
struct message_interaction_struct {
/**
* @brief ID of the interaction.
*/
Expand Down Expand Up @@ -2342,9 +2369,10 @@ struct DPP_EXPORT message : public managed, json_interface<message> {
* @param _guild_id guild id to reply to (optional)
* @param _channel_id channel id to reply to (optional)
* @param fail_if_not_exists true if the message send should fail if these values are invalid (optional)
* @param type Type of reference
* @return message& reference to self
*/
message& set_reference(snowflake _message_id, snowflake _guild_id = 0, snowflake _channel_id = 0, bool fail_if_not_exists = false);
message& set_reference(snowflake _message_id, snowflake _guild_id = 0, snowflake _channel_id = 0, bool fail_if_not_exists = false, message_ref_type type = mrt_default);

/**
* @brief Set the allowed mentions object for pings on the message
Expand Down

0 comments on commit c407fbb

Please sign in to comment.