Properties
addTeamMembers
add
Team
Members
: [addTeamMembersResult
: { accounts
: string[]; members
: TeamMember[]; team
: Team }]clearServerHistoryMsgs
clearServerHistoryMsgs: [result: { sessionId: string; time: number }[]]
dismissSuperTeam
dismissSuperTeam: [result: { teamId: string }]
dismissTeam
dismissTeam: [result: { teamId: string }]
multiSyncUpdateCloudSession
myTeamMembers
my
Team
Members
: [teamMembers
: Partial<TeamMember>[]]removeSuperTeamMembers
remove
Super
Team
Members
: [result
: { accounts
: string[]; team
: SuperTeam }]removeTeamMembers
remove
Team
Members
: [result
: { accounts
: string[]; team
: Team }]updateBlackList
updateBlackList: [updateBlackListResult: { account: string; isAdd: boolean }]
updateMuteList
updateMuteList: [updateMuteListResult: { account: string; isAdd: boolean }]
updateSuperTeamMembersMute
update
Super
Team
Members
Mute
: [result
: { accounts
: string[]; members
: { account
: string; id
: string; mute
: boolean; teamId
: string; updateTime
: number }[]; mute
: boolean; team
: SuperTeam }]updateSystemMessages
updateSystemMessages: [result: { from: string; idServer: string; state: "read" | "deleted" | "none" | "pass" | "decline" | "invalid"; type: "applyTeam" | "rejectTeamApply" | "teamInvite" | "rejectTeamInvite" | "friendRequest" | "deleteFriend" | "recallMsgP2p" | "recallMsgTeam" | "recallMsgSuperTeam" | "deleteMsgP2pOneWay" | "deleteMsgTeamOneWay" | "applySuperTeam" | "rejectSuperTeamApply" | "superTeamInvite" | "rejectSuperTeamInvite" | "customP2p" | "customTeam" | "customSuperTeam" }[]]
Example:
const instance = new SDK()
instance.on('logined', loginResult => { console.log(loginResult.connectionId) }