Improved parallel tasks in afk command

This commit is contained in:
Sven Heidemann 2022-01-08 19:42:25 +01:00
parent 558d134bd7
commit fcf1d2038b

View File

@ -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)