[Audio] UX improvements to [p]summon command (#5186)

This commit is contained in:
MAX
2021-07-13 19:52:46 +02:00
committed by GitHub
parent 2ab46fbe41
commit 2b67b9d06d

View File

@@ -667,11 +667,16 @@ class PlayerControllerCommands(MixinMeta, metaclass=CompositeMetaClass):
and ctx.guild.me in ctx.author.voice.channel.members and ctx.guild.me in ctx.author.voice.channel.members
): ):
ctx.command.reset_cooldown(ctx) ctx.command.reset_cooldown(ctx)
return return await self.send_embed_msg(
ctx,
title=_("Unable To Do This Action"),
description=_("I am already in your channel."),
)
await player.move_to( await player.move_to(
ctx.author.voice.channel, ctx.author.voice.channel,
deafen=await self.config.guild_from_id(ctx.guild.id).auto_deafen(), deafen=await self.config.guild_from_id(ctx.guild.id).auto_deafen(),
) )
await ctx.tick()
except AttributeError: except AttributeError:
ctx.command.reset_cooldown(ctx) ctx.command.reset_cooldown(ctx)
return await self.send_embed_msg( return await self.send_embed_msg(