Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TeamMember

Team Member Structure an application's team member

Hierarchy

Index

Constructors

constructor

Properties

_keys

_keys: BaseSet<string> = keysTeamMember

client

client: ShardClient

membershipState

membershipState: TeamMembershipStates = TeamMembershipStates.BASE

permissions

permissions: BaseSet<string>

teamId

teamId: string = ""

user

user: User

Accessors

accepted

  • get accepted(): boolean
  • Returns boolean

avatar

  • get avatar(): null | string
  • Returns null | string

avatarUrl

  • get avatarUrl(): string

bot

  • get bot(): boolean
  • Returns boolean

createdAt

  • get createdAt(): Date

createdAtUnix

  • get createdAtUnix(): number

defaultAvatarUrl

  • get defaultAvatarUrl(): string

discriminator

  • get discriminator(): string

dm

  • Returns Channel | null

guilds

  • get guilds(): BaseCollection<string, Guild>
  • Returns BaseCollection<string, Guild>

hasBugHunterLevel1

  • get hasBugHunterLevel1(): boolean

hasBugHunterLevel2

  • get hasBugHunterLevel2(): boolean

hasEarlySupporter

  • get hasEarlySupporter(): boolean

hasHypesquad

  • get hasHypesquad(): boolean

hasHypesquadHouseBalance

  • get hasHypesquadHouseBalance(): boolean

hasHypesquadHouseBravery

  • get hasHypesquadHouseBravery(): boolean

hasHypesquadHouseBrilliance

  • get hasHypesquadHouseBrilliance(): boolean

hasMfaSms

  • get hasMfaSms(): boolean
  • Returns boolean

hasPartner

  • get hasPartner(): boolean

hasPremiumPromoDismissed

  • get hasPremiumPromoDismissed(): boolean

hasStaff

  • get hasStaff(): boolean
  • Returns boolean

hasTeamUser

  • get hasTeamUser(): boolean

hasVerifiedBot

  • get hasVerifiedBot(): boolean

hasVerifiedDeveloper

  • get hasVerifiedDeveloper(): boolean

id

  • get id(): string
  • Returns string

invited

  • get invited(): boolean
  • Returns boolean

isClientOwner

  • get isClientOwner(): boolean

isMe

  • get isMe(): boolean
  • Returns boolean

isSystem

  • get isSystem(): boolean
  • Returns boolean

isWebhook

  • get isWebhook(): boolean
  • Returns boolean

jumpLink

  • get jumpLink(): string
  • Returns string

mention

  • get mention(): string
  • Returns string

messages

  • get messages(): BaseCollection<string, Message>

name

  • get name(): string
  • Returns string

names

  • get names(): Array<string>
  • Returns Array<string>

note

  • get note(): string
  • Returns string

presence

publicFlags

  • get publicFlags(): number

shardId

  • get shardId(): number
  • Returns number

system

  • get system(): boolean | undefined
  • Returns boolean | undefined

username

  • get username(): string
  • Returns string

Methods

[inspect.custom]

  • [inspect.custom](): object

_getFromSnake

  • _getFromSnake(key: string): any
  • Parameters

    • key: string

    Returns any

_setFromSnake

  • _setFromSnake(key: string, value: any): any
  • Parameters

    • key: string
    • value: any

    Returns any

add

  • add(): Promise<any>
  • Returns Promise<any>

avatarUrlFormat

  • avatarUrlFormat(format?: null | string, query?: UrlQuery): string
  • Parameters

    • Optional format: null | string
    • Optional query: UrlQuery

    Returns string

block

  • block(): Promise<any>
  • Returns Promise<any>

createDm

createMessage

  • createMessage(options?: CreateMessage | string): Promise<any>
  • Parameters

    • Default value options: CreateMessage | string = {}

    Returns Promise<any>

createOrGetDm

deleteRelationship

  • deleteRelationship(): Promise<any>

difference

  • difference(key: string, value: any): [boolean, any]
  • Parameters

    • key: string
    • value: any

    Returns [boolean, any]

differences

editNote

  • editNote(note: string): Promise<any>
  • Parameters

    • note: string

    Returns Promise<any>

editRelationship

  • editRelationship(type: number): Promise<any>
  • Parameters

    • type: number

    Returns Promise<any>

fetch

  • fetch(): Promise<this>
  • Returns Promise<this>

fetchProfile

fetchTeam

  • fetchTeam(): Promise<Team>
  • Returns Promise<Team>

hasFlag

  • hasFlag(flag: number): boolean
  • Parameters

    • flag: number

    Returns boolean

hasPublicFlag

  • hasPublicFlag(flag: number): boolean
  • Parameters

    • flag: number

    Returns boolean

merge

mergeValue

  • mergeValue(key: string, value: any): void
  • Parameters

    • key: string
    • value: any

    Returns void

remove

  • remove(): Promise<any>
  • Returns Promise<any>

toJSON

  • toJSON(): object
  • Returns object

toString

  • toString(): string
  • Returns string

transferOwnership

  • transferOwnership(options?: object): Promise<any>
  • Parameters

    • Default value options: object = {}
      • Optional code?: undefined | string

    Returns Promise<any>

unadd

  • unadd(): Promise<any>
  • Returns Promise<any>

unblock

  • unblock(): Promise<any>
  • Returns Promise<any>

Generated using TypeDoc