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:
parent
22d264c773
commit
1a2658ef72
@ -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),
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user