Manevolent / ts3j

An open-source Java Teamspeak 3 client library using the TS3 full client protocol
Apache License 2.0
105 stars 15 forks source link

Download File #50

Open sayazaaa opened 4 months ago

sayazaaa commented 4 months ago

How do I download a file from the server? I tried:

val dowCommand =  SingleCommand(
            "ftinitdownload", ProtocolRole.CLIENT)
        dowCommand.add( CommandSingleParameter("clientftfid", "0"))
        dowCommand.add( CommandSingleParameter("name", "/icon_${channelInfo.iconId}"))
        dowCommand.add( CommandSingleParameter("cid", "${channel.id}"))
        dowCommand.add( CommandSingleParameter("cpw", ""))
        dowCommand.add( CommandSingleParameter("seekpos", "0"))
        dowCommand.add( CommandSingleParameter("proto", "0"))
        val initDownload = client.executeCommand(
            dowCommand
        ).get().toList()

but it returns nothing What should I do?