MiraiForum

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

    上传语音Audio对象,可不可以在ExternalResource添加上传方法

    开发交流
    3
    5
    147
    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.
    • HollisMeynell
      HollisMeynell last edited by

      如题,原来是大批量使用Voice,使用的ExternalResource.uploadToVoice(),如果在ExternalResource添加了就能直接全局替换了,不用再改别的(想偷懒

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

        ?
        ExternalResource.uploadAsVoice

        HollisMeynell 1 Reply Last reply Reply Quote 0
        • HollisMeynell
          HollisMeynell @cssxsh last edited by

          @cssxsh AsVoice提示过期了呀
          Voice不是被推荐更新掉嘛
          另外大佬崔坑!!!
          使用其他日志库接管 mirai 日志系统
          mirai 2.7 起支持

          使用 Log4J, SLF4J 等接管 mirai 日志系统后则可使用它们的过滤等高级功能。参阅 mirai-logging 以获取更多信息。
          明明都2.7.1了都灭有(主要是文档里没有

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

            你可以在你自己项目内定义一个 ExternalResource.uploadAsAudio

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

              @karlatemp 好(官方以后可不可以加上

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