_fallback
is not copied by Parameter.replace
#10076
Labels
unconfirmed bug
A bug report that needs triaging
_fallback
is not copied by Parameter.replace
#10076
Summary
Using a seemingly innocuous call to
replace
changes the behaviour of someParameter
s.Reproduction Steps
Call the
replace
method on any built-inParameter
that uses the hidden_fallback
field, such asAuthor
orCurrentChannel
.Minimal Reproducible Code
Expected Results
I expect
.replace(description=...)
, which looks like it should only change the description of the parameter, not to change the behaviour of how it parses.Actual Results
As the
replace
method does not copy_fallback
, the special behaviour ofCurrentChannel
to prioritize the annotation in picking a converter is lost.Intents
guilds
,messages
,message_content
.System Information
Checklist
Additional Context
No response
The text was updated successfully, but these errors were encountered: