mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-20 02:26:32 +01:00
oh
This commit is contained in:
parent
1e9d4a4f94
commit
ea07b5af3e
1 changed files with 2 additions and 2 deletions
|
@ -226,8 +226,8 @@ class Events(commands.Cog):
|
||||||
if "it just works" in message.content.lower():
|
if "it just works" in message.content.lower():
|
||||||
file = Path.cwd() / "assets" / "it-just-works.ogg"
|
file = Path.cwd() / "assets" / "it-just-works.ogg"
|
||||||
if message.author.voice is not None and message.author.voice.channel is not None:
|
if message.author.voice is not None and message.author.voice.channel is not None:
|
||||||
if message.guild.me.voice is not None:
|
if message.guild.me.voice is not None and message.guild.me.voice.channel != message.author.voice.channel:
|
||||||
await message.guild.me.voice.disconnect()
|
await message.guild.voice_state.disconnect()
|
||||||
voice = await message.author.voice.channel.connect()
|
voice = await message.author.voice.channel.connect()
|
||||||
if message.guild.me.voice.self_mute or message.guild.me.voice.mute:
|
if message.guild.me.voice.self_mute or message.guild.me.voice.mute:
|
||||||
await voice.disconnect()
|
await voice.disconnect()
|
||||||
|
|
Loading…
Reference in a new issue