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

forward中的preview字段 #680

Closed
Glenn-Jay opened this issue Feb 7, 2023 · 5 comments
Closed

forward中的preview字段 #680

Glenn-Jay opened this issue Feb 7, 2023 · 5 comments

Comments

@Glenn-Jay
Copy link

我看见别人能够实现不打开转发消息是一个内容,打开转发消息是另一个内容,我在mcl看见一个关键字:preview,这个关键字应该就是在没打开的时候展示的内容,我在api文档里面找到forword却没有这个关键字,在新的版本是会适配这个关键字么?

@cssxsh
Copy link
Contributor

cssxsh commented Feb 7, 2023

我在mcl看见

mcl (mirai-console-loader) https://github.com/iTXTech/mirai-console-loader
mirai https://github.com/mamoe/mirai/
mirai-console https://github.com/mamoe/mirai/tree/dev/mirai-console

mcl != mirai and mcl != mirai-console

@Glenn-Jay
Copy link
Author

我想实现的是这样的效果,没展开是这样
image
展开了是这样
image
mcl的是这样
image

@cssxsh
Copy link
Contributor

cssxsh commented Feb 7, 2023

mirai 原生的API 确实有可以自定义显示信息的功能

https://github.com/mamoe/mirai/blob/42334c42c5088ba57056fa1969ca85f9b5210f4a/mirai-core-api/src/commonMain/kotlin/message/data/ForwardMessage.kt#L31-L48

不过我估计你等不来, 负责管理 mirai-api-http 的 ryoii 很忙 没空

另外再说一遍 mcl != mirai and mcl != mirai-console

mirai 的本体实际上在 mcl 目录下 libs 文件夹,你可以打开看看

至于为什么强调不同,
是因为总有人在提交问题的时候, 把 mcl 的版本信息当作 mirai 的提交, 给问题诊断带来问题
2.13.0 开始出现的大 logo 就是为了强调这是 Mirai Console 不是 MCL

还有就是

2023-02-07 12:22:37 I/main: Starting mirai-console...
开始就是 Mirai Console 本身的日志了, 这些日志同时也会存在 logs 文件夹
而在前面的日志 12:22:35 [INFO] Verifying ... 则是 MCL 的

@Glenn-Jay
Copy link
Author

行吧,感觉有这个字段的话可以实现更多的功能
mcl != mirai and mcl != mirai-console

@MDeath
Copy link

MDeath commented Feb 21, 2023

以前我是通过xml替换转发聊天记录id实现的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants