Class: User
Hierarchy
↳
User
↳↳
ClientUser
Constructors
constructor
• new User(client
, data
)
Parameters
Name | Type |
---|---|
client | Client |
data | APIUser |
Overrides
Defined in
packages/libcord/src/structures/User.ts:62
Properties
avatar
• avatar: null
| string
hash of user avatar
Defined in
packages/libcord/src/structures/User.ts:20
bot
• bot: boolean
if the user is a bot
Defined in
packages/libcord/src/structures/User.ts:40
client
• Readonly
client: Client
Inherited from
Defined in
packages/libcord/src/structures/Base.ts:8
createAt
• Readonly
createAt: number
the date of the user account was created in timestamp
Defined in
packages/libcord/src/structures/User.ts:50
discriminator
• discriminator: string
discriminator of the user
Defined in
packages/libcord/src/structures/User.ts:30
id
• id: string
the id of the user
Defined in
packages/libcord/src/structures/User.ts:15
publicFlags
• publicFlags: number
user public's flags
Defined in
packages/libcord/src/structures/User.ts:55
system
• system: boolean
if the user are a official discord system user
Defined in
packages/libcord/src/structures/User.ts:45
tag
• tag: string
tag of the user (username#descriminator)
Defined in
packages/libcord/src/structures/User.ts:35
username
• username: string
username of the user
Defined in
packages/libcord/src/structures/User.ts:25
Methods
avatarURL
▸ avatarURL(__namedParameters
): string
get avatar URL
Parameters
Name | Type |
---|---|
__namedParameters | ImageUrlOptions |
Returns
string
Defined in
packages/libcord/src/structures/User.ts:83
toJSON
▸ toJSON(space?
): string
Parameters
Name | Type | Default value |
---|---|---|
space | number | 1 |
Returns
string
Defined in
packages/libcord/src/structures/User.ts:97
toString
▸ toString(): string
Returns
string