mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-05 03:23:49 +08:00
feat(coolq): new field "shut_up_timestamp" in group members.
Fixes: #918
This commit is contained in:
parent
605e572b87
commit
c423f6d6bb
11
coolq/api.go
11
coolq/api.go
@ -1451,11 +1451,12 @@ func convertGroupMemberInfo(groupID int64, m *client.GroupMemberInfo) MSG {
|
||||
// unknown = 0xff
|
||||
return "unknown"
|
||||
}(),
|
||||
"age": 0,
|
||||
"area": "",
|
||||
"join_time": m.JoinTime,
|
||||
"last_sent_time": m.LastSpeakTime,
|
||||
"level": strconv.FormatInt(int64(m.Level), 10),
|
||||
"age": 0,
|
||||
"area": "",
|
||||
"join_time": m.JoinTime,
|
||||
"last_sent_time": m.LastSpeakTime,
|
||||
"shut_up_timestamp": m.ShutUpTimestamp,
|
||||
"level": strconv.FormatInt(int64(m.Level), 10),
|
||||
"role": func() string {
|
||||
switch m.Permission {
|
||||
case client.Owner:
|
||||
|
2
go.mod
2
go.mod
@ -5,7 +5,7 @@ go 1.16
|
||||
require (
|
||||
github.com/Baozisoftware/qrcode-terminal-go v0.0.0-20170407111555-c0650d8dff0f
|
||||
github.com/Microsoft/go-winio v0.5.0
|
||||
github.com/Mrs4s/MiraiGo v0.0.0-20210803073620-cb396f0f5649
|
||||
github.com/Mrs4s/MiraiGo v0.0.0-20210807084313-1d900b302d8f
|
||||
github.com/dustin/go-humanize v1.0.0
|
||||
github.com/gabriel-vasile/mimetype v1.3.1
|
||||
github.com/gorilla/websocket v1.4.2
|
||||
|
4
go.sum
4
go.sum
@ -4,8 +4,8 @@ github.com/Baozisoftware/qrcode-terminal-go v0.0.0-20170407111555-c0650d8dff0f/g
|
||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||
github.com/Microsoft/go-winio v0.5.0 h1:Elr9Wn+sGKPlkaBvwu4mTrxtmOp3F3yV9qhaHbXGjwU=
|
||||
github.com/Microsoft/go-winio v0.5.0/go.mod h1:JPGBdM1cNvN/6ISo+n8V5iA4v8pBzdOpzfwIujj1a84=
|
||||
github.com/Mrs4s/MiraiGo v0.0.0-20210803073620-cb396f0f5649 h1:9aEo50MD/QMHExoBxeUu/oLrs8gKzuyKWZ2+t+8AaOQ=
|
||||
github.com/Mrs4s/MiraiGo v0.0.0-20210803073620-cb396f0f5649/go.mod h1:5V3f/+mTYtrI/+hLqbdzZQXuLMl2RyLfx0XYYjCQ90Q=
|
||||
github.com/Mrs4s/MiraiGo v0.0.0-20210807084313-1d900b302d8f h1:W58s6dzrbXW4MU58jdIq9NBFaoD5ZrEgFyUB/IZ79cQ=
|
||||
github.com/Mrs4s/MiraiGo v0.0.0-20210807084313-1d900b302d8f/go.mod h1:5V3f/+mTYtrI/+hLqbdzZQXuLMl2RyLfx0XYYjCQ90Q=
|
||||
github.com/bits-and-blooms/bitset v1.2.0 h1:Kn4yilvwNtMACtf1eYDlG8H77R07mZSPbMjLyS07ChA=
|
||||
github.com/bits-and-blooms/bitset v1.2.0/go.mod h1:gIdJ4wp64HaoK2YrL1Q5/N7Y16edYb8uY+O0FJTyyDA=
|
||||
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
|
||||
|
Loading…
x
Reference in New Issue
Block a user