import discord from discord.ext import commands class Leave(commands.Cog): def __init__(self, bot): self.bot = bot @commands.slash_command(name="kick", description="kickuje bota z kanalu") async def kick(self, ctx): await ctx.voice_client.disconnect() def setup(bot): bot.add_cog(Leave(bot))