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')
|
self._logger.trace(__name__, f'Finished afk command')
|
||||||
return
|
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)
|
channel: VoiceChannel = ctx.guild.get_channel(settings.afk_command_channel_id)
|
||||||
try:
|
try:
|
||||||
await ctx.author.move_to(channel)
|
await ctx.author.move_to(channel)
|
||||||
|
Reference in New Issue
Block a user