【发布时间】:2021-01-24 11:38:17
【问题描述】:
我正在尝试为我的 Discord Bot 创建垃圾邮件命令,但我需要超过 1 个整数,因此我无法设置标题描述和垃圾邮件数量...如果您能提供帮助会很好
@bot.command()
async def spam(ctx, amount: int, title: int, *, message):
错误: 参数“title”转换为“int”失败。
【问题讨论】:
-
你为什么要将标题作为整数?
-
我想做类似 >spam 2 "That the Title" "This is the Description of the embed"
-
如果你想要标题
str,你为什么要title: int?
标签: python discord.py embed discord.py-rewrite