Improved parallel tasks in afk command
This commit is contained in:
parent
558d134bd7
commit
fcf1d2038b
@ -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)
|
||||
|
Reference in New Issue
Block a user