GuildTrait
Table of Contents
Methods
- getIconAttribute() : string|null
- Returns the guilds icon.
- getRepositoryAttributes() : array<string|int, mixed>
- getSplashAttribute() : string|null
- Returns the guild splash.
- getFeatureAnimatedBannerAttribute() : bool
- Whether the guild has the `ANIMATED_BANNER` feature.
- getFeatureAnimatedIconAttribute() : bool
- Whether the guild has the `ANIMATED_ICON` feature.
- getFeatureApplicationCommandPermissionsV2Attribute() : bool
- Whether the guild has the `APPLICATION_COMMAND_PERMISSIONS_V2` feature.
- getFeatureAutoModerationAttribute() : bool
- Whether the guild has the `AUTO_MODERATION` feature.
- getFeatureBannerAttribute() : bool
- Whether the guild has the `BANNER` feature.
- getFeatureCommunityAttribute() : bool
- Whether the guild has the `COMMUNITY` feature.
- getFeatureCreatorMonetizableProvisionalAttribute() : bool
- Whether the guild has the `CREATOR_MONETIZABLE_PROVISIONAL` feature.
- getFeatureCreatorStorePageAttribute() : bool
- Whether the guild has the `CREATOR_STORE_PAGE` feature.
- getFeatureDeveloperSupportServerAttribute() : bool
- Whether the guild has the `DEVELOPER_SUPPORT_SERVER` feature.
- getFeatureDiscoverableAttribute() : bool
- Whether the guild has the `DISCOVERABLE` feature.
- getFeatureEnhancedRoleColorsAttribute() : bool
- Whether the guild has the `ENHANCED_ROLE_COLORS` feature.
- getFeatureFeaturableAttribute() : bool
- Whether the guild has the `FEATURABLE` feature.
- getFeatureGuestsEnabledAttribute() : bool
- Whether the guild has the `GUESTS_ENABLED` feature.
- getFeatureGuildTagsAttribute() : bool
- Whether the guild has the `GUILD_TAGS` feature.
- getFeatureHasDirectoryEntryAttribute() : bool
- Whether the guild has the `HAS_DIRECTORY_ENTRY` feature.
- getFeatureInvitesDisabledAttribute() : bool
- Whether the guild has the `INVITES_DISABLED` feature.
- getFeatureInviteSplashAttribute() : bool
- Whether the guild has the `INVITE_SPLASH` feature.
- getFeatureLinkedToHubAttribute() : bool
- Whether the guild has the `LINKED_TO_HUB` feature.
- getFeatureMemberVerificationGateEnabledAttribute() : bool
- Whether the guild has the `MEMBER_VERIFICATION_GATE_ENABLED` feature.
- getFeatureMemberVerificationManualApprovalAttribute() : bool
- Whether the guild has the `MEMBER_VERIFICATION_MANUAL_APPROVAL` feature.
- getFeatureMonetizationEnabledAttribute() : bool
- Whether the guild has the `MONETIZATION_ENABLED` feature.
- getFeatureMoreSoundboardAttribute() : bool
- Whether the guild has the `MORE_SOUNDBOARD` feature.
- getFeatureMoreStickersAttribute() : bool
- Whether the guild has the `MORE_STICKERS` feature.
- getFeatureNewsAttribute() : bool
- Whether the guild has the `NEWS` feature.
- getFeaturePartneredAttribute() : bool
- Whether the guild has the `PARTNERED` feature.
- getFeaturePreviewEnabledAttribute() : bool
- Whether the guild has the `PREVIEW_ENABLED` feature.
- getFeaturePrivateThreadsAttribute() : bool
- Whether the guild has the `PRIVATE_THREADS` feature.
- getFeaturePruneRequiresAdminAttribute() : bool
- Whether the guild has the `PRUNE_REQUIRES_ADMIN` feature.
- getFeatureRaidAlertsDisabledAttribute() : bool
- Whether the guild has the `RAID_ALERTS_DISABLED` feature.
- getFeatureRaidAlertsEnabledAttribute() : bool
- Whether the guild has the `RAID_ALERTS_ENABLED` feature.
- getFeatureRoleIconsAttribute() : bool
- Whether the guild has the `ROLE_ICONS` feature.
- getFeatureRoleSubscriptionsAvailableForPurchaseAttribute() : bool
- Whether the guild has the `ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE` feature.
- getFeatureRoleSubscriptionsEnabledAttribute() : bool
- Whether the guild has the `ROLE_SUBSCRIPTIONS_ENABLED` feature.
- getFeatureSoundboardAttribute() : bool
- Whether the guild has the `SOUNDBOARD` feature.
- getFeatureTicketedEventsEnabledAttribute() : bool
- Whether the guild has the `TICKETED_EVENTS_ENABLED` feature.
- getFeatureVanityUrlAttribute() : bool
- Whether the guild has the `VANITY_URL` feature.
- getFeatureVerifiedAttribute() : bool
- Whether the guild has the `VERIFIED` feature.
- getFeatureVipRegionsAttribute() : bool
- Whether the guild has the `VIP_REGIONS` feature.
- getFeatureWelcomeScreenEnabledAttribute() : bool
- Whether the guild has the `WELCOME_SCREEN_ENABLED` feature.
- getIconHashAttribute() : string|null
- Returns the guild icon hash.
- getSplashHashAttribute() : string|null
- Returns the guild splash hash.
Methods
getIconAttribute()
Returns the guilds icon.
public
getIconAttribute([string|null $format = null ][, int $size = 1024 ]) : string|null
Parameters
- $format : string|null = null
-
The image format.
- $size : int = 1024
-
The size of the image.
Return values
string|null —The URL to the guild icon or null.
getRepositoryAttributes()
public
getRepositoryAttributes() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getSplashAttribute()
Returns the guild splash.
public
getSplashAttribute([string $format = 'webp' ][, int $size = 2048 ]) : string|null
Parameters
- $format : string = 'webp'
-
The image format.
- $size : int = 2048
-
The size of the image.
Return values
string|null —The URL to the guild splash or null.
getFeatureAnimatedBannerAttribute()
Whether the guild has the `ANIMATED_BANNER` feature.
protected
getFeatureAnimatedBannerAttribute() : bool
Return values
boolgetFeatureAnimatedIconAttribute()
Whether the guild has the `ANIMATED_ICON` feature.
protected
getFeatureAnimatedIconAttribute() : bool
Return values
boolgetFeatureApplicationCommandPermissionsV2Attribute()
Whether the guild has the `APPLICATION_COMMAND_PERMISSIONS_V2` feature.
protected
getFeatureApplicationCommandPermissionsV2Attribute() : bool
Return values
boolgetFeatureAutoModerationAttribute()
Whether the guild has the `AUTO_MODERATION` feature.
protected
getFeatureAutoModerationAttribute() : bool
Return values
boolgetFeatureBannerAttribute()
Whether the guild has the `BANNER` feature.
protected
getFeatureBannerAttribute() : bool
Return values
boolgetFeatureCommunityAttribute()
Whether the guild has the `COMMUNITY` feature.
protected
getFeatureCommunityAttribute() : bool
Return values
boolgetFeatureCreatorMonetizableProvisionalAttribute()
Whether the guild has the `CREATOR_MONETIZABLE_PROVISIONAL` feature.
protected
getFeatureCreatorMonetizableProvisionalAttribute() : bool
Return values
boolgetFeatureCreatorStorePageAttribute()
Whether the guild has the `CREATOR_STORE_PAGE` feature.
protected
getFeatureCreatorStorePageAttribute() : bool
Return values
boolgetFeatureDeveloperSupportServerAttribute()
Whether the guild has the `DEVELOPER_SUPPORT_SERVER` feature.
protected
getFeatureDeveloperSupportServerAttribute() : bool
Return values
boolgetFeatureDiscoverableAttribute()
Whether the guild has the `DISCOVERABLE` feature.
protected
getFeatureDiscoverableAttribute() : bool
Return values
boolgetFeatureEnhancedRoleColorsAttribute()
Whether the guild has the `ENHANCED_ROLE_COLORS` feature.
protected
getFeatureEnhancedRoleColorsAttribute() : bool
Return values
boolgetFeatureFeaturableAttribute()
Whether the guild has the `FEATURABLE` feature.
protected
getFeatureFeaturableAttribute() : bool
Return values
boolgetFeatureGuestsEnabledAttribute()
Whether the guild has the `GUESTS_ENABLED` feature.
protected
getFeatureGuestsEnabledAttribute() : bool
Return values
boolgetFeatureGuildTagsAttribute()
Whether the guild has the `GUILD_TAGS` feature.
protected
getFeatureGuildTagsAttribute() : bool
Return values
boolgetFeatureHasDirectoryEntryAttribute()
Whether the guild has the `HAS_DIRECTORY_ENTRY` feature.
protected
getFeatureHasDirectoryEntryAttribute() : bool
Return values
boolgetFeatureInvitesDisabledAttribute()
Whether the guild has the `INVITES_DISABLED` feature.
protected
getFeatureInvitesDisabledAttribute() : bool
Return values
boolgetFeatureInviteSplashAttribute()
Whether the guild has the `INVITE_SPLASH` feature.
protected
getFeatureInviteSplashAttribute() : bool
Return values
boolgetFeatureLinkedToHubAttribute()
Whether the guild has the `LINKED_TO_HUB` feature.
protected
getFeatureLinkedToHubAttribute() : bool
Return values
boolgetFeatureMemberVerificationGateEnabledAttribute()
Whether the guild has the `MEMBER_VERIFICATION_GATE_ENABLED` feature.
protected
getFeatureMemberVerificationGateEnabledAttribute() : bool
Return values
boolgetFeatureMemberVerificationManualApprovalAttribute()
Whether the guild has the `MEMBER_VERIFICATION_MANUAL_APPROVAL` feature.
protected
getFeatureMemberVerificationManualApprovalAttribute() : bool
Return values
boolgetFeatureMonetizationEnabledAttribute()
Whether the guild has the `MONETIZATION_ENABLED` feature.
protected
getFeatureMonetizationEnabledAttribute() : bool
Return values
boolgetFeatureMoreSoundboardAttribute()
Whether the guild has the `MORE_SOUNDBOARD` feature.
protected
getFeatureMoreSoundboardAttribute() : bool
Return values
boolgetFeatureMoreStickersAttribute()
Whether the guild has the `MORE_STICKERS` feature.
protected
getFeatureMoreStickersAttribute() : bool
Return values
boolgetFeatureNewsAttribute()
Whether the guild has the `NEWS` feature.
protected
getFeatureNewsAttribute() : bool
Return values
boolgetFeaturePartneredAttribute()
Whether the guild has the `PARTNERED` feature.
protected
getFeaturePartneredAttribute() : bool
Return values
boolgetFeaturePreviewEnabledAttribute()
Whether the guild has the `PREVIEW_ENABLED` feature.
protected
getFeaturePreviewEnabledAttribute() : bool
Return values
boolgetFeaturePrivateThreadsAttribute()
Whether the guild has the `PRIVATE_THREADS` feature.
protected
getFeaturePrivateThreadsAttribute() : bool
Return values
boolgetFeaturePruneRequiresAdminAttribute()
Whether the guild has the `PRUNE_REQUIRES_ADMIN` feature.
protected
getFeaturePruneRequiresAdminAttribute() : bool
Return values
boolgetFeatureRaidAlertsDisabledAttribute()
Whether the guild has the `RAID_ALERTS_DISABLED` feature.
protected
getFeatureRaidAlertsDisabledAttribute() : bool
Return values
boolgetFeatureRaidAlertsEnabledAttribute()
Whether the guild has the `RAID_ALERTS_ENABLED` feature.
protected
getFeatureRaidAlertsEnabledAttribute() : bool
Return values
boolgetFeatureRoleIconsAttribute()
Whether the guild has the `ROLE_ICONS` feature.
protected
getFeatureRoleIconsAttribute() : bool
Return values
boolgetFeatureRoleSubscriptionsAvailableForPurchaseAttribute()
Whether the guild has the `ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE` feature.
protected
getFeatureRoleSubscriptionsAvailableForPurchaseAttribute() : bool
Return values
boolgetFeatureRoleSubscriptionsEnabledAttribute()
Whether the guild has the `ROLE_SUBSCRIPTIONS_ENABLED` feature.
protected
getFeatureRoleSubscriptionsEnabledAttribute() : bool
Return values
boolgetFeatureSoundboardAttribute()
Whether the guild has the `SOUNDBOARD` feature.
protected
getFeatureSoundboardAttribute() : bool
Return values
boolgetFeatureTicketedEventsEnabledAttribute()
Whether the guild has the `TICKETED_EVENTS_ENABLED` feature.
protected
getFeatureTicketedEventsEnabledAttribute() : bool
Return values
boolgetFeatureVanityUrlAttribute()
Whether the guild has the `VANITY_URL` feature.
protected
getFeatureVanityUrlAttribute() : bool
Return values
boolgetFeatureVerifiedAttribute()
Whether the guild has the `VERIFIED` feature.
protected
getFeatureVerifiedAttribute() : bool
Return values
boolgetFeatureVipRegionsAttribute()
Whether the guild has the `VIP_REGIONS` feature.
protected
getFeatureVipRegionsAttribute() : bool
Return values
boolgetFeatureWelcomeScreenEnabledAttribute()
Whether the guild has the `WELCOME_SCREEN_ENABLED` feature.
protected
getFeatureWelcomeScreenEnabledAttribute() : bool
Return values
boolgetIconHashAttribute()
Returns the guild icon hash.
protected
getIconHashAttribute() : string|null
Return values
string|null —The guild icon hash or null.
getSplashHashAttribute()
Returns the guild splash hash.
protected
getSplashHashAttribute() : string|null
Return values
string|null —The guild splash hash or null.