1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-05 03:23:49 +08:00

fix: event missing field

This commit is contained in:
Mrs4s 2021-11-13 03:59:50 +08:00
parent 22d264c773
commit 1a2658ef72
No known key found for this signature in database
GPG Key ID: 3186E98FA19CE3A7

View File

@ -212,6 +212,9 @@ func (bot *CQBot) guildMessageReactionsUpdatedEvent(c *client.QQClient, e *clien
"message_id": fmt.Sprint(e.MessageId), // todo: 支持数据库后转换为数据库id
"operator_id": e.OperatorId,
"current_reactions": currentReactions,
"time": time.Now().Unix(),
"self_id": c.Uin,
"user_id": e.OperatorId,
})
}
@ -227,6 +230,9 @@ func (bot *CQBot) guildChannelUpdatedEvent(c *client.QQClient, e *client.GuildCh
"guild_id": e.GuildId,
"channel_id": e.ChannelId,
"operator_id": e.OperatorId,
"time": time.Now().Unix(),
"self_id": c.Uin,
"user_id": e.OperatorId,
"old_info": convertChannelInfo(e.OldChannelInfo),
"new_info": convertChannelInfo(e.NewChannelInfo),
})