-
Notifications
You must be signed in to change notification settings - Fork 237
Voices
Alexander Maassen edited this page May 22, 2023
·
1 revision
Called with a VoiceStateUpdate
object when a member joins, leaves or moves between voice channels.
// use Discord\Parts\WebSockets\VoiceStateUpdate;
$discord->on(Event::VOICE_STATE_UPDATE, function (VoiceStateUpdate $state, Discord $discord, $oldstate) {
// ...
});
Requires the Intents::GUILD_VOICE_STATES
intent.
Called with a VoiceServerUpdate
object when a voice server is updated in a guild.
// use Discord\Parts\WebSockets\VoiceServerUpdate;
$discord->on(Event::VOICE_SERVER_UPDATE, function (VoiceServerUpdate $guild, Discord $discord) {
// ...
});
Note: This wiki is currently Work In Progress. Consider reading the docs instead.
- Application Command (Slash based)
Command Client (Message based)
- Activity
- Application
- Guild
- Private Channel
- User
Components
-
ActionRow
- Buttons
- Option (commands)
- SelectMenu
- TextInput
Builders