var trigger = member_update()
func main() {
send_text_message(Args{channel_id: "CHANNEL_ID", message_content: "User ID: " + trigger.user_id})
}
Member Update
Triggers when a member is updated.
Outputs
The ID of the member that was updated
Example: 123456789012345678
The ID of the server where the member was updated
Example: 123456789012345678
The member's nickname in the server
Example: CoolUser
The member's username
Example: exampleuser
The member's global display name
Example: Display Name
A mention for the member
Example: <@123456789012345678>
The member's accent color
Example: #1ABC9C
URL to the member's avatar
Example: https://cdn.discordapp.com/avatars/...
Whether the member is server deafened
Example: false
Whether the member is server muted
Example: false
Whether the member is pending verification
Example: false
Comma-separated role IDs for the member
Example: 123456789012345678,234567890123456789
Whether the member is timed out
Example: false
Unix timestamp until the timeout ends
Example: 1700000000
Relative time until the timeout ends
Example: in 5 minutes
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
member_updateOutputs
| Field | InventScript name | Value |
|---|---|---|
| User ID | user_id | e.g. "123456789012345678" |
| Server ID | server_id | e.g. "123456789012345678" |
| Nickname | nickname | e.g. "CoolUser" |
| Username | username | e.g. "exampleuser" |
| Global Name | global_name | e.g. "Display Name" |
| User Mention | user_mention | e.g. "<@123456789012345678>" |
| Accent Color | accent_color | e.g. "#1ABC9C" |
| Avatar URL | avatar_url | e.g. "https://cdn.discordapp.com/avatars/..." |
| Deaf | deaf | e.g. "false" |
| Mute | mute | e.g. "false" |
| Pending | pending | e.g. "false" |
| Roles | roles | e.g. "123456789012345678,234567890123456789" |
| Timed Out | timed_out | e.g. "false" |
| Timed Out Until (Unix) | timed_out_until_unix | e.g. "1700000000" |
| Timed Out Until (Relative) | timed_out_until_relative | e.g. "in 5 minutes" |