diff --git a/src/Parts/AutoModerationActionMetadata.php b/src/Parts/AutoModerationActionMetadata.php index aa183c87..88f4dd04 100644 --- a/src/Parts/AutoModerationActionMetadata.php +++ b/src/Parts/AutoModerationActionMetadata.php @@ -6,6 +6,7 @@ class AutoModerationActionMetadata { - public string $channel_id; - public int $duration_seconds; + public ?string $channel_id; + public ?int $duration_seconds; + public ?string $custom_message; } diff --git a/src/Parts/AutoModerationTriggerMetadata.php b/src/Parts/AutoModerationTriggerMetadata.php index 765acf2f..72d25566 100644 --- a/src/Parts/AutoModerationTriggerMetadata.php +++ b/src/Parts/AutoModerationTriggerMetadata.php @@ -25,6 +25,7 @@ class AutoModerationTriggerMetadata */ public array $allow_list; public int $mention_total_limit; + public bool $mention_raid_protection_enabled; public function setPresets(array $value): void { diff --git a/src/Parts/Guild.php b/src/Parts/Guild.php index cb758ccb..99f7a90a 100644 --- a/src/Parts/Guild.php +++ b/src/Parts/Guild.php @@ -68,6 +68,7 @@ class Guild */ public ?array $stickers; public bool $premium_progress_bar_enabled; + public ?string $safety_alerts_channel_id; public function setVerificationLevel(int $value): void { diff --git a/src/Parts/Interaction.php b/src/Parts/Interaction.php index d0f15445..630988ff 100644 --- a/src/Parts/Interaction.php +++ b/src/Parts/Interaction.php @@ -13,6 +13,7 @@ class Interaction public InteractionTypes $type; public ?InteractionData $data; public ?string $guild_id; + /** @deprecated */ public ?string $channel_id; public ?GuildMember $member; public User $user; @@ -23,6 +24,11 @@ class Interaction public ?string $locale; public string $guild_locale; + /** + * @partial + */ + public Channel $channel; + public function setType(int $value): void { $this->type = InteractionTypes::from($value);