feat(shop): Add paging for long shops.

This commit is contained in:
2023-09-12 20:33:24 +03:00
parent 7dfc720c16
commit fc56647bdd
4 changed files with 94 additions and 60 deletions

View File

@@ -419,8 +419,11 @@ class MessageUI(LeoUI):
try:
await self._redraw(args)
except discord.HTTPException:
# Unknown communication erorr, nothing we can reliably do. Exit quietly.
except discord.HTTPException as e:
# Unknown communication error, nothing we can reliably do. Exit quietly.
logger.warning(
f"Unexpected UI redraw failure occurred in {self}: {repr(e)}",
)
await self.close()
async def cleanup(self):