Skip to content

Application Commands

Alexander Maassen edited this page May 22, 2023 · 1 revision

Application Command Permissions Update

Called with an CommandPermissions object when an application command's permissions are updated.

$discord->on(Event::APPLICATION_COMMAND_PERMISSIONS_UPDATE, function (CommandPermissions $commandPermission, Discord $discord, ?CommandPermissions $oldCommandPermission) {
    // ...
});
Clone this wiki locally