new Member(memberData, client) → {Member.<User, Array.<number>, (String|undefined), Date, boolean>}
Member constructor
Parameters:
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
memberData |
Object
|
The member data
|
||||||||||||||||||
client |
Client
|
The client instance |
Members
(readonly) isOwner :boolean
Whether the user is the owner of the server
Type:
-
boolean
(readonly) joinedAt :Date
The date the user joined the server
Type:
-
Date
(readonly) nickname :string
The nickname of the user
Type:
-
string
(readonly) raw :Object
The raw member data
Type:
-
Object
(readonly) roles :Array.<number>
The role IDs
Type:
-
Array.<number>
(readonly) serverId :string
The server ID
Type:
-
string
(readonly) userId :string
The user ID
Type:
-
string