Bot, Python, Discord - does not connect to the voice channel
I recently tried to connect to the voice channel in the discord result: It does not write errors, but the bot does not connect either:
import discord
import os
from discord.ext import commands
from discord.ext.commands import Bot
from discord.utils import get
import asyncio
client = commands.Bot(command_prefix= '/')
@client.event
async def on_ready():
print('Connected')
@client.event
async def on_message(msg): pass
# if split in msg.content:
# await msg.delete()
# await msg.channel.send('', delete_after=3.50)
# await msg.channel.send('', delete_after=3.50)
@client.command
async def join(ctx):
author = ctx.message.author
channel = author.voice_channel
await client.join_voice_channel(channel)
client.run('ODAzMjEyMDYyNDczNzE1NzUy.YA6fhg.wZbKolXSraQ2gVPupu0W8HixaD8')
0
Author: TriOnix Channel, 2021-01-28