Birb / User
Class: User
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new User(client
, user
)
Parameters
Defined in
src/classes/User.ts:47
Properties
avatarHash
• avatarHash: undefined
| null
| string
The user’s avatar hash
Defined in
src/classes/User.ts:29
bannerHash
• Optional
bannerHash: null
| string
The user’s banner hash
Defined in
src/classes/User.ts:41
bot
• bot: boolean
= false
Whether or not the user is a bot account
Defined in
src/classes/User.ts:33
client
• client: Birb
The Birb client
Defined in
src/classes/User.ts:9
discriminator
• discriminator: string
The user’s discriminator (e.g. Username#0000)
Defined in
src/classes/User.ts:21
flags
• Optional
flags: UserFlags
The flags that are added to the user’s account
Defined in
src/classes/User.ts:45
id
• Readonly
id: string
The user’s ID (snowflake) as a string
Defined in
src/classes/User.ts:13
system
• system: boolean
= false
Whether or not the user is a part of the Discord Urgent Message System
Defined in
src/classes/User.ts:37
tag
• tag: string
The user’s tag (e.g. Username#0000)
Defined in
src/classes/User.ts:25
username
• username: string
The user’s username (e.g. Username#0000)
Defined in
src/classes/User.ts:17
Methods
isAutomated
▸ isAutomated(): boolean
Returns
boolean
true
if the user is automated, false
otherwise.
Defined in
src/classes/User.ts:88
toString
▸ toString(): string
Returns
string
Defined in
src/classes/User.ts:92