import discord from discord.ext import commands class Join(commands.Cog): def __init__(self, bot): self.bot = bot @commands.slash_command(name="join", description="dołącza do kanalu") async def join(self, ctx): await ctx.voice_client.connect() def setup(bot): bot.add_cog(Join(bot))