We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7db3911 commit d956058Copy full SHA for d956058
discord/ext/commands/parameters.py
@@ -135,7 +135,7 @@ def replace(
135
if displayed_name is MISSING:
136
displayed_name = self._displayed_name
137
138
- return self.__class__(
+ ret = self.__class__(
139
name=name,
140
kind=kind,
141
default=default,
@@ -144,6 +144,8 @@ def replace(
144
displayed_default=displayed_default,
145
displayed_name=displayed_name,
146
)
147
+ ret._fallback = self._fallback
148
+ return ret
149
150
if not TYPE_CHECKING: # this is to prevent anything breaking if inspect internals change
151
name = _gen_property('name')
0 commit comments