mirror of
https://github.com/brandons209/Red-bot-Cogs.git
synced 2024-06-17 01:44:41 +12:00
ensure bot is out of VC before using sfx so it queues properly
This commit is contained in:
parent
3b2fadd14e
commit
ef236fa964
|
@ -281,10 +281,16 @@ class SFX(commands.Cog):
|
|||
"""
|
||||
Play a say sound!
|
||||
"""
|
||||
# TODO: cost manager receipt integration
|
||||
if not ctx.author.voice or ctx.author.voice.channel is None:
|
||||
await ctx.send(error("Connect to a voice channel to use this command."))
|
||||
return
|
||||
|
||||
# TODO: create my own queue to fix this issue
|
||||
if ctx.guild.me.voice and ctx.guild.me.voice.channel != ctx.author.voice.channel:
|
||||
await ctx.send(error("Please wait for the bot to disconnect from it's VC before using the command."))
|
||||
return
|
||||
|
||||
name = name.lower()
|
||||
saysounds = await self.config.guild(ctx.guild).saysounds()
|
||||
audio_cog = self.bot.get_cog("Audio")
|
||||
|
|
Loading…
Reference in a new issue