【发布时间】:2020-10-12 15:37:30
【问题描述】:
我想在 discord.py 中获取附加到消息的图像的高度。这是我的代码:
if message.content(discord.Attachment.height > 0):
await message.channel.send('Your media file is restricted!')
运行时出现以下错误:
error: TypeError: '>' not supported between instances of 'member_descriptor' and 'int'
【问题讨论】:
标签: python-3.x discord discord.py