Skip to content

MemberAttribute

This data type describes all available data about the member attribute. Attributes are used to store custom data tied to member.

INFO

For more information about member attributes and how to use them, check Member Attributes article.

Properties

PropertyTypeDescription
valueMember, Role, TextChannel, NewsChannel, VoiceChannel, StageChannel, ForumChannel, MediaChannel, ThreadChannel, Category, Number, String, BooleanCurrent value
updatedAtDateTimeUpdate date and time

Methods

update(Value)

Updates attribute value. For string, max length is 2000 characters.

Returns the same value.

Returns: Member, Role, TextChannel, NewsChannel, VoiceChannel, StageChannel, ForumChannel, MediaChannel, ThreadChannel, Category, Number, String, Boolean

Warning! Quota

You can only update attribute value one single time using any method.

increment(Number)

Increments the attribute by specified amount and returns new value. The counting starts from 0 if current value wasn't a number.

Returns: Number

Warning! Quota

You can only update attribute value one single time using any method.

decrement(Number)

Decrements the attribute by specified amount and returns new value. The counting starts from 0 if current value wasn't a number.

Returns: Number

Warning! Quota

You can only update attribute value one single time using any method.

clear()

Clears attribute and deletes it from database.

Warning! Quota

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

All rights sniffed.