1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-06 03:53:50 +08:00

fix: fix set_group_special_title param

Fixes #1178
This commit is contained in:
wdvxdr 2021-11-18 13:13:52 +08:00
parent bb7f83201e
commit c2c1fb00e5
No known key found for this signature in database
GPG Key ID: 703F8C071DE7A1B6
2 changed files with 2 additions and 1 deletions

View File

@ -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 {

View File

@ -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()