mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-05 03:23:49 +08:00
update MiraiGo.
This commit is contained in:
parent
6973a10b4b
commit
c5a5f71664
@ -481,7 +481,7 @@ func (bot *CQBot) CQProcessGroupRequest(flag, subType, reason string, approve bo
|
||||
func (bot *CQBot) CQDeleteMessage(messageId int32) MSG {
|
||||
msg := bot.GetMessage(messageId)
|
||||
if msg == nil {
|
||||
return Failed(100)
|
||||
return Failed(100, "MESSAGE_NOT_FOUND", "消息不存在")
|
||||
}
|
||||
if _, ok := msg["group"]; ok {
|
||||
if err := bot.Client.RecallGroupMessage(msg["group"].(int64), msg["message-id"].(int32), msg["internal-id"].(int32)); err != nil {
|
||||
|
2
go.mod
2
go.mod
@ -3,7 +3,7 @@ module github.com/Mrs4s/go-cqhttp
|
||||
go 1.15
|
||||
|
||||
require (
|
||||
github.com/Mrs4s/MiraiGo v0.0.0-20201201163300-a56a314a61de
|
||||
github.com/Mrs4s/MiraiGo v0.0.0-20201202121633-9fca2495b1e5
|
||||
github.com/dustin/go-humanize v1.0.0
|
||||
github.com/getlantern/go-update v0.0.0-20190510022740-79c495ab728c
|
||||
github.com/getlantern/golog v0.0.0-20201105130739-9586b8bde3a9 // indirect
|
||||
|
8
go.sum
8
go.sum
@ -1,11 +1,7 @@
|
||||
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||
github.com/Mrs4s/MiraiGo v0.0.0-20201129125807-bb4a8e659c2a h1:LX0voKO/ay8KuxaYT4PLhBQFlBnW35o6M3F4vhl8bak=
|
||||
github.com/Mrs4s/MiraiGo v0.0.0-20201129125807-bb4a8e659c2a/go.mod h1:J1zaJWyeX7hQIPpOobqb8opxTNPbguotudPPrHJMoDM=
|
||||
github.com/Mrs4s/MiraiGo v0.0.0-20201129131629-7a3c8fd7f4e2 h1:8dV/HU6Og7cMEtXWOk100Gc64fM1VjwxzlvwBcjcjqA=
|
||||
github.com/Mrs4s/MiraiGo v0.0.0-20201129131629-7a3c8fd7f4e2/go.mod h1:J1zaJWyeX7hQIPpOobqb8opxTNPbguotudPPrHJMoDM=
|
||||
github.com/Mrs4s/MiraiGo v0.0.0-20201201163300-a56a314a61de h1:yDPm0EywuZuxLq1dAmQMXonKYfp0jBDy3p2Ahqzl4gs=
|
||||
github.com/Mrs4s/MiraiGo v0.0.0-20201201163300-a56a314a61de/go.mod h1:J1zaJWyeX7hQIPpOobqb8opxTNPbguotudPPrHJMoDM=
|
||||
github.com/Mrs4s/MiraiGo v0.0.0-20201202121633-9fca2495b1e5 h1:qVGQjUz+W+ZArHWjDO6MepKZKmxdINaDMYhufflaWVk=
|
||||
github.com/Mrs4s/MiraiGo v0.0.0-20201202121633-9fca2495b1e5/go.mod h1:J1zaJWyeX7hQIPpOobqb8opxTNPbguotudPPrHJMoDM=
|
||||
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
|
||||
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
|
||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
|
Loading…
x
Reference in New Issue
Block a user