Voice State Update

Event triggerChannels

Triggers when a member joins, leaves, or moves voice channels.

Update Type is Join, Leave, Move, or Update (mute, deafen, stream, etc. without changing channel). Previous Channel ID is empty on Join.

Outputs

Update Type

Join, Leave, Move, or Update

Example: Join

Previous Channel ID

The voice channel the user was in before this update (empty on Join)

Example: 123456789012345678

User ID

The ID of the user whose voice state changed

Example: 123456789012345678

Server ID

The ID of the server

Example: 123456789012345678

Channel ID

The current voice channel ID (empty on leave)

Example: 234567890123456789

Session ID

The voice session ID

Example: abcd1234

Mute

Whether the user is server muted

Example: false

Deaf

Whether the user is server deafened

Example: false

Self Mute

Whether the user self-muted

Example: true

Self Deaf

Whether the user self-deafened

Example: false

Self Video

Whether the user has video on

Example: false

Self Stream

Whether the user is streaming

Example: false

Suppressed

Whether the user is suppressed

Example: false

Request to Speak Timestamp (Unix)

Unix timestamp for request to speak

Example: 1700000000

Build a bot using triggers like Voice State 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: voice_state_update

Outputs

FieldInventScript nameValue
Update Typeupdate_typee.g. "Join"
Previous Channel IDprevious_channel_ide.g. "123456789012345678"
User IDuser_ide.g. "123456789012345678"
Server IDserver_ide.g. "123456789012345678"
Channel IDchannel_ide.g. "234567890123456789"
Session IDsession_ide.g. "abcd1234"
Mutemutee.g. "false"
Deafdeafe.g. "false"
Self Muteself_mutee.g. "true"
Self Deafself_deafe.g. "false"
Self Videoself_videoe.g. "false"
Self Streamself_streame.g. "false"
Suppressedsuppressede.g. "false"
Request to Speak Timestamp (Unix)request_to_speak_timestamp_unixe.g. "1700000000"

Example InventScript

var trigger = voice_state_update()

func main() {
	send_text_message(Args{
		channel_id:      trigger.channel_id,
		message_content: "Update Type: " + trigger.update_type,
	})
}

More channels triggers