aboutsummaryrefslogtreecommitdiffstats
path: root/cogs/music/leave.py
blob: 7be3b603a4efb22a936abe187f1d7109d41f5d4c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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))