# Function: getCurrentTeam
▸ getCurrentTeam(): Promise‹ReadonlyWithExtensions‹Team› | null›
返回当前队伍的只读实例,若不存在队伍则返回null
example
// 在头部引入账号模块
import { matchSystem } from "@timi/mogs-sdk";
...
// 使用
const team = await matchSystem.getCurrentTeam();
if (team !== null) {
const { teamId, ownerId, teamPlayerList } = team;
}
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
# 返回值:
Promise‹ReadonlyWithExtensions‹Team› | null›