Skip to content

Commit

Permalink
missing runs
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Oct 22, 2023
1 parent 8d379b6 commit ed427be
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 27 deletions.
12 changes: 2 additions & 10 deletions include/dpp/cluster_coro_calls.h
Original file line number Diff line number Diff line change
Expand Up @@ -2263,16 +2263,8 @@
*/
[[nodiscard]] async<confirmation_callback_t> co_guild_get_voice_regions(snowflake guild_id);

/**
* @brief Create a webhook
* @note This method supports audit log reasons set by the cluster::set_audit_reason() method.
* @see dpp::cluster::create_webhook
* @see https://discord.com/developers/docs/resources/webhook#create-webhook
* @param w Webhook to create
* @return webhook returned object on completion
* \memberof dpp::cluster
*/
[[nodiscard]] async<confirmation_callback_t> co_create_webhook(const class webhook &w);

[[nodiscard]] async<confirmation_callback_t> co_create_webhook(const class webhook &wh);

/**
* @brief Delete a webhook
Expand Down
15 changes: 2 additions & 13 deletions include/dpp/cluster_sync_calls.h
Original file line number Diff line number Diff line change
Expand Up @@ -2782,19 +2782,8 @@ voiceregion_map get_voice_regions_sync();
*/
voiceregion_map guild_get_voice_regions_sync(snowflake guild_id);

/**
* @brief Create a webhook
* @note This method supports audit log reasons set by the cluster::set_audit_reason() method.
* @see dpp::cluster::create_webhook
* @see https://discord.com/developers/docs/resources/webhook#create-webhook
* @param w Webhook to create
* @return webhook returned object on completion
* \memberof dpp::cluster
* @throw dpp::rest_exception upon failure to execute REST function
* @warning This function is a blocking (synchronous) call and should only be used from within a separate thread.
* Avoid direct use of this function inside an event handler.
*/
webhook create_webhook_sync(const class webhook &w);

webhook create_webhook_sync(const class webhook &wh);

/**
* @brief Delete a webhook
Expand Down
4 changes: 2 additions & 2 deletions src/dpp/cluster_coro_calls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -747,8 +747,8 @@ async<confirmation_callback_t> cluster::co_guild_get_voice_regions(snowflake gui
return async{ this, static_cast<void (cluster::*)(snowflake, command_completion_event_t)>(&cluster::guild_get_voice_regions), guild_id };
}

async<confirmation_callback_t> cluster::co_create_webhook(const class webhook &w) {
return async{ this, static_cast<void (cluster::*)(const class webhook &, command_completion_event_t)>(&cluster::create_webhook), w };
async<confirmation_callback_t> cluster::co_create_webhook(const class webhook &wh) {
return async{ this, static_cast<void (cluster::*)(const class webhook &, command_completion_event_t)>(&cluster::create_webhook), wh };
}

async<confirmation_callback_t> cluster::co_delete_webhook(snowflake webhook_id) {
Expand Down
4 changes: 2 additions & 2 deletions src/dpp/cluster_sync_calls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -745,8 +745,8 @@ voiceregion_map cluster::guild_get_voice_regions_sync(snowflake guild_id) {
return dpp::sync<voiceregion_map>(this, static_cast<void (cluster::*)(snowflake, command_completion_event_t)>(&cluster::guild_get_voice_regions), guild_id);
}

webhook cluster::create_webhook_sync(const class webhook &w) {
return dpp::sync<webhook>(this, static_cast<void (cluster::*)(const class webhook &, command_completion_event_t)>(&cluster::create_webhook), w);
webhook cluster::create_webhook_sync(const class webhook &wh) {
return dpp::sync<webhook>(this, static_cast<void (cluster::*)(const class webhook &, command_completion_event_t)>(&cluster::create_webhook), wh);
}

confirmation cluster::delete_webhook_sync(snowflake webhook_id) {
Expand Down

0 comments on commit ed427be

Please sign in to comment.