-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
当发送图片消息时,从消息事件中获取的图片消息段中似乎不包含有效的 URL 信息 #43
Comments
大概看了一下源码, adapter-discord/nonebot/adapters/discord/message.py Lines 46 to 51 in 5794c0b
但奇怪的是 adapter-discord/nonebot/adapters/discord/message.py Lines 438 to 451 in 5794c0b
|
我想因为 |
可以理解。不过确实会有通过 |
版本信息:
Python 版本:3.11.9
NoneBot 版本:2.3.3
Discord 适配器版本:0.1.8
问题描述:
如以下示例代码:
在 Discord 发送一条图片消息,在调试器中尝试从事件中获取消息,似乎在消息段中不包含图片的 URL 信息:
而直接执行此处理器会抛出异常:
事件信息如下(个人认为敏感的 ID 数据使用
***
替换):The text was updated successfully, but these errors were encountered: