DiscordPHP Documentation

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
inheritDoc
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
bool

getFeatureAnimatedIconAttribute()

Whether the guild has the `ANIMATED_ICON` feature.

protected getFeatureAnimatedIconAttribute() : bool
Return values
bool

getFeatureApplicationCommandPermissionsV2Attribute()

Whether the guild has the `APPLICATION_COMMAND_PERMISSIONS_V2` feature.

protected getFeatureApplicationCommandPermissionsV2Attribute() : bool
Return values
bool

getFeatureAutoModerationAttribute()

Whether the guild has the `AUTO_MODERATION` feature.

protected getFeatureAutoModerationAttribute() : bool
Return values
bool

getFeatureBannerAttribute()

Whether the guild has the `BANNER` feature.

protected getFeatureBannerAttribute() : bool
Return values
bool

getFeatureCommunityAttribute()

Whether the guild has the `COMMUNITY` feature.

protected getFeatureCommunityAttribute() : bool
Return values
bool

getFeatureCreatorMonetizableProvisionalAttribute()

Whether the guild has the `CREATOR_MONETIZABLE_PROVISIONAL` feature.

protected getFeatureCreatorMonetizableProvisionalAttribute() : bool
Return values
bool

getFeatureCreatorStorePageAttribute()

Whether the guild has the `CREATOR_STORE_PAGE` feature.

protected getFeatureCreatorStorePageAttribute() : bool
Return values
bool

getFeatureDeveloperSupportServerAttribute()

Whether the guild has the `DEVELOPER_SUPPORT_SERVER` feature.

protected getFeatureDeveloperSupportServerAttribute() : bool
Return values
bool

getFeatureDiscoverableAttribute()

Whether the guild has the `DISCOVERABLE` feature.

protected getFeatureDiscoverableAttribute() : bool
Return values
bool

getFeatureEnhancedRoleColorsAttribute()

Whether the guild has the `ENHANCED_ROLE_COLORS` feature.

protected getFeatureEnhancedRoleColorsAttribute() : bool
Return values
bool

getFeatureFeaturableAttribute()

Whether the guild has the `FEATURABLE` feature.

protected getFeatureFeaturableAttribute() : bool
Return values
bool

getFeatureGuestsEnabledAttribute()

Whether the guild has the `GUESTS_ENABLED` feature.

protected getFeatureGuestsEnabledAttribute() : bool
Return values
bool

getFeatureGuildTagsAttribute()

Whether the guild has the `GUILD_TAGS` feature.

protected getFeatureGuildTagsAttribute() : bool
Return values
bool

getFeatureHasDirectoryEntryAttribute()

Whether the guild has the `HAS_DIRECTORY_ENTRY` feature.

protected getFeatureHasDirectoryEntryAttribute() : bool
Return values
bool

getFeatureInvitesDisabledAttribute()

Whether the guild has the `INVITES_DISABLED` feature.

protected getFeatureInvitesDisabledAttribute() : bool
Return values
bool

getFeatureInviteSplashAttribute()

Whether the guild has the `INVITE_SPLASH` feature.

protected getFeatureInviteSplashAttribute() : bool
Return values
bool

getFeatureLinkedToHubAttribute()

Whether the guild has the `LINKED_TO_HUB` feature.

protected getFeatureLinkedToHubAttribute() : bool
Return values
bool

getFeatureMemberVerificationGateEnabledAttribute()

Whether the guild has the `MEMBER_VERIFICATION_GATE_ENABLED` feature.

protected getFeatureMemberVerificationGateEnabledAttribute() : bool
Return values
bool

getFeatureMemberVerificationManualApprovalAttribute()

Whether the guild has the `MEMBER_VERIFICATION_MANUAL_APPROVAL` feature.

protected getFeatureMemberVerificationManualApprovalAttribute() : bool
Return values
bool

getFeatureMonetizationEnabledAttribute()

Whether the guild has the `MONETIZATION_ENABLED` feature.

protected getFeatureMonetizationEnabledAttribute() : bool
Return values
bool

getFeatureMoreSoundboardAttribute()

Whether the guild has the `MORE_SOUNDBOARD` feature.

protected getFeatureMoreSoundboardAttribute() : bool
Return values
bool

getFeatureMoreStickersAttribute()

Whether the guild has the `MORE_STICKERS` feature.

protected getFeatureMoreStickersAttribute() : bool
Return values
bool

getFeatureNewsAttribute()

Whether the guild has the `NEWS` feature.

protected getFeatureNewsAttribute() : bool
Return values
bool

getFeaturePartneredAttribute()

Whether the guild has the `PARTNERED` feature.

protected getFeaturePartneredAttribute() : bool
Return values
bool

getFeaturePreviewEnabledAttribute()

Whether the guild has the `PREVIEW_ENABLED` feature.

protected getFeaturePreviewEnabledAttribute() : bool
Return values
bool

getFeaturePrivateThreadsAttribute()

Whether the guild has the `PRIVATE_THREADS` feature.

protected getFeaturePrivateThreadsAttribute() : bool
Return values
bool

getFeaturePruneRequiresAdminAttribute()

Whether the guild has the `PRUNE_REQUIRES_ADMIN` feature.

protected getFeaturePruneRequiresAdminAttribute() : bool
Return values
bool

getFeatureRaidAlertsDisabledAttribute()

Whether the guild has the `RAID_ALERTS_DISABLED` feature.

protected getFeatureRaidAlertsDisabledAttribute() : bool
Return values
bool

getFeatureRaidAlertsEnabledAttribute()

Whether the guild has the `RAID_ALERTS_ENABLED` feature.

protected getFeatureRaidAlertsEnabledAttribute() : bool
Return values
bool

getFeatureRoleIconsAttribute()

Whether the guild has the `ROLE_ICONS` feature.

protected getFeatureRoleIconsAttribute() : bool
Return values
bool

getFeatureRoleSubscriptionsAvailableForPurchaseAttribute()

Whether the guild has the `ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE` feature.

protected getFeatureRoleSubscriptionsAvailableForPurchaseAttribute() : bool
Return values
bool

getFeatureRoleSubscriptionsEnabledAttribute()

Whether the guild has the `ROLE_SUBSCRIPTIONS_ENABLED` feature.

protected getFeatureRoleSubscriptionsEnabledAttribute() : bool
Return values
bool

getFeatureSoundboardAttribute()

Whether the guild has the `SOUNDBOARD` feature.

protected getFeatureSoundboardAttribute() : bool
Return values
bool

getFeatureTicketedEventsEnabledAttribute()

Whether the guild has the `TICKETED_EVENTS_ENABLED` feature.

protected getFeatureTicketedEventsEnabledAttribute() : bool
Return values
bool

getFeatureVanityUrlAttribute()

Whether the guild has the `VANITY_URL` feature.

protected getFeatureVanityUrlAttribute() : bool
Return values
bool

getFeatureVerifiedAttribute()

Whether the guild has the `VERIFIED` feature.

protected getFeatureVerifiedAttribute() : bool
Return values
bool

getFeatureVipRegionsAttribute()

Whether the guild has the `VIP_REGIONS` feature.

protected getFeatureVipRegionsAttribute() : bool
Return values
bool

getFeatureWelcomeScreenEnabledAttribute()

Whether the guild has the `WELCOME_SCREEN_ENABLED` feature.

protected getFeatureWelcomeScreenEnabledAttribute() : bool
Return values
bool

getIconHashAttribute()

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.

On this page

Search results