Skip to content

Member

This data type describes all available data about the member and operations over them.

Properties

PropertyTypeDescription
idNumberUnique identifier
mentionStringMention string
nameStringName
displayNameStringDisplay Name
nicknameStringNickname on the server or original name
tagStringFull tag in the format Nickname#1234
botBooleantrue if this member is bot
moderatorBooleantrue if this member is server moderator
discriminatorStringDiscriminator (4 digits after #)
joinedAtDateTimeJoin date and time
createdAtDateTimeRegistration date and time
statusStringStatus (Online, Idle, DnD, Offline)
avatarUrlStringAvatar URL
guildAvatarUrlStringPer-Guild Avatar URL or original one if it is not set
bannerUrlStringProfile Banner URL
accentColorStringProfile Accent Color in #RRGGBB format
bioStringBio specified in /user
rankRankRanking data
rolesList<Role>List of assigned roles
guildGuildServer information
attributesMemberAttributesAttributes storage
activitiesList<Activity>Member activities
voiceStateMemberVoiceStateMember voice channel connectivity state
primaryGuildMemberPrimaryGuildMember primary guild (Server Tag)
flagsList<UserFlag>Member flags

Methods

hasRole(Role)

Checks if member has this role.

Returns: Boolean

hasRoles(Roles)

Checks if member has all of those roles.

Returns: Boolean

hasAnyRole(Roles)

Checks if member has any of those roles.

Returns: Boolean

hasPermission(Name)

Checks if member has this permission over all his roles.

Returns: Boolean

hasPermissions(Names)

Checks if member has all specified permissions over all his roles.

Returns: Boolean

hasPermission(Channel, Name)

Checks if member has this permission in the channel specified.

Returns: Boolean

hasPermissions(Channel, Names)

Checks if member has all specified permissions in the channel specified.

Returns: Boolean

hasFlag(Flag)

Checks if member has this flag.

Returns: Boolean

addRole(Role)

Adds role to the member. Returns true if member roles were updated.

Returns: Boolean

Warning! Quota

Following methods have shared quota and can only be invoked 1 times in the same template:

  • addRole
  • addRoles
  • addTempRole
  • addTempRoles
  • removeRole
  • removeRoles
  • modifyRoles

Active Bonus on the server increases quota to 2.

addRoles(Roles)

Adds roles to the member. Returns true if member roles were updated.

Returns: Boolean

Warning! Quota

Following methods have shared quota and can only be invoked 1 times in the same template:

  • addRole
  • addRoles
  • addTempRole
  • addTempRoles
  • removeRole
  • removeRoles
  • modifyRoles

Active Bonus on the server increases quota to 2.

addTempRole(Role, Duration)

Adds role to the member temporary. Returns true if member roles were updated (not less than 15 seconds).

Returns: Boolean

Warning! Quota

Following methods have shared quota and can only be invoked 1 times in the same template:

  • addRole
  • addRoles
  • addTempRole
  • addTempRoles
  • removeRole
  • removeRoles
  • modifyRoles

Active Bonus on the server increases quota to 2.

addTempRoles(Roles, Duration)

Adds roles to the member temporary. Returns true if member roles were updated (not less than 15 seconds).

Returns: Boolean

Warning! Quota

Following methods have shared quota and can only be invoked 1 times in the same template:

  • addRole
  • addRoles
  • addTempRole
  • addTempRoles
  • removeRole
  • removeRoles
  • modifyRoles

Active Bonus on the server increases quota to 2.

removeRole(Role)

Removes role from the member. Returns true if member roles were updated.

Returns: Boolean

Warning! Quota

Following methods have shared quota and can only be invoked 1 times in the same template:

  • addRole
  • addRoles
  • addTempRole
  • addTempRoles
  • removeRole
  • removeRoles
  • modifyRoles

Active Bonus on the server increases quota to 2.

removeRoles(Roles)

Removes roles from the member. Returns true if member roles were updated.

Returns: Boolean

Warning! Quota

Following methods have shared quota and can only be invoked 1 times in the same template:

  • addRole
  • addRoles
  • addTempRole
  • addTempRoles
  • removeRole
  • removeRoles
  • modifyRoles

Active Bonus on the server increases quota to 2.

modifyRoles(Add, Remove)

Adds and removes roles from the member automatically. Returns true if member roles were updated.

Returns: Boolean

Warning! Quota

Following methods have shared quota and can only be invoked 1 times in the same template:

  • addRole
  • addRoles
  • addTempRole
  • addTempRoles
  • removeRole
  • removeRoles
  • modifyRoles

Active Bonus on the server increases quota to 2.

modifyNickname(Name)

Changes member's nickname. Nickname length must be in range 2 to 32.

Returns true if name was updated.

Returns: Boolean

Warning! Quota

This method can only be invoked 1 times in the same template.

getAttribute(Key)

Returns member attribute (stored value).

Returns: MemberAttribute

Warning! Quota

This method can only be invoked 5 times in the same template.

Active Bonus on the server increases quota to 10.

All rights sniffed.