MiraiForum

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

    如何在执行指令时发送一条at指令发送者的消息?

    开发交流
    3
    3
    76
    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.
    • N
      N70_ last edited by

      rt,CommandSender似乎是User?类型,与At()参数类型不一样,并不能直接调用
      且我没有找到该如何获得CommandSender的QQ号码或者将CommandSender转换成UserOrBot类型

      1 Reply Last reply Reply Quote 0
      • H
        hatmony 摸鱼 last edited by

        new MessageChainBuilder().append(new At(groupMessageEvent.getSender().getId())......

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

          CommandSender.user, 请善于翻源码定义

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