K
K
Konstantin2021-08-05 14:14:26
Python
Konstantin, 2021-08-05 14:14:26

How to make the bot leave the voice channel?

How to make it so that when you enter a command, the bot leaves the voice channel in which it is located?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
UberPool, 2021-08-05
@Fire_Fall

Try this.

@bot.command()
async def leave(ctx):
    await ctx.guild.voice_client.disconnect()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question