Skip to content

Commit 60097c5

Browse files
authored
fix: initialize group copies with right arguments (Pycord-Development#2331)
* fix: copy groups without callback * chore: add changelog entry
1 parent 2731d21 commit 60097c5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ These changes are available on the `master` branch, but have not yet been releas
215215
([#2319](https://github.com/Pycord-Development/pycord/pull/2319))
216216
- Fixed `AttributeError` when comparing application commands with non-command objects.
217217
([#2299](https://github.com/Pycord-Development/pycord/issues/2299))
218+
- Fixed `AttributeError` when copying groups on startup.
219+
([#2331](https://github.com/Pycord-Development/pycord/issues/2331))
218220

219221
## [2.4.1] - 2023-03-20
220222

discord/commands/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,7 @@ def _update_copy(self, kwargs: dict[str, Any]):
14441444
if kwargs:
14451445
kw = kwargs.copy()
14461446
kw.update(self.__original_kwargs__)
1447-
copy = self.__class__(self.callback, **kw)
1447+
copy = self.__class__(**kw)
14481448
return self._ensure_assignment_on_copy(copy)
14491449
else:
14501450
return self.copy()

0 commit comments

Comments
 (0)