【发布时间】:2021-02-04 10:44:57
【问题描述】:
我遇到了这个问题:
discord.ext.commands.errors.CommandInvokeError:命令引发异常:RuntimeError:使用语音需要 PyNaCl 库
这是我的代码:
import discord
from discord.ext import commands
client = commands.Bot(command_prefix = '.')
@client.event
async def on_ready():
print('Pronto!')
@client.command()
async def join(ctx):
channel = ctx.author.voice.channel
await channel.connect()
@client.command()
async def leave(ctx):
await ctx.voice_client.disconnect()
client.run(TOKEN)
但是我安装了 PyNaCl 我该怎么办?
【问题讨论】:
标签: discord.py