Member

Create a formatted Member Object

Constructor

new Member() → {User}

Returns:
Type: 
User
Example
const member = interaction.member; // returns the member object
const memberFlags = interaction.member.flags; // returns the member flags

Members

avatar :string

the avatar hash of this member

Type:
  • string

(nullable) avatarURL :string

the avatar url of the member

Type:
  • string

communicationDisabledUntil :number

when the user's timeout will expire and the user will be able to communicate in the guild again, null or a time in the past if the user is not timed out

Type:
  • number

deaf :boolean

whether the user is deafened in voice channels

Type:
  • boolean

flags :number

the flags on a user's account

Type:
  • number

id :number

the id of this member

Type:
  • number

isPending :boolean

whether the user has not yet passed the guild's Membership Screening requirements

Type:
  • boolean

joinedAt :number

when the user joined the guild

Type:
  • number

joinedAtDate :Date

The date of the member's creation

Type:
  • Date

muted :boolean

whether the user is muted in voice channels

Type:
  • boolean

nickname :string

this user's guild nickname

Type:
  • string

pending :string

whether the user has not yet passed the guild's Membership Screening requirements

Type:
  • string

permissions :object

total permissions of the member in the channel, including overwrites, returned when in the interaction object

Type:
  • object

premiumSince :number

when the user started boosting the guild

Type:
  • number

roles :array

array of role object ids

Type:
  • array