-->

From Discord.ext Import Commands


-->

From Discord.ext Import Commands. Client = commands.bot(command_prefix=“!”) @client.event async def on_ready(): From discord.ext import commands error:

discord bot之 slash command(选择user,给出option)_discord bot commandCSDN博客
discord bot之 slash command(选择user,给出option)_discord bot commandCSDN博客 from blog.csdn.net

For this reason, discord.py comes. Please note that when installing voice support on linux, you must install the following. You have to use discord.ext to import the commands extension.

-->

discord bot之 slash command(选择user,给出option)_discord bot commandCSDN博客

Firstly, import discord imports the discord.py package. From discord.ext import commands error: I'm trying to add slash commands to my discord bot, but when i try to add option with discord.app vs code says import discord could. You have to use discord.ext to import the commands extension.

-->