diff options
| author | 2021-12-02 01:11:55 +0100 | |
|---|---|---|
| committer | 2021-12-02 01:11:55 +0100 | |
| commit | e4d98ddd54c076743a00fcb1dba1b32981ddfe6d (patch) | |
| tree | 3b9ea9005a2e7a08f4d85857512dc56f4f21f957 /bot/utils | |
| parent | Merge pull request #959 from onerandomusername/fix-hanukkah-command (diff) | |
| parent | Merge branch 'main' into patch-3 (diff) | |
Merge pull request #950 from onerandomusername/patch-3
Remove unnecessary edits during pagination
Diffstat (limited to 'bot/utils')
| -rw-r--r-- | bot/utils/pagination.py | 10 | 
1 files changed, 0 insertions, 10 deletions
| diff --git a/bot/utils/pagination.py b/bot/utils/pagination.py index 013ef9e7..188b279f 100644 --- a/bot/utils/pagination.py +++ b/bot/utils/pagination.py @@ -211,8 +211,6 @@ class LinePaginator(Paginator):                  log.debug(f"Got first page reaction - changing to page 1/{len(paginator.pages)}") -                embed.description = "" -                await message.edit(embed=embed)                  embed.description = paginator.pages[current_page]                  if footer_text:                      embed.set_footer(text=f"{footer_text} (Page {current_page + 1}/{len(paginator.pages)})") @@ -226,8 +224,6 @@ class LinePaginator(Paginator):                  log.debug(f"Got last page reaction - changing to page {current_page + 1}/{len(paginator.pages)}") -                embed.description = "" -                await message.edit(embed=embed)                  embed.description = paginator.pages[current_page]                  if footer_text:                      embed.set_footer(text=f"{footer_text} (Page {current_page + 1}/{len(paginator.pages)})") @@ -245,8 +241,6 @@ class LinePaginator(Paginator):                  current_page -= 1                  log.debug(f"Got previous page reaction - changing to page {current_page + 1}/{len(paginator.pages)}") -                embed.description = "" -                await message.edit(embed=embed)                  embed.description = paginator.pages[current_page]                  if footer_text: @@ -266,8 +260,6 @@ class LinePaginator(Paginator):                  current_page += 1                  log.debug(f"Got next page reaction - changing to page {current_page + 1}/{len(paginator.pages)}") -                embed.description = "" -                await message.edit(embed=embed)                  embed.description = paginator.pages[current_page]                  if footer_text: @@ -428,8 +420,6 @@ class ImagePaginator(Paginator):                  reaction_type = "next"              # Magic happens here, after page and reaction_type is set -            embed.description = "" -            await message.edit(embed=embed)              embed.description = paginator.pages[current_page]              image = paginator.images[current_page] or EmptyEmbed | 
