Open
Description
Library Version
5.10.0
Describe the Bug
Using Paginator
from the interactions.ext.paginators
extension will throw a TypeError
for missing embed footers.
From @algorythm_cs
on Discord:
File "...\interactions\ext\paginators.py", line 346, in to_dict
page.set_footer(f"Page {self.page_index+1}/{len(self.pages)}")
TypeError: Embed.set_footer() takes 1 positional argument but 2 were given
After checking the extension and Embed
code, I've flagged the bug as failing to rewrite our embed, due to the method's return:
interactions.py/interactions/models/discord/embed.py
Lines 400 to 410 in 0129d53
This is neglected when converting embeds to dictionaries within the paginator:
interactions.py/interactions/ext/paginators.py
Lines 345 to 346 in 0129d53
Steps to Reproduce
- Create a variable containing an
Embed
omittingfooter
. - Create a variable declaring a
Paginator
, whether from one embed, or numerous. - Attempt to use
.send()
on the paginator.
Expected Results
A paginator should be sent without any bugs (assuming a pragmatic approach)
Minimal Reproducible Code
client = Client(...)
embeds = [Embed(title="foo")]
@slash_command()
async def replicate_bug(ctx):
paginator = Paginator.create_from_embeds(client, *embeds)
await paginator.send()
await ctx.send("bar")
Traceback
No response
Checklist
- I have searched the open issues for duplicates.
- I have shown the entire traceback, if possible.
- I have removed my token from display, if visible.
- I have attempted to debug this myself, and I believe this issue is with the library
Additional Information
No response