Skip to content

Commit 8aa40ff

Browse files
authored
Use kwargs when copying group
1 parent d4f5576 commit 8aa40ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

discord/commands/commands.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -877,11 +877,11 @@ def copy(self):
877877
Returns
878878
--------
879879
:class:`SlashCommandGroup`
880-
A new instance of this command.
880+
A new instance of this command group.
881881
"""
882882
ret = self.__class__(
883-
self.name,
884-
self.description,
883+
name=self.name,
884+
description=self.description,
885885
**self.__original_kwargs__,
886886
)
887887
return self._ensure_assignment_on_copy(ret)

0 commit comments

Comments
 (0)