Python discord.py子命令导致找不到错误命令
代码如下:Python discord.py子命令导致找不到错误命令,python,discord.py,Python,Discord.py,代码如下: # its inside a cog @commands.group() async def binary_conv(self, ctx): if ctx.invoked_subcommand is None: await ctx.send('**An error occured**') @binary_conv.command() async def encode(self, ctx, test): await c
# its inside a cog
@commands.group()
async def binary_conv(self, ctx):
if ctx.invoked_subcommand is None:
await ctx.send('**An error occured**')
@binary_conv.command()
async def encode(self, ctx, test):
await ctx.send(test)
@binary_conv.command()
async def decode(self, ctx, test):
await ctx.send(test + "1")
我试试看
!二进制编码运行
它给出了这个错误
忽略命令None中的异常:
discord.ext.commands.errors.CommandNotFound:未找到命令“binary_conv”
您是否保存并重新启动了bot?你确定齿轮正在加载吗