Class User

Hierarchy (view full)

Constructors

Properties

avatar: string
badges: UserBadge[]
ban: RawBan
banner: string
blooks: Map<string, number>
clan?: Clan
client: Client
color: string
created: Date
exp: number
friends: User[]
id: number
inited: boolean = false
misc: RawMisc
modified: Date
mute: RawMute
role: string
tokens: number
username: string

Methods

  • getAvatarUrl - Get the full URL of the user's avatar.

    Returns string

  • getBannerUrl - Get the full URL of the user's banner.

    Returns string

  • getVeteranLevel - Get the user's veteran level.

    Returns number

  • Returns Promise<void>

  • isBanned - Check if the user is banned.

    Returns boolean

  • isDeveloper - Check if the user is a developer.

    Returns boolean

  • isMuted - Check if the user is muted.

    Returns boolean

  • isOwner - Check if the user is an owner or co-owner.

    Returns boolean

  • isPlus - Check if the user has Plus.

    Returns boolean

  • isStaff - Check if the user is staff.

    Returns boolean

  • isTester - Check if the user is a tester.

    Returns boolean

  • isVerified - Check if the user is verified.

    Returns boolean