Member

Member

new Member(memberData, client) → {Member.<User, Array.<number>, (String|undefined), Date, boolean>}

Member constructor

Source:
Parameters:
Name Type Description
memberData Object

The member data

Name Type Description
user User

The user

roleIds Array.<number>

The role ids

nickname String | undefined

The nickname of the user

joinedAt Date

The date the user joined the server

isOwner boolean | undefined

Whether the user is the owner of the server

client Client

The client instance

Returns:
Type:
Member.<User, Array.<number>, (String|undefined), Date, boolean>

The user, the role ids, the nickname of the user, the date the user joined the server, whether the user is the owner of the server

Members

(readonly) client :Client

The Client instance

Source:
Type:

(readonly) isOwner :boolean

Whether the user is the owner of the server

Source:
Type:
  • boolean

(readonly) joinedAt :Date

The date the user joined the server

Source:
Type:
  • Date

(readonly) nickname :string

The nickname of the user

Source:
Type:
  • string

(readonly) raw :Object

The raw member data

Source:
Type:
  • Object

(readonly) roles :Array.<number>

The role IDs

Source:
Type:
  • Array.<number>

(readonly) serverId :string

The server ID

Source:
Type:
  • string

(readonly) user :User

The user

Source:
Type:

(readonly) userId :string

The user ID

Source:
Type:
  • string