From e0e1bb03619a41433bfaecac8c2970d5db18505a Mon Sep 17 00:00:00 2001 From: rgnter <32541639+rgnter@users.noreply.github.com> Date: Sat, 23 Sep 2023 11:27:43 +0200 Subject: [PATCH] Fix formatting in the subcommands example (#881) --- docpages/example_code/subcommands.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docpages/example_code/subcommands.cpp b/docpages/example_code/subcommands.cpp index ac8c65da18..7a2d00ac28 100644 --- a/docpages/example_code/subcommands.cpp +++ b/docpages/example_code/subcommands.cpp @@ -14,13 +14,13 @@ int main() { dpp::slashcommand image("image", "Send a specific image.", bot.me.id); image.add_option( /* Create a subcommand type option for "dog". */ - dpp::command_option(dpp::co_sub_command, "dog", "Send a picture of a dog."). - add_option(dpp::command_option(dpp::co_user, "user", "User to turn into a dog.", false)) + dpp::command_option(dpp::co_sub_command, "dog", "Send a picture of a dog.") + .add_option(dpp::command_option(dpp::co_user, "user", "User to turn into a dog.", false)) ); image.add_option( /* Create another subcommand type option for "cat". */ - dpp::command_option(dpp::co_sub_command, "cat", "Send a picture of a cat."). - add_option(dpp::command_option(dpp::co_user, "user", "User to turn into a cat.", false)) + dpp::command_option(dpp::co_sub_command, "cat", "Send a picture of a cat.") + .add_option(dpp::command_option(dpp::co_user, "user", "User to turn into a cat.", false)) ); /* Create command */ bot.global_command_create(image);