Skip to content

Commit e09abf9

Browse files
committed
fix: updated cluster_coro_calls .h/.cpp
1 parent 68cb9ee commit e09abf9

File tree

2 files changed

+24
-8
lines changed

2 files changed

+24
-8
lines changed

include/dpp/cluster_coro_calls.h

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@
280280
[[nodiscard]] async<confirmation_callback_t> co_interaction_response_get_original(const std::string &token);
281281

282282
/**
283-
* @brief Create a followup message to a slash command
283+
* @brief Create a followup message for an interaction
284284
*
285285
* @see dpp::cluster::interaction_followup_create
286286
* @see https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response
@@ -292,7 +292,7 @@
292292
[[nodiscard]] async<confirmation_callback_t> co_interaction_followup_create(const std::string &token, const message &m);
293293

294294
/**
295-
* @brief Edit original followup message to a slash command
295+
* @brief Edit original followup message for an interaction
296296
* This is an alias for cluster::interaction_response_edit
297297
* @see dpp::cluster::interaction_followup_edit_original
298298
* @see cluster::interaction_response_edit
@@ -316,7 +316,7 @@
316316
[[nodiscard]] async<confirmation_callback_t> co_interaction_followup_delete(const std::string &token);
317317

318318
/**
319-
* @brief Edit followup message to a slash command
319+
* @brief Edit followup message for an interaction
320320
* The message ID in the message you pass should be correctly set to that of a followup message you previously sent
321321
*
322322
* @see dpp::cluster::interaction_followup_edit
@@ -329,7 +329,7 @@
329329
[[nodiscard]] async<confirmation_callback_t> co_interaction_followup_edit(const std::string &token, const message &m);
330330

331331
/**
332-
* @brief Get the followup message to a slash command
332+
* @brief Get the followup message for an interaction
333333
*
334334
* @see dpp::cluster::interaction_followup_get
335335
* @see https://discord.com/developers/docs/interactions/receiving-and-responding#get-followup-message
@@ -341,7 +341,7 @@
341341
[[nodiscard]] async<confirmation_callback_t> co_interaction_followup_get(const std::string &token, snowflake message_id);
342342

343343
/**
344-
* @brief Get the original followup message to a slash command
344+
* @brief Get the original followup message for an interaction
345345
* This is an alias for cluster::interaction_response_get_original
346346
* @see dpp::cluster::interaction_followup_get_original
347347
* @see cluster::interaction_response_get_original
@@ -1743,11 +1743,23 @@
17431743
* @see dpp::cluster::channel_pins_get
17441744
* @see https://discord.com/developers/docs/resources/channel#get-pinned-messages
17451745
* @param channel_id Channel ID to get pins for
1746-
* @return message_map returned object on completion
1746+
* @return message_pin_map returned object on completion
17471747
* \memberof dpp::cluster
17481748
*/
17491749
[[nodiscard]] async<confirmation_callback_t> co_channel_pins_get(snowflake channel_id);
17501750

1751+
/**
1752+
* @brief Get a channel's pins
1753+
* @see dpp::cluster::channel_pins_get
1754+
* @see https://discord.com/developers/docs/resources/channel#get-pinned-messages
1755+
* @param channel_id Channel ID to get pins for
1756+
* @param before Get messages pinned before this timestamp.
1757+
* @param limit Max number of pins to return (1-50). Defaults to 50 if not set.
1758+
* @return message_pin_map returned object on completion
1759+
* \memberof dpp::cluster
1760+
*/
1761+
[[nodiscard]] async<confirmation_callback_t> co_channel_pins_get(snowflake channel_id, std::optional<time_t> before, std::optional<uint64_t> limit);
1762+
17511763
/**
17521764
* @brief Create a role on a guild
17531765
*
@@ -1825,7 +1837,7 @@
18251837
* @see dpp::cluster::application_role_connection_get
18261838
* @see https://discord.com/developers/docs/resources/application-role-connection-metadata#get-application-role-connection-metadata-records
18271839
* @param application_id The application ID
1828-
* @return application_role_connection returned object on completion
1840+
* @return application_role_connection_metadata_list returned object on completion
18291841
* \memberof dpp::cluster
18301842
*/
18311843
[[nodiscard]] async<confirmation_callback_t> co_application_role_connection_get(snowflake application_id);
@@ -1837,7 +1849,7 @@
18371849
* @see https://discord.com/developers/docs/resources/application-role-connection-metadata#update-application-role-connection-metadata-records
18381850
* @param application_id The application ID
18391851
* @param connection_metadata The application role connection metadata to update
1840-
* @return application_role_connection returned object on completion
1852+
* @return application_role_connection_metadata_list returned object on completion
18411853
* @note An application can have a maximum of 5 metadata records.
18421854
* \memberof dpp::cluster
18431855
*/

src/dpp/cluster_coro_calls.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,10 @@ async<confirmation_callback_t> cluster::co_channel_pins_get(snowflake channel_id
575575
return async{ this, static_cast<void (cluster::*)(snowflake, command_completion_event_t)>(&cluster::channel_pins_get), channel_id };
576576
}
577577

578+
async<confirmation_callback_t> cluster::co_channel_pins_get(snowflake channel_id, std::optional<time_t> before, std::optional<uint64_t> limit) {
579+
return async{ this, static_cast<void (cluster::*)(snowflake, std::optional<time_t>, std::optional<uint64_t>, command_completion_event_t)>(&cluster::channel_pins_get), channel_id, before, limit };
580+
}
581+
578582
async<confirmation_callback_t> cluster::co_role_create(const class role &r) {
579583
return async{ this, static_cast<void (cluster::*)(const class role &, command_completion_event_t)>(&cluster::role_create), r };
580584
}

0 commit comments

Comments
 (0)