aboutsummaryrefslogtreecommitdiffstats
path: root/cogs/music/join.py
diff options
context:
space:
mode:
Diffstat (limited to 'cogs/music/join.py')
-rw-r--r--cogs/music/join.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cogs/music/join.py b/cogs/music/join.py
index c626897..9837fdb 100644
--- a/cogs/music/join.py
+++ b/cogs/music/join.py
@@ -11,7 +11,8 @@ class Join(commands.Cog):
11 11
12 @commands.slash_command(name="join", description="dołącza do kanalu") 12 @commands.slash_command(name="join", description="dołącza do kanalu")
13 async def join(self, ctx): 13 async def join(self, ctx):
14 await ctx.voice_client.connect() 14 channel = ctx.author.voice.channel
15 await channel.connect()
15 logger.info("Bot connected to voice channel") 16 logger.info("Bot connected to voice channel")
16 17
17 18