From fcf1d2038bf9c4ffddfdd9a9d7cd6e7c7427fcdb Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 8 Jan 2022 19:42:25 +0100 Subject: [PATCH] Improved parallel tasks in afk command --- src/modules/base/service/base_command_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/base/service/base_command_service.py b/src/modules/base/service/base_command_service.py index 5c2d7ff..d33ed6e 100644 --- a/src/modules/base/service/base_command_service.py +++ b/src/modules/base/service/base_command_service.py @@ -79,7 +79,7 @@ class BaseCommandService(CommandABC): self._logger.trace(__name__, f'Finished afk command') return - await self._message_service.send_ctx_msg(ctx, settings.afk_command_move_message) + self._bot.loop.create_task(self._message_service.send_ctx_msg(ctx, settings.afk_command_move_message)) channel: VoiceChannel = ctx.guild.get_channel(settings.afk_command_channel_id) try: await ctx.author.move_to(channel)