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