-
Notifications
You must be signed in to change notification settings - Fork 237
Webhooks
Alexander Maassen edited this page May 22, 2023
·
1 revision
Called with a Guild
and Channel
object when a guild channel's webhooks are is created, updated, or deleted.
$discord->on(Event::WEBHOOKS_UPDATE, function (object $guild, Discord $discord, object $channel) {
if ($guild instanceof Guild && $channel instanceof Channel) {
// $guild and $channel was cached
}
// $guild and/or $channel was not in cache:
else {
// {
// "guild_id": "" // webhook guild ID
// "channel_id": "", // webhook channel ID,
// }
}
});
Requires the Intents::GUILD_WEBHOOKS
intent.
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