Navigation

    MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups

    获取群内@事件

    开发交流
    2
    3
    23
    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.
    • SLiGe
      SLiGe last edited by

      看了下events包下没At相关的事件,使用GroupEvent没找到方法,根据Message内容去判断?

      1 Reply Last reply Reply Quote 0
      • Him188
        Him188 last edited by Him188

        没有独立事件,要根据消息事件里面的内容判断

        if (message.anyIsInstance<At>())
        
        SLiGe 1 Reply Last reply Reply Quote 0
        • SLiGe
          SLiGe @Him188 last edited by

          @him188 好的谢谢

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Powered by Mamoe Technologies | NodeBB | 友情链接