Member Update

Event triggerMembers

Triggers when a member is updated.

This trigger will not work if the bot does not have the GUILD_MEMBERS intent enabled.

Outputs

User ID

The ID of the member that was updated

Example: 123456789012345678

Server ID

The ID of the server where the member was updated

Example: 123456789012345678

Nickname

The member's nickname in the server

Example: CoolUser

Username

The member's username

Example: exampleuser

Global Name

The member's global display name

Example: Display Name

User Mention

A mention for the member

Example: <@123456789012345678>

Accent Color

The member's accent color

Example: #1ABC9C

Avatar URL

URL to the member's avatar

Example: https://cdn.discordapp.com/avatars/...

Deaf

Whether the member is server deafened

Example: false

Mute

Whether the member is server muted

Example: false

Pending

Whether the member is pending verification

Example: false

Roles

Comma-separated role IDs for the member

Example: 123456789012345678,234567890123456789

Timed Out

Whether the member is timed out

Example: false

Timed Out Until (Unix)

Unix timestamp until the timeout ends

Example: 1700000000

Timed Out Until (Relative)

Relative time until the timeout ends

Example: in 5 minutes

Build a bot using triggers like Member Update

Use this trigger in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.

Advanced Documentation

This documentation can be useful when using code mode. View as Markdown

ID: member_update

Outputs

FieldInventScript nameValue
User IDuser_ide.g. "123456789012345678"
Server IDserver_ide.g. "123456789012345678"
Nicknamenicknamee.g. "CoolUser"
Usernameusernamee.g. "exampleuser"
Global Nameglobal_namee.g. "Display Name"
User Mentionuser_mentione.g. "<@123456789012345678>"
Accent Coloraccent_colore.g. "#1ABC9C"
Avatar URLavatar_urle.g. "https://cdn.discordapp.com/avatars/..."
Deafdeafe.g. "false"
Mutemutee.g. "false"
Pendingpendinge.g. "false"
Rolesrolese.g. "123456789012345678,234567890123456789"
Timed Outtimed_oute.g. "false"
Timed Out Until (Unix)timed_out_until_unixe.g. "1700000000"
Timed Out Until (Relative)timed_out_until_relativee.g. "in 5 minutes"

Example InventScript

var trigger = member_update()

func main() {
	send_text_message(Args{channel_id: "CHANNEL_ID", message_content: "User ID: " + trigger.user_id})
}

More members triggers