From fa2b1808225507d806b0aa5af4db8c9ffbd50be3 Mon Sep 17 00:00:00 2001 From: Raghav Narang Date: Thu, 8 Feb 2024 17:16:31 +0530 Subject: [PATCH] [fix] default callback parameters default `= utility::log_error()` was missing for `interaction_followup_create` and `guild_template_create` --- include/dpp/cluster.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/dpp/cluster.h b/include/dpp/cluster.h index 45b79dd0ea..7f18f6e9aa 100644 --- a/include/dpp/cluster.h +++ b/include/dpp/cluster.h @@ -1427,7 +1427,7 @@ class DPP_EXPORT cluster { * @param callback Function to call when the API call completes. * On success the callback will contain a dpp::confirmation object in confirmation_callback_t::value. On failure, the value is undefined and confirmation_callback_t::is_error() method will return true. You can obtain full error details with confirmation_callback_t::get_error(). */ - void interaction_followup_create(const std::string &token, const message &m, command_completion_event_t callback); + void interaction_followup_create(const std::string &token, const message &m, command_completion_event_t callback = utility::log_error()); /** * @brief Edit original followup message to a slash command @@ -2498,7 +2498,7 @@ class DPP_EXPORT cluster { * @param callback Function to call when the API call completes. * On success the callback will contain a dpp::dtemplate object in confirmation_callback_t::value. On failure, the value is undefined and confirmation_callback_t::is_error() method will return true. You can obtain full error details with confirmation_callback_t::get_error(). */ - void guild_template_create(snowflake guild_id, const std::string &name, const std::string &description, command_completion_event_t callback); + void guild_template_create(snowflake guild_id, const std::string &name, const std::string &description, command_completion_event_t callback = utility::log_error()); /** * @brief Syncs the template to the guild's current state.