Skip to content

Commit

Permalink
Deprecate Guild::feature_seven_day_thread_archive and Guild::feature_…
Browse files Browse the repository at this point in the history
…three_day_thread_archive
  • Loading branch information
SQKo committed Aug 17, 2022
1 parent 7730cf9 commit 3943958
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Discord/Parts/Guild/Guild.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@
* @property bool $feature_preview_enabled Guild can be previewed before joining via membership screening or the directory.
* @property bool $feature_private_threads Guild has access to create private threads.
* @property bool $feature_role_icons Guild is able to set role icons.
* @property bool $feature_seven_day_thread_archive Guild has access to the seven day archive time for threads.
* @property bool $feature_three_day_thread_archive Guild has access to the three day archive time for threads.
* @property bool $feature_ticketed_events_enabled Guild has enabled ticketed events.
* @property bool $feature_vanity_url Guild has access to set a vanity url.
* @property bool $feature_verified Guild is verified.
Expand Down Expand Up @@ -244,8 +242,6 @@ class Guild extends Part
'feature_preview_enabled',
'feature_private_threads',
'feature_role_icons',
'feature_seven_day_thread_archive',
'feature_three_day_thread_archive',
'feature_ticketed_events_enabled',
'feature_vanity_url',
'feature_verified',
Expand Down Expand Up @@ -525,11 +521,17 @@ protected function getFeatureMoreStickersAttribute(): bool
return in_array('MORE_STICKERS', $this->features);
}

/**
* @deprecated 7.2.1
*/
protected function getFeatureThreeDayThreadArchiveAttribute(): bool
{
return in_array('THREE_DAY_THREAD_ARCHIVE', $this->features);
}

/**
* @deprecated 7.2.1
*/
protected function getFeatureSevenDayThreadArchiveAttribute(): bool
{
return in_array('SEVEN_DAY_THREAD_ARCHIVE', $this->features);
Expand Down

0 comments on commit 3943958

Please sign in to comment.