From d2c9048b4a3a1573e59b83ab285e381908f790b6 Mon Sep 17 00:00:00 2001 From: Jordan Del Pilar Date: Tue, 7 May 2024 15:08:34 -0700 Subject: [PATCH] remove embed.Empty Sentinal Removing embed.Empty sentinel for discord.py 2.0+ compatibility --- disputils/pagination.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/disputils/pagination.py b/disputils/pagination.py index ccd81bf..a91f766 100644 --- a/disputils/pagination.py +++ b/disputils/pagination.py @@ -71,11 +71,11 @@ def formatted_pages(self) -> List[discord.Embed]: pages = deepcopy(self.pages) # copy by value not reference for page in pages: - if page.footer.text == discord.Embed.Empty: + if page.footer.text == None: page.set_footer(text=f"({pages.index(page)+1}/{len(pages)})") else: page_index = pages.index(page) - if page.footer.icon_url == discord.Embed.Empty: + if page.footer.icon_url == None: page.set_footer( text=f"{page.footer.text} - ({page_index+1}/{len(pages)})" )