fix (tasklist): Various bugfixes.
Fix issue where empty tasklist would raise ZeroDivisionError. Fix issue where empty tasklist UI would error. Fix issue where >4000 char tasklists would error on bulk edit. Fix `/tasks edit` not responding to interaction. Fix task acmpl going over 100 chars. Fix empty tasklist text and UI layout. Add `/tasks upload` for editing long tasklist. Small UI tweaks. Make `LionContext.error_reply` always ephemeral if possible.
This commit is contained in:
@@ -122,6 +122,8 @@ class LionContext(Context['LionBot']):
|
||||
|
||||
# Expect this may be run in highly unusual circumstances.
|
||||
# This should never error, or at least handle all errors.
|
||||
if self.interaction:
|
||||
kwargs.setdefault('ephemeral', True)
|
||||
try:
|
||||
await self.reply(content=content, **kwargs)
|
||||
except discord.HTTPException:
|
||||
|
||||
Reference in New Issue
Block a user