MiraiForum

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

    Mirai core API 我想主动发起事件请求

    技术交流板块
    2
    2
    221
    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

      比如在 plugin类中,获取群消息事件的API我该怎么做

      1 Reply Last reply Reply Quote 0
      • MrXiaoM
        MrXiaoM 童心未泯 last edited by

        意思是你想主动发出一个群消息事件?

        Events -> 广播自定义事件

        其中的 ExampleEvent 换成 net.mamoe.mirai.event.events.GroupMessageEvent,你能收集到足够的信息把它实例化就可以了

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