-
Notifications
You must be signed in to change notification settings - Fork 237
Presences
Alexander Maassen edited this page May 22, 2023
·
1 revision
Called with a PresenceUpdate
object when a member's presence is updated.
$discord->on(Event::PRESENCE_UPDATE, function (PresenceUpdate $presence, Discord $discord) {
// ...
});
Requires the Intents::GUILD_PRESENCES
intent. This intent is a priviliged intent, it must be enabled in your Discord Bot developer settings.
Called with a TypingStart
object when a user starts typing in a channel.
// use Discord\Parts\WebSockets\TypingStart;
$discord->on(Event::TYPING_START, function (TypingStart $typing, Discord $discord) {
// ...
});
Requires the Intents::GUILD_MESSAGE_TYPING
intent.
Called with a User
object when the Bot's user properties change.
$discord->on(Event::USER_UPDATE, function (User $user, Discord $discord, ?User $oldUser) {
// ...
});
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