Skip to content

Commit

Permalink
style(pre-commit): auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Dec 3, 2023
1 parent 6846376 commit 81d0288
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion discord/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 81d0288

Please sign in to comment.