|
280 | 280 | [[nodiscard]] async<confirmation_callback_t> co_interaction_response_get_original(const std::string &token); |
281 | 281 |
|
282 | 282 | /** |
283 | | - * @brief Create a followup message to a slash command |
| 283 | + * @brief Create a followup message for an interaction |
284 | 284 | * |
285 | 285 | * @see dpp::cluster::interaction_followup_create |
286 | 286 | * @see https://discord.com/developers/docs/interactions/receiving-and-responding#create-interaction-response |
|
292 | 292 | [[nodiscard]] async<confirmation_callback_t> co_interaction_followup_create(const std::string &token, const message &m); |
293 | 293 |
|
294 | 294 | /** |
295 | | - * @brief Edit original followup message to a slash command |
| 295 | + * @brief Edit original followup message for an interaction |
296 | 296 | * This is an alias for cluster::interaction_response_edit |
297 | 297 | * @see dpp::cluster::interaction_followup_edit_original |
298 | 298 | * @see cluster::interaction_response_edit |
|
316 | 316 | [[nodiscard]] async<confirmation_callback_t> co_interaction_followup_delete(const std::string &token); |
317 | 317 |
|
318 | 318 | /** |
319 | | - * @brief Edit followup message to a slash command |
| 319 | + * @brief Edit followup message for an interaction |
320 | 320 | * The message ID in the message you pass should be correctly set to that of a followup message you previously sent |
321 | 321 | * |
322 | 322 | * @see dpp::cluster::interaction_followup_edit |
|
329 | 329 | [[nodiscard]] async<confirmation_callback_t> co_interaction_followup_edit(const std::string &token, const message &m); |
330 | 330 |
|
331 | 331 | /** |
332 | | - * @brief Get the followup message to a slash command |
| 332 | + * @brief Get the followup message for an interaction |
333 | 333 | * |
334 | 334 | * @see dpp::cluster::interaction_followup_get |
335 | 335 | * @see https://discord.com/developers/docs/interactions/receiving-and-responding#get-followup-message |
|
341 | 341 | [[nodiscard]] async<confirmation_callback_t> co_interaction_followup_get(const std::string &token, snowflake message_id); |
342 | 342 |
|
343 | 343 | /** |
344 | | - * @brief Get the original followup message to a slash command |
| 344 | + * @brief Get the original followup message for an interaction |
345 | 345 | * This is an alias for cluster::interaction_response_get_original |
346 | 346 | * @see dpp::cluster::interaction_followup_get_original |
347 | 347 | * @see cluster::interaction_response_get_original |
|
1743 | 1743 | * @see dpp::cluster::channel_pins_get |
1744 | 1744 | * @see https://discord.com/developers/docs/resources/channel#get-pinned-messages |
1745 | 1745 | * @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 |
1747 | 1747 | * \memberof dpp::cluster |
1748 | 1748 | */ |
1749 | 1749 | [[nodiscard]] async<confirmation_callback_t> co_channel_pins_get(snowflake channel_id); |
1750 | 1750 |
|
| 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 | + |
1751 | 1763 | /** |
1752 | 1764 | * @brief Create a role on a guild |
1753 | 1765 | * |
|
1825 | 1837 | * @see dpp::cluster::application_role_connection_get |
1826 | 1838 | * @see https://discord.com/developers/docs/resources/application-role-connection-metadata#get-application-role-connection-metadata-records |
1827 | 1839 | * @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 |
1829 | 1841 | * \memberof dpp::cluster |
1830 | 1842 | */ |
1831 | 1843 | [[nodiscard]] async<confirmation_callback_t> co_application_role_connection_get(snowflake application_id); |
|
1837 | 1849 | * @see https://discord.com/developers/docs/resources/application-role-connection-metadata#update-application-role-connection-metadata-records |
1838 | 1850 | * @param application_id The application ID |
1839 | 1851 | * @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 |
1841 | 1853 | * @note An application can have a maximum of 5 metadata records. |
1842 | 1854 | * \memberof dpp::cluster |
1843 | 1855 | */ |
|
0 commit comments