适配下频道插件转发...

[QQGuild-plugin](https://gitee.com/Zyy955/QQGuild-plugin)

Signed-off-by: Zyy.小钰 <1072411694@qq.com>
This commit is contained in:
Zyy.小钰 2023-08-12 11:19:27 +00:00 committed by Gitee
parent 9b9ec42ffa
commit 6453edde09
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 3 additions and 0 deletions

View File

@ -67,6 +67,9 @@ function mkdirs(dirname) {
* @param msgsscr 转发信息是否伪装
*/
async function makeForwardMsg(e, msg = [], dec = '', msgsscr = false) {
/** 是频道插件直接返回 */
if (e.QQGuild) return msg
if (!Array.isArray(msg)) msg = [msg]
let name = msgsscr ? e.sender.card || e.user_id : Bot.nickname