mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-06 12:03:50 +08:00
parent
bb7f83201e
commit
c2c1fb00e5
@ -797,6 +797,7 @@ func (bot *CQBot) CQSetGroupCard(groupID, userID int64, card string) global.MSG
|
||||
//
|
||||
// https://git.io/Jtz10
|
||||
// @route(set_group_special_title)
|
||||
// @rename(title->special_title)
|
||||
func (bot *CQBot) CQSetGroupSpecialTitle(groupID, userID int64, title string) global.MSG {
|
||||
if g := bot.Client.FindGroup(groupID); g != nil {
|
||||
if m := g.FindMember(userID); m != nil {
|
||||
|
@ -262,7 +262,7 @@ func (c *Caller) call(action string, p Getter) global.MSG {
|
||||
case "set_group_special_title":
|
||||
p0 := p.Get("group_id").Int()
|
||||
p1 := p.Get("user_id").Int()
|
||||
p2 := p.Get("title").String()
|
||||
p2 := p.Get("special_title").String()
|
||||
return c.bot.CQSetGroupSpecialTitle(p0, p1, p2)
|
||||
case "set_group_whole_ban":
|
||||
p0 := p.Get("group_id").Int()
|
||||
|
Loading…
x
Reference in New Issue
Block a user