MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    Mirai-core API能不能实现 通过qq号拒绝如群请求

    开发交流
    2
    3
    232
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Corybyte last edited by

      Mirai-core API能不能实现 通过qq号拒绝如群请求

      1 Reply Last reply Reply Quote 0
      • 鸽
        鸽子宇泽 last edited by

        你可以提供对MemberJoinRequestEvent事件进行监听
        通过fromId来判断qq号 再使用reject()拒绝请求
        (该类被标注了@MiraiInternalApi 可能会在后续版本改动吧)

        C 1 Reply Last reply Reply Quote 0
        • C
          Corybyte @鸽子宇泽 last edited by

          @鸽子宇泽 okok 谢谢奥

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact