mirror of
https://github.com/NamelessMC/Nameless
synced 2026-08-18 06:29:04 -04:00
25 lines
582 B
PHP
25 lines
582 B
PHP
<?php
|
|
|
|
class UserDeletedEvent extends AbstractEvent implements HasWebhookParams {
|
|
|
|
public User $user;
|
|
|
|
public function __construct(User $user) {
|
|
$this->user = $user;
|
|
}
|
|
|
|
public static function name(): string {
|
|
return 'deleteUser';
|
|
}
|
|
|
|
public function webhookParams(): array {
|
|
return [
|
|
'user_id' => $this->user->data()->id,
|
|
'username' => $this->user->getDisplayname(),
|
|
];
|
|
}
|
|
|
|
public static function description(): string {
|
|
return (new Language())->get('admin', 'delete_hook_info');
|
|
}
|
|
}
|