fix: 修复转发消息伪装 (#216)

This commit is contained in:
sameu 2023-07-30 15:15:58 +08:00 committed by GitHub
parent 3ae9f4f9df
commit c3efed3c53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -64,13 +64,13 @@ function mkdirs(dirname) {
* @param e 消息事件
* @param msg 消息数组
* @param dec 转发描述
* @param msgsscr 转发信息是否为Bot
* @param msgsscr 转发信息是否伪装
*/
async function makeForwardMsg(e, msg = [], dec = '', msgsscr = false) {
if (!Array.isArray(msg)) msg = [msg]
let name = msgsscr ? this.e.sender.card || this.e.user_id : Bot.nickname
let id = msgsscr ? this.e.user_id : Bot.uin
let name = msgsscr ? e.sender.card || e.user_id : Bot.nickname
let id = msgsscr ? e.user_id : Bot.uin
if (e.isGroup) {
let info = await e.bot.getGroupMemberInfo(e.group_id, id)