From b899e70cd43b8a996849416b2b33266fb5f35269 Mon Sep 17 00:00:00 2001 From: Craig Edwards Date: Tue, 8 Oct 2024 12:46:50 +0000 Subject: [PATCH 1/3] officially deprecate commandhandler --- include/dpp/commandhandler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dpp/commandhandler.h b/include/dpp/commandhandler.h index 724f38f577..4a68343996 100644 --- a/include/dpp/commandhandler.h +++ b/include/dpp/commandhandler.h @@ -253,7 +253,7 @@ struct DPP_EXPORT command_info_t { * functions. * @deprecated commandhandler and message commands are deprecated and dpp::slashcommand is encouraged as a replacement. */ -class DPP_EXPORT commandhandler { +class DPP_EXPORT DPP_DEPRECATED("commandhandler should not be used. Plese consider using dpp::cluster::register_command instead.") commandhandler { private: /** * @brief List of guild commands to bulk register From 588213897ba618b5b08500cd04b23bcc490e6146 Mon Sep 17 00:00:00 2001 From: Craig Edwards Date: Tue, 8 Oct 2024 12:55:24 +0000 Subject: [PATCH 2/3] fix: spelling --- include/dpp/commandhandler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dpp/commandhandler.h b/include/dpp/commandhandler.h index 4a68343996..1958bc43d4 100644 --- a/include/dpp/commandhandler.h +++ b/include/dpp/commandhandler.h @@ -253,7 +253,7 @@ struct DPP_EXPORT command_info_t { * functions. * @deprecated commandhandler and message commands are deprecated and dpp::slashcommand is encouraged as a replacement. */ -class DPP_EXPORT DPP_DEPRECATED("commandhandler should not be used. Plese consider using dpp::cluster::register_command instead.") commandhandler { +class DPP_EXPORT DPP_DEPRECATED("commandhandler should not be used. Please consider using dpp::cluster::register_command instead.") commandhandler { private: /** * @brief List of guild commands to bulk register From 09c530bd01389a673efc11e3b2592f601d58cc31 Mon Sep 17 00:00:00 2001 From: Craig Edwards Date: Tue, 8 Oct 2024 13:34:25 +0000 Subject: [PATCH 3/3] this cant be fatal while we are offering documents on deprecated stuff for SEO --- docpages/example_code/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docpages/example_code/CMakeLists.txt b/docpages/example_code/CMakeLists.txt index 87c7713f2b..57f4fee152 100644 --- a/docpages/example_code/CMakeLists.txt +++ b/docpages/example_code/CMakeLists.txt @@ -33,7 +33,7 @@ project(documentation_tests) string(ASCII 27 Esc) -set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDPP_CORO -std=c++20 -pthread -O0 -fPIC -rdynamic -DFMT_HEADER_ONLY -Wall -Wextra -Wpedantic -Werror -Wno-unused-parameter") +set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDPP_CORO -std=c++20 -pthread -O0 -fPIC -rdynamic -DFMT_HEADER_ONLY -Wall -Wextra -Wpedantic -Werror -Wno-unused-parameter -Wno-deprecated-declarations") set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0") file(GLOB example_list ./*.cpp)