aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/utilities/epoch.py
diff options
context:
space:
mode:
authorGravatar MaskDuck <[email protected]>2022-02-16 01:33:42 +0700
committerGravatar GitHub <[email protected]>2022-02-15 10:33:42 -0800
commitf4ffffb052552ea3271b1c7d533d127d583023e4 (patch)
tree12f581950582561791179567ff8ac189427be45a /bot/exts/utilities/epoch.py
parentDisable AoC completionist task (diff)
Fix #1024 (#1030)
Diffstat (limited to 'bot/exts/utilities/epoch.py')
-rw-r--r--bot/exts/utilities/epoch.py5
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]: