From 81d02884b00038256f6c7c95bd11b9f03df5e67c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 3 Dec 2023 17:00:16 +0000 Subject: [PATCH] style(pre-commit): auto fixes from pre-commit.com hooks --- CHANGELOG.md | 4 ++-- discord/commands/core.py | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 30a72a61e9..f579ccc6dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -108,8 +108,8 @@ These changes are available on the `master` branch, but have not yet been releas ([#2099](https://github.com/Pycord-Development/pycord/pull/2099)) - Changed the support from `orjson` to `msgspec` in the codebase. ([#2170](https://github.com/Pycord-Development/pycord/pull/2170)) -- Changed the error message that appears after an attempt at creating a - subcommand group under a subcommand group. +- Changed the error message that appears after an attempt at creating a subcommand group + under a subcommand group. ([#2275](https://github.com/Pycord-Development/pycord/pull/2275)) ### Removed diff --git a/discord/commands/core.py b/discord/commands/core.py index fbb7dce91a..c6c96081ed 100644 --- a/discord/commands/core.py +++ b/discord/commands/core.py @@ -1303,7 +1303,9 @@ def create_subgroup( """ if self.parent is not None: - raise Exception("a slash command group can only have one level of subcommand groups") + raise Exception( + "a slash command group can only have one level of subcommand groups" + ) sub_command_group = SlashCommandGroup( name, description, guild_ids, parent=self, **kwargs