Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UserMixin

User Mixin Structure Used to extend to receive all of [User]'s properties

Hierarchy

Index

Constructors

constructor

Properties

client

client: ShardClient

user

user: User

Accessors

avatar

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

avatarUrl

  • get avatarUrl(): string
  • Returns string

bot

  • get bot(): boolean
  • Returns boolean

createdAt

  • get createdAt(): Date
  • Returns Date

createdAtUnix

  • get createdAtUnix(): number
  • Returns number

defaultAvatarUrl

  • get defaultAvatarUrl(): string
  • Returns string

discriminator

  • get discriminator(): string
  • Returns string

dm

  • Returns Channel | null

guilds

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

hasBugHunterLevel1

  • get hasBugHunterLevel1(): boolean
  • Returns boolean

hasBugHunterLevel2

  • get hasBugHunterLevel2(): boolean
  • Returns boolean

hasEarlySupporter

  • get hasEarlySupporter(): boolean
  • Returns boolean

hasHypesquad

  • get hasHypesquad(): boolean
  • Returns boolean

hasHypesquadHouseBalance

  • get hasHypesquadHouseBalance(): boolean
  • Returns boolean

hasHypesquadHouseBravery

  • get hasHypesquadHouseBravery(): boolean
  • Returns boolean

hasHypesquadHouseBrilliance

  • get hasHypesquadHouseBrilliance(): boolean
  • Returns boolean

hasMfaSms

  • get hasMfaSms(): boolean
  • Returns boolean

hasPartner

  • get hasPartner(): boolean
  • Returns boolean

hasPremiumPromoDismissed

  • get hasPremiumPromoDismissed(): boolean
  • Returns boolean

hasStaff

  • get hasStaff(): boolean
  • Returns boolean

hasTeamUser

  • get hasTeamUser(): boolean
  • Returns boolean

hasVerifiedBot

  • get hasVerifiedBot(): boolean
  • Returns boolean

hasVerifiedDeveloper

  • get hasVerifiedDeveloper(): boolean
  • Returns boolean

id

  • get id(): string
  • Returns string

isClientOwner

  • get isClientOwner(): boolean
  • Returns 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>
  • Returns BaseCollection<string, Message>

name

  • get name(): string
  • Returns string

names

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

note

  • get note(): string
  • Returns string

presence

  • Returns null | Presence

publicFlags

  • get publicFlags(): number
  • Returns 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

  • Returns Promise<ChannelDM>

createMessage

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

    • Default value options: CreateMessage | string = {}

    Returns Promise<any>

createOrGetDm

  • Returns Promise<ChannelBase>

deleteRelationship

  • deleteRelationship(): Promise<any>
  • Returns 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>

fetchProfile

  • Returns Promise<Profile>

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

toJSON

  • toJSON(): object
  • Returns object

toString

  • toString(): string
  • Returns string

unadd

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

unblock

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

Generated using TypeDoc