mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-06 08:00:10 +08:00
[core] Improve documentation for Group files
This commit is contained in:
parent
a8995d63a6
commit
36cd688382
@ -17,6 +17,7 @@ import me.him188.kotlin.jvm.blocking.bridge.JvmBlockingBridge
|
||||
import net.mamoe.mirai.Bot
|
||||
import net.mamoe.mirai.contact.active.GroupActive
|
||||
import net.mamoe.mirai.contact.announcement.Announcements
|
||||
import net.mamoe.mirai.contact.file.RemoteFiles
|
||||
import net.mamoe.mirai.event.events.*
|
||||
import net.mamoe.mirai.message.MessageReceipt
|
||||
import net.mamoe.mirai.message.data.*
|
||||
@ -54,6 +55,9 @@ import kotlin.jvm.JvmSynthetic
|
||||
*
|
||||
* 可通过 [Group.announcements] 获取公告支持. 可在 [Announcements] 查看详细文档.
|
||||
*
|
||||
* ## 群文件
|
||||
*
|
||||
* 使用 [Group.files] 获取群文件管理器后操作. 详见 [RemoteFiles].
|
||||
*/
|
||||
@NotStableForInheritance
|
||||
public interface Group : Contact, CoroutineScope, FileSupported, AudioSupported {
|
||||
|
@ -131,7 +131,7 @@ public expect interface AbsoluteFolder : AbsoluteFileFolder {
|
||||
* - 也可以是 `sub/foo.txt` 表示该目录的子目录 "sub" 下的文件 "foo.txt".
|
||||
* - 或是绝对路径 `/sub/foo.txt` 表示根目录的 "sub" 目录下的文件 "foo.txt"
|
||||
*
|
||||
* @param filepath 目标文件名
|
||||
* @param filepath 目标文件名, 即上传到远程后的远程路径, 不是本地文件路径
|
||||
* @param content 文件内容
|
||||
* @param callback 下载进度回调, 传递的 `progression` 是已下载字节数.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user