From ed427becf2cda834e530b8f9ea0f49ea42d2539e Mon Sep 17 00:00:00 2001 From: Craig Edwards Date: Sun, 22 Oct 2023 13:51:32 +0000 Subject: [PATCH] missing runs --- include/dpp/cluster_coro_calls.h | 12 ++---------- include/dpp/cluster_sync_calls.h | 15 ++------------- src/dpp/cluster_coro_calls.cpp | 4 ++-- src/dpp/cluster_sync_calls.cpp | 4 ++-- 4 files changed, 8 insertions(+), 27 deletions(-) diff --git a/include/dpp/cluster_coro_calls.h b/include/dpp/cluster_coro_calls.h index 3a5d30680f..ddbb9a2395 100644 --- a/include/dpp/cluster_coro_calls.h +++ b/include/dpp/cluster_coro_calls.h @@ -2263,16 +2263,8 @@ */ [[nodiscard]] async 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 co_create_webhook(const class webhook &w); + +[[nodiscard]] async co_create_webhook(const class webhook &wh); /** * @brief Delete a webhook diff --git a/include/dpp/cluster_sync_calls.h b/include/dpp/cluster_sync_calls.h index 6232c2bf4f..1594d8e0a4 100644 --- a/include/dpp/cluster_sync_calls.h +++ b/include/dpp/cluster_sync_calls.h @@ -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 diff --git a/src/dpp/cluster_coro_calls.cpp b/src/dpp/cluster_coro_calls.cpp index 9deb0d865c..528df234ab 100644 --- a/src/dpp/cluster_coro_calls.cpp +++ b/src/dpp/cluster_coro_calls.cpp @@ -747,8 +747,8 @@ async cluster::co_guild_get_voice_regions(snowflake gui return async{ this, static_cast(&cluster::guild_get_voice_regions), guild_id }; } -async cluster::co_create_webhook(const class webhook &w) { - return async{ this, static_cast(&cluster::create_webhook), w }; +async cluster::co_create_webhook(const class webhook &wh) { + return async{ this, static_cast(&cluster::create_webhook), wh }; } async cluster::co_delete_webhook(snowflake webhook_id) { diff --git a/src/dpp/cluster_sync_calls.cpp b/src/dpp/cluster_sync_calls.cpp index a05c19f2e9..0167edddb2 100644 --- a/src/dpp/cluster_sync_calls.cpp +++ b/src/dpp/cluster_sync_calls.cpp @@ -745,8 +745,8 @@ voiceregion_map cluster::guild_get_voice_regions_sync(snowflake guild_id) { return dpp::sync(this, static_cast(&cluster::guild_get_voice_regions), guild_id); } -webhook cluster::create_webhook_sync(const class webhook &w) { - return dpp::sync(this, static_cast(&cluster::create_webhook), w); +webhook cluster::create_webhook_sync(const class webhook &wh) { + return dpp::sync(this, static_cast(&cluster::create_webhook), wh); } confirmation cluster::delete_webhook_sync(snowflake webhook_id) {