Skip to content

Commit

Permalink
Deprecate Guild::feature_commerce
Browse files Browse the repository at this point in the history
  • Loading branch information
SQKo committed Aug 17, 2022
1 parent 90670fa commit 7730cf9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Discord/Parts/Guild/Guild.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@
* @property bool $feature_animated_icon Guild has access to set an animated guild icon.
* @property bool $feature_auto_moderation Guild has set up auto moderation rules.
* @property bool $feature_banner Guild has access to set a guild banner image.
* @property bool $feature_commerce Guild has access to use commerce features (create store channels).
* @property bool $feature_community Guild can enable welcome screen, Membership Screening, stage channels and discovery, and receives community updates.
* @property bool $feature_discoverable Guild is able to be discovered in the directory.
* @property bool $feature_featurable Guild is able to be featured in the directory.
Expand Down Expand Up @@ -231,7 +230,6 @@ class Guild extends Part
'feature_animated_icon',
'feature_auto_moderation',
'feature_banner',
'feature_commerce',
'feature_community',
'feature_discoverable',
'feature_featurable',
Expand Down Expand Up @@ -434,6 +432,9 @@ protected function getFeatureBannerAttribute(): bool
return in_array('BANNER', $this->features);
}

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

0 comments on commit 7730cf9

Please sign in to comment.