from discord import Client, Intents, Embed
from discord_slash import SlashCommand, SlashContext
bot = Client(intents=Intents.default())
slash = SlashCommand(bot)
@slash.slash(name="test")
async def test(ctx: SlashContext):
embed = Embed(title="Embed Test")
await ctx.send(embed=embed)
bot.run("discord_token")我在用discord_slash。但每次都会出错
line 2, in <module>
from discord_slash import SlashCommand, SlashContext
ModuleNotFoundError: No module named 'discord_slash'我安装了不和谐的-py-交互
如何解决这个问题;
发布于 2022-01-16 10:40:24
Discord.py已经被反对,因为v13的新更新不和谐的开发人员仍在工作的库,所以请坚持!
发布于 2022-05-24 23:07:06
pip install discord-py-slash-command发布于 2022-01-16 10:45:21
试一试
pip3 install discord_slashhttps://stackoverflow.com/questions/70729262
复制相似问题