Search Results for

    Show / Hide Table of Contents

    Class SetGroupSpecialTitleRequest

    设置群组专属头衔

    Inheritance
    System.Object
    ApiRequest
    SetGroupSpecialTitleRequest
    Inherited Members
    ApiRequest.api_path
    ApiRequest.response
    ApiRequest.content
    Namespace: cqhttp.Cyan.ApiCall.Requests
    Assembly: cqhttp.Cyan.dll
    Syntax
    public class SetGroupSpecialTitleRequest : ApiRequest

    Constructors

    | Improve this Doc View Source

    SetGroupSpecialTitleRequest(Int64, Int64, String, Int64)

    Declaration
    public SetGroupSpecialTitleRequest(long group_id, long user_id, string special_title = "", long duration = null)
    Parameters
    Type Name Description
    System.Int64 group_id

    群号

    System.Int64 user_id

    要设置的 QQ 号

    System.String special_title

    专属头衔,不填或空字符串表示删除专属头衔

    System.Int64 duration

    专属头衔有效期,单位秒,-1 表示永久,不过此项似乎没有效果,可能是只有某些特殊的时间长度有效,有待测试

    • Improve this Doc
    • View Source
    ☀
    ☾