我正试图使用不和谐组件包和discord.py模块来制作一个按钮.我有以下代码:async def button(ctx): "This is a button)discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: object NoneType can&
我想获得discord.py中附加到消息的图像的高度。这是我的代码: await message.channel.send('Your media file运行时,它会给出以下错误:
error: TypeError: '>' not supported between instances of 'member_descriptor' and 'i
self.generator(); // This does not work pub fn get(&self) -> i32 { }以上是一个很小的例子,我在结构中使用闭包当我通过generator()通知关闭时,我得到了no method named generator found。当我用()包装它时,这种情况不会发生。为什么会这样呢?