Skip to content
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

消息转发无法直接转发图片 #75

Open
ForteScarlet opened this issue Nov 9, 2022 · 1 comment
Open

消息转发无法直接转发图片 #75

ForteScarlet opened this issue Nov 9, 2022 · 1 comment
Labels
缺陷 不属于错误的缺陷

Comments

@ForteScarlet
Copy link
Member

ForteScarlet commented Nov 9, 2022

如果直接原样发送图片类型的消息将无法转发:

channel.send(event.messageContent)

这会提示资源不存在,需要重新上传资源。但是此资源链接(貌似)可以直接使用在卡片消息中,因此仅需要对消息转发情况做处理,可能需要涉及内部链接缓存。

此问题在Kook开发者中心中有所反馈,但是对此问题的调整意向不大,可能不会被官方改善。

ヘキソナ#6969:
你放在卡片消息里发出去就行

由回复得知图片链接似乎可直接被卡片消息使用。

ヘキソナ#6969:
这种东西从来都是开发者自己实现吧…
加糖可以,但是加到最后甜到发齁,你的sdk就有点太臃肿了
ヘキソナ#6969:
关于优化这一点我觉得这种操作几乎可以忽略不计,你又不是在打OI…(其实就算是OI这么几个指令的时间也解决不了TLE)…所以最后唯一的作用还只是语法糖

以目前的讨论结果来看,操作调整的可能性不大。

@ForteScarlet ForteScarlet added the 缺陷 不属于错误的缺陷 label Nov 9, 2022
@ForteScarlet
Copy link
Member Author

目前是重新下载、上传图片文件。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
缺陷 不属于错误的缺陷
Projects
None yet
Development

No branches or pull requests

1 participant