Skip to content

Commit

Permalink
Merge pull request #42 from dc-Ragnarok/chore/api-updates-may-2023
Browse files Browse the repository at this point in the history
Api updates
  • Loading branch information
Exanlv authored Jun 4, 2023
2 parents c3e431c + ec37405 commit 1406725
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Parts/AutoModerationActionMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
1 change: 1 addition & 0 deletions src/Parts/AutoModerationTriggerMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
1 change: 1 addition & 0 deletions src/Parts/Guild.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
6 changes: 6 additions & 0 deletions src/Parts/Interaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit 1406725

Please sign in to comment.