Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorukyum authored May 9, 2024
1 parent 0de68ff commit 2d3ec6e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pycord/multicog/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,8 @@ def _add_to_group(
"""A helper funcion to change attributes of a command to match those of the target group's."""

index = multicog_commands.index(command)
command.parent, command.guild_ids = (
group,
group.guild_ids,
)
command.parent = group
command.guild_ids = group.guild_ids
group.add_command(command)
multicog_commands[index] = command

Expand Down

0 comments on commit 2d3ec6e

Please sign in to comment.