Discord.py discord 的默认 Unicode 表情符号出现表情符号对象错误

Discord.py Emoji object error with discord's default Unicode emojis

简单地说,我正在创建一个命令,该命令将 emoji/partial emoji 参数作为命令的输入。

但似乎 discord.py 将自定义表情符号(不是 discord 中的默认表情符号)识别为 emoji/partial 表情符号对象,但是当我尝试从 discord 中为其提供默认的 Unicode 表情符号时给我一个 commands.UserInputError 这是我的代码:

@client.command()
async def massreact(ctx, limit: int, reaction : PartialEmoji):
await ctx.message.delete()
async for message in ctx.message.channel.history(limit=limit):
    await message.add_reaction(reaction)

例如,如果我这样做:

(前缀)5(自定义表情符号、gif 或 png)(有效)

但如果我这样做:

(前缀) 5 (它不起作用,正如我所说,它把它当作 commands.UserInputError)

注意:这个手表情符号是 discord 中的默认表情符号,它是 :ok_hand:

改变async def massreact(ctx, limit: int, reaction : PartialEmoji): 至 -

async def massreact(ctx, limit: int, reaction : str):

应该可以,如果不行,请评论这个答案,很乐意提供帮助。