mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-06 12:03:50 +08:00
fix #638
This commit is contained in:
parent
32771eb8b0
commit
569a718dc6
@ -409,6 +409,9 @@ func (bot *CQBot) formatGroupMessage(m *message.GroupMessage) MSG {
|
|||||||
gm["sub_type"] = "anonymous"
|
gm["sub_type"] = "anonymous"
|
||||||
} else {
|
} else {
|
||||||
mem := bot.Client.FindGroup(m.GroupCode).FindMember(m.Sender.Uin)
|
mem := bot.Client.FindGroup(m.GroupCode).FindMember(m.Sender.Uin)
|
||||||
|
if mem == nil{
|
||||||
|
return Failed(100,"MEMBER_NOT_FOUND","群员不存在")
|
||||||
|
}
|
||||||
ms := gm["sender"].(MSG)
|
ms := gm["sender"].(MSG)
|
||||||
ms["role"] = func() string {
|
ms["role"] = func() string {
|
||||||
switch mem.Permission {
|
switch mem.Permission {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user