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