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

(cherry picked from commit 2b67b9d06d)

Co-authored-by: MAX <63972751+maxbooiii@users.noreply.github.com>

Co-authored-by: MAX <63972751+maxbooiii@users.noreply.github.com>
This commit is contained in:
Red-GitHubBot
2021-09-08 20:20:14 +02:00
committed by GitHub
parent 85ab61b17d
commit 1a4c6bb84f

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(