提交 e5fc8e02 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

add room.avatar() doc (#1923)

上级 2c5bb86c
......@@ -1185,6 +1185,14 @@ export class Room extends Accessory implements Sayable {
return owner
}
/**
* Get avatar from the room.
* @returns {FileBox}
* @example
* const fileBox = await room.avatar()
* const name = fileBox.name
* fileBox.toFile(name)
*/
public async avatar (): Promise<FileBox> {
log.verbose('Room', 'avatar()')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册