diff options
author | 2022-02-16 01:33:42 +0700 | |
---|---|---|
committer | 2022-02-15 10:33:42 -0800 | |
commit | f4ffffb052552ea3271b1c7d533d127d583023e4 (patch) | |
tree | 12f581950582561791179567ff8ac189427be45a | |
parent | Disable AoC completionist task (diff) |
Fix #1024 (#1030)
-rw-r--r-- | bot/exts/utilities/epoch.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bot/exts/utilities/epoch.py b/bot/exts/utilities/epoch.py index 03758af0..42312dd1 100644 --- a/bot/exts/utilities/epoch.py +++ b/bot/exts/utilities/epoch.py @@ -86,7 +86,10 @@ class Epoch(commands.Cog): view = TimestampMenuView(ctx, self._format_dates(date_time), epoch) original = await ctx.send(f"`{epoch}`", view=view) await view.wait() # wait until expiration before removing the dropdown - await original.edit(view=None) + try: + await original.edit(view=None) + except discord.NotFound: # disregard the error message if the message is deleled + pass @staticmethod def _format_dates(date: arrow.Arrow) -> list[str]: |