【发布时间】:2021-07-28 15:21:26
【问题描述】:
@client.command()
async def makereactionrole(ctx):
await ctx.send('What would you like the title to be?')
title = ''
def check(msg):
return msg.author == ctx.author and mesg.channel == ctx.channel
title = msg.content
await ctx.send(title)
错误:discord.ext.commands.errors.CommandInvokeError:命令引发异常:HTTPException:400 Bad Request(错误代码:50006):无法发送空消息
试图做出“你希望标题是什么?”的回应一个将作为测试发回的变量。请帮忙。
【问题讨论】:
-
你能用右缩进格式化代码吗?
-
是的,你的缩进不正确
-
@mundanehassan 应该改变什么?我的缩进从来没有遇到过错误。
标签: python discord discord.py