mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-05 17:02:32 -05:00
Core - Add invoke error message customisation (#5894)
Co-authored-by: Jakub Kuczys <me@jacken.men>
This commit is contained in:
@@ -118,13 +118,12 @@ class TriviaSession:
|
||||
self.stop()
|
||||
except Exception as exc:
|
||||
LOG.error("A trivia session has encountered an error.\n", exc_info=exc)
|
||||
asyncio.create_task(
|
||||
self.ctx.send(
|
||||
_(
|
||||
"An unexpected error occurred in the trivia session.\nCheck your console or logs for details."
|
||||
)
|
||||
msg = _("An unexpected error occurred in the trivia session.")
|
||||
if self.ctx.author.id in self.ctx.bot.owner_ids:
|
||||
msg = _(
|
||||
"An unexpected error occurred in the trivia session.\nCheck your console or logs for details."
|
||||
)
|
||||
)
|
||||
asyncio.create_task(self.ctx.send(msg))
|
||||
self.stop()
|
||||
|
||||
async def run(self):
|
||||
|
||||
Reference in New Issue
Block a user