Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Member

Hierarchy

Implements

Index

Constructors

constructor

Properties

Optional accentColor

accentColor: null | number

Optional activities

activities: Activity<ActivityType>[]

avatar

avatar: null | string

avatarURL

avatarURL: string

Optional banner

banner: null | string

bannerURL

bannerURL: null | string

bot

bot: boolean

Optional clientStatus

clientStatus: ClientStatus

communicationDisabledUntil

communicationDisabledUntil: null | number

createdAt

createdAt: number

defaultAvatar

defaultAvatar: string

defaultAvatarURL

defaultAvatarURL: string

discriminator

discriminator: string

game

game: null | Activity<ActivityType>

guild

guild: Guild

id

id: string

joinedAt

joinedAt: null | number

mention

mention: string

nick

nick: null | string

Optional pending

pending: boolean

permission

permission: Permission
deprecated

permissions

permissions: Permission

Optional premiumSince

premiumSince: null | number

roles

roles: string[]

staticAvatarURL

staticAvatarURL: string

Optional status

status: Status

user

user: User

username

username: string

voiceState

voiceState: VoiceState

Methods

addRole

  • addRole(roleID: string, reason?: string): Promise<void>
  • Parameters

    • roleID: string
    • Optional reason: string

    Returns Promise<void>

ban

  • ban(deleteMessageDays?: number, reason?: string): Promise<void>
  • Parameters

    • Optional deleteMessageDays: number
    • Optional reason: string

    Returns Promise<void>

edit

  • Parameters

    Returns Promise<void>

inspect

  • Returns Member

kick

  • kick(reason?: string): Promise<void>
  • Parameters

    • Optional reason: string

    Returns Promise<void>

removeRole

  • removeRole(roleID: string, reason?: string): Promise<void>
  • Parameters

    • roleID: string
    • Optional reason: string

    Returns Promise<void>

toJSON

  • Parameters

    • Optional props: string[]

    Returns JSONCache

toString

  • toString(): string
  • Returns string

unban

  • unban(reason?: string): Promise<void>
  • Parameters

    • Optional reason: string

    Returns Promise<void>

Static getCreatedAt

  • getCreatedAt(id: string): number
  • Parameters

    • id: string

    Returns number

Static getDiscordEpoch

  • getDiscordEpoch(id: string): number
  • Parameters

    • id: string

    Returns number

Generated using TypeDoc