From 65eff369d563c83d36f58388c278097ac0cb1be1 Mon Sep 17 00:00:00 2001 From: ajax146 <31014239+ajax146@users.noreply.github.com> Date: Mon, 15 Jun 2026 09:35:37 -0700 Subject: [PATCH] Moves the slash command logging into a background task --- bot.py | 2 +- changelog.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 70aee67a..5576a951 100644 --- a/bot.py +++ b/bot.py @@ -808,7 +808,7 @@ async def interaction_check(self: Self, interaction: discord.Interaction) -> boo """ # Since we can't do it anywhere else, log slash command here - await self.slash_command_log(interaction) + asyncio.create_task(self.slash_command_log(interaction)) await self.logger.send_log( message="Checking if slash command can run", diff --git a/changelog.md b/changelog.md index 4437ac4f..76033bef 100644 --- a/changelog.md +++ b/changelog.md @@ -9,6 +9,7 @@ Changes since 2026.06.04 - Add property to make application commands always enabled regardless of guild config - Adds a docker ignore file to slim down the size of the docker container - Make the check-format make task run the same CI as is run on GitHub +- Logs app commands as a background task, to hopefully speed up response times # Modules