Open i0bs opened 1 year ago
I can't seem to replicate this at all.
To clarify, the "Minimal Reproducible Code" actually works as is with no issues, and the original code was posted in a pastebin that's long since gone. It definitely isn't because of the return type, because while set_footer
does return itself, the reference of the original embed should be updated anyways due to how Python works (the return is simply for chaining commands together, not to note that it's a new copy of the embed).
The error in general is very strange. At this point, page
absolutely should be an Embed
, and Embed
has a set_footer
function that has two non-self positional arguments. This suggests that either the user who had this bug had a corrupt installation, or this function lost a positional argument due to some situation. Needless to say, it's hard to find out.
Library Version
5.10.0
Describe the Bug
Using
Paginator
from theinteractions.ext.paginators
extension will throw aTypeError
for missing embed footers.From
@algorythm_cs
on Discord:After checking the extension and
Embed
code, I've flagged the bug as failing to rewrite our embed, due to the method's return:https://github.com/interactions-py/interactions.py/blob/0129d53b264c72180fc5a616cd95de54da36d1d8/interactions/models/discord/embed.py#L400-L410
This is neglected when converting embeds to dictionaries within the paginator:
https://github.com/interactions-py/interactions.py/blob/0129d53b264c72180fc5a616cd95de54da36d1d8/interactions/ext/paginators.py#L345-L346
Steps to Reproduce
Embed
omittingfooter
.Paginator
, whether from one embed, or numerous..send()
on the paginator.Expected Results
A paginator should be sent without any bugs (assuming a pragmatic approach)
Minimal Reproducible Code
Traceback
No response
Checklist
Additional Information
No response