MiraiForum

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

    Solved 获取群内@事件

    开发交流
    2
    3
    155
    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.
    • S
      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>())
        
        S 1 Reply Last reply Reply Quote 0
        • Him188
          Him188 last edited by Him188

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

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

            @him188 好的谢谢

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