1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-06 03:53:50 +08:00
This commit is contained in:
Akiba 2021-02-16 18:20:18 +08:00
parent 32771eb8b0
commit 569a718dc6

View File

@ -409,6 +409,9 @@ func (bot *CQBot) formatGroupMessage(m *message.GroupMessage) MSG {
gm["sub_type"] = "anonymous"
} else {
mem := bot.Client.FindGroup(m.GroupCode).FindMember(m.Sender.Uin)
if mem == nil{
return Failed(100,"MEMBER_NOT_FOUND","群员不存在")
}
ms := gm["sender"].(MSG)
ms["role"] = func() string {
switch mem.Permission {