blob: 0be2068e8502cf61e5c1778779258915011b1215 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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))
|