DiscordPHP Documentation

Errors

Table of Contents

src/Discord/Builders/CommandAttributes.php 2
src/Discord/Builders/CommandBuilder.php 1
src/Discord/Helpers/CacheWrapper.php 1
src/Discord/Parts/Channel/Attachment.php 2
src/Discord/Parts/Channel/Channel.php 5
src/Discord/Parts/Channel/ChannelTrait.php 2
src/Discord/Parts/Channel/Message/MessageCall.php 1
src/Discord/Parts/Channel/Message/MessageInteractionMetadata.php 5
src/Discord/Parts/Channel/Webhook.php 2
src/Discord/Parts/Guild/AuditLog/Entry.php 2
src/Discord/Parts/Guild/AutoModeration/Rule.php 4
src/Discord/Parts/Guild/Guild.php 3
src/Discord/Parts/Guild/GuildPreview.php 2
src/Discord/Parts/Guild/Role.php 2
src/Discord/Parts/Guild/RoleTags.php 6
src/Discord/Parts/Guild/ScheduledEvent.php 4
src/Discord/Parts/Interactions/Command/Choice.php 1
src/Discord/Parts/Interactions/Command/Option.php 2
src/Discord/Parts/Interactions/Request/Resolved.php 1
src/Discord/Parts/User/Activity.php 6
src/Discord/Parts/User/Assets.php 6
src/Discord/Parts/User/Client.php 1
src/Discord/Parts/User/ClientStatus.php 3
src/Discord/Parts/User/Collectibles.php 1
src/Discord/Parts/User/Member.php 5
src/Discord/Parts/User/Nameplate.php 2
src/Discord/Parts/User/PrimaryGuild.php 3
src/Discord/Parts/User/Secrets.php 3
src/Discord/Parts/User/User.php 9
src/Discord/Parts/WebSockets/VoiceStateUpdate.php 1

CommandAttributes.php

Type Line Description
ERROR 48 Tag "@property" with body "@@property ?string[]|null $description_localizations Localization dictionary for the description field. Values follow the same restrictions as description." has error
ERROR 48 Tag "@property" with body "@@property ?string[]|null $name_localizations Localization dictionary for the name field. Values follow the same restrictions as name." has error

CommandBuilder.php

Type Line Description
ERROR 86 Tag "@var" with body "@@var ExCollectionInterface<Option|Option[]|null" has error

CacheWrapper.php

Type Line Description
ERROR 53 Tag "@var" with body "@@var ?Part[]|WeakReference[] Cache Key => Cache Part." has error

Attachment.php

Type Line Description
ERROR 40 Tag "@property" with body "@@property ?int|null $width Width of file (if image)." has error
ERROR 40 Tag "@property" with body "@@property ?int|null $height Height of file (if image)." has error

Channel.php

Type Line Description
ERROR 83 Tag "@property" with body "@@property ?int|null $default_sort_order The default sort order type used to order posts in forum channels." has error
ERROR 83 Tag "@property" with body "@@property ?Reaction|null $default_reaction_emoji Emoji to show in the add reaction button on a thread in a forum channel." has error
ERROR 83 Tag "@property" with body "@@property ?string|null $rtc_region Voice region id for the voice channel, automatic when set to null." has error
ERROR 83 Tag "@property" with body "@@property ?string|null $icon Icon hash." has error
ERROR 83 Tag "@property" with body "@@property ?string|null $topic The topic of the channel (0-4096 characters for forum channels, 0-1024 characters for all others)." has error

ChannelTrait.php

Type Line Description
ERROR 61 Tag "@property" with body "@@property ?string|null $last_message_id The unique identifier of the last message sent in the channel or thread. (may not point to an existing or valid message or thread)." has error
ERROR 61 Tag "@property" with body "@@property ?string|null $name The name of the channel or thread." has error

MessageCall.php

Type Line Description
ERROR 32 Tag "@property" with body "@@property ?Carbon|null $ended_timestamp Time when the call ended (ISO8601 timestamp), or null if ongoing." has error

MessageInteractionMetadata.php

Type Line Description
ERROR 47 Tag "@property-read" with body "@@property-read ?Message|null $interacted_message The message that contained the interactive component (message component interactions only)." has error
ERROR 47 Tag "@property-read" with body "@@property-read ?Message|null $target_message The message the command was run on (message command interactions only)." has error
ERROR 47 Tag "@property-read" with body "@@property-read ?Message|null $original_response_message The original response message (follow-ups only)." has error
ERROR 47 Tag "@property-read" with body "@@property-read ?Channel|null $channel The channel the interaction was sent in." has error
ERROR 47 Tag "@property-read" with body "@@property-read ?Guild|null $guild The guild the interaction was sent in." has error

Webhook.php

Type Line Description
ERROR 51 Tag "@property" with body "@@property ?string|null $channel_id The channel ID this webhook is for, if any." has error
ERROR 51 Tag "@property" with body "@@property ?string|null $guild_id The guild ID this webhook is for, if any." has error

Entry.php

Type Line Description
ERROR 37 Tag "@property" with body "@@property ?string|null $reason Reason for the change (1-512 characters)." has error
ERROR 37 Tag "@property" with body "@@property ?Options|null $options Additional info for certain action types." has error

Rule.php

Type Line Description
ERROR 146 Tag "@return" with body "@@return ExCollectionInterface|?Channel[] A collection of channels exempt from the rule." has error
ERROR 122 Tag "@return" with body "@@return ExCollectionInterface|?Role[] A collection of roles exempt from the rule." has error
ERROR 50 Tag "@property" with body "@@property ExCollectionInterface|?Channel[] $exempt_channels The channel ids that should not be affected by the rule (Maximum of 50)." has error
ERROR 50 Tag "@property" with body "@@property ExCollectionInterface|?Role[] $exempt_roles The role ids that should not be affected by the rule (Maximum of 20)." has error

Guild.php

Type Line Description
ERROR 160 Tag "@property" with body "@@property ?string|null $widget_channel_id Channel that the widget will create an invite to." has error
ERROR 160 Tag "@property" with body "@@property ?string|null $splash_hash The splash hash for the guild." has error
ERROR 160 Tag "@property" with body "@@property ?string|null $icon_hash The icon hash for the guild." has error

GuildPreview.php

Type Line Description
ERROR 75 Tag "@property" with body "@@property ?string|null $splash_hash The splash hash for the guild." has error
ERROR 75 Tag "@property" with body "@@property ?string|null $icon_hash The icon hash for the guild." has error

Role.php

Type Line Description
ERROR 46 Tag "@property" with body "@@property ?string|null $unicode_emoji The unicode emoji for the role." has error
ERROR 46 Tag "@property" with body "@@property ?string|null $icon The URL to the role icon." has error

RoleTags.php

Type Line Description
ERROR 35 Tag "@property" with body "@@property ?true|null $guild_connections Whether this role is a guild's linked role." has error
ERROR 35 Tag "@property" with body "@@property ?true|null $available_for_purchase Whether this role is available for purchase." has error
ERROR 35 Tag "@property" with body "@@property ?string|null $subscription_listing_id The id of this role's subscription sku and listing." has error
ERROR 35 Tag "@property" with body "@@property ?true|null $premium_subscriber Whether this is the guild's Booster role." has error
ERROR 35 Tag "@property" with body "@@property ?string|null $integration_id The id of the integration this role belongs to." has error
ERROR 35 Tag "@property" with body "@@property ?string|null $bot_id The id of the bot this role belongs to." has error

ScheduledEvent.php

Type Line Description
ERROR 54 Tag "@property" with body "@@property ?string|null $image The cover image URL of the scheduled event." has error
ERROR 54 Tag "@property" with body "@@property ?string|null $description The description of the scheduled event (1-1000 characters)." has error
ERROR 54 Tag "@property" with body "@@property ?string|null $creator_id The id of the user that created the scheduled event." has error
ERROR 54 Tag "@property" with body "@@property ?string|null $channel_id The channel id in which the scheduled event will be hosted, or null if scheduled entity type is EXTERNAL." has error

Choice.php

Type Line Description
ERROR 32 Tag "@property" with body "@@property ?string[]|null $name_localizations Localization dictionary for the name field. Values follow the same restrictions as name." has error

Option.php

Type Line Description
ERROR 44 Tag "@property" with body "@@property ?string[]|null $description_localizations Localization dictionary for the description field. Values follow the same restrictions as description." has error
ERROR 44 Tag "@property" with body "@@property ?string[]|null $name_localizations Localization dictionary for the name field. Values follow the same restrictions as name." has error

Resolved.php

Type Line Description
ERROR 45 Tag "@property-read" with body "@@property-read ?Guild|null $guild The guild the interaction was sent in." has error

Activity.php

Type Line Description
ERROR 48 Tag "@property" with body "@@property ?string|null $state_url URL that is linked when clicking on the state text." has error
ERROR 48 Tag "@property" with body "@@property ?string|null $state The user's current party status, or text used for a custom status." has error
ERROR 48 Tag "@property" with body "@@property ?string|null $details_url URL that is linked when clicking on the details text" has error
ERROR 48 Tag "@property" with body "@@property ?string|null $details What the player is currently doing." has error
ERROR 48 Tag "@property" with body "@@property ?int|null $status_display_type Status display type; controls which field is displayed in the user's status text in the member list." has error
ERROR 48 Tag "@property" with body "@@property ?string|null $url Stream url, is validated when type is 1." has error

Assets.php

Type Line Description
ERROR 33 Tag "@property" with body "@@property ?string|null $small_url URL that is opened when clicking on the small image." has error
ERROR 33 Tag "@property" with body "@@property ?string|null $small_text Text displayed when hovering over the small image of the activity." has error
ERROR 33 Tag "@property" with body "@@property ?string|null $small_image See Activity Asset Image." has error
ERROR 33 Tag "@property" with body "@@property ?string|null $large_url URL that is opened when clicking on the large image." has error
ERROR 33 Tag "@property" with body "@@property ?string|null $large_text Text displayed when hovering over the large image of the activity." has error
ERROR 33 Tag "@property" with body "@@property ?string|null $large_image See Activity Asset Image." has error

Client.php

Type Line Description
ERROR 53 Tag "@property" with body "@@property ?string|null $email The email of the client." has error

ClientStatus.php

Type Line Description
ERROR 29 Tag "@property" with body "@@property ?string|null $web User's status set for an active web (browser, bot user) application session." has error
ERROR 29 Tag "@property" with body "@@property ?string|null $mobile User's status set for an active mobile (iOS, Android) application session." has error
ERROR 29 Tag "@property" with body "@@property ?string|null $desktop User's status set for an active desktop (Windows, Linux, Mac) application session." has error

Collectibles.php

Type Line Description
ERROR 25 Tag "@property" with body "@@property ?Nameplate|null $nameplate The nameplate collectible object, if present." has error

Member.php

Type Line Description
ERROR 803 Tag "@return" with body "@@return ?string|null The member avatar's hash or null." has error
ERROR 251 Tag "method" with body "@method Channel|?string $channel The channel to move the member to." has error Unexpected token "?", expected type at offset 8 on line 1
ERROR 74 Tag "@property" with body "@@property ?string|null $avatar_hash The avatar hash of the member or null if member has no guild avatar." has error
ERROR 74 Tag "@property" with body "@@property ?string|null $avatar The avatar URL of the member or null if member has no guild avatar." has error
ERROR 74 Tag "@property" with body "@@property ?string|null $nick The nickname of the member." has error

Nameplate.php

Type Line Description
ERROR 33 Tag "@property" with body "@@property ?string|null $label The label of this nameplate." has error
ERROR 33 Tag "@property" with body "@@property ?string|null $expires_at The date and time when the nameplate expires." has error

PrimaryGuild.php

Type Line Description
ERROR 34 Tag "@property-read" with body "@@property-read ?Guild|null $guild The primary guild, if available." has error
ERROR 34 Tag "@property-read" with body "@@property-read ?string|null $id The identifier of the primary guild." has error
ERROR 34 Tag "@property" with body "@@property ?bool|null $identity_enabled Whether the user is displaying their clan tag. This can be `null` if the system clears the identity, e.g. the server no longer supports tags. This will be `false` if the user manually removes their tag." has error

Secrets.php

Type Line Description
ERROR 27 Tag "@property" with body "@@property ?string|null $match Secret for a specific instanced match." has error
ERROR 27 Tag "@property" with body "@@property ?string|null $spectate Secret for spectating a game." has error
ERROR 27 Tag "@property" with body "@@property ?string|null $join Secret for joining a party." has error

User.php

Type Line Description
ERROR 318 Tag "@return" with body "@@return ?Collectibles|null The collectibles data." has error
ERROR 304 Tag "@return" with body "@@return ?AvatarDecorationData|null The avatar decoration." has error
ERROR 294 Tag "@return" with body "@@return ?string|null The client banner's hash." has error
ERROR 62 Tag "@property" with body "@@property ?PrimaryGuild|null $primary_guild The user's primary guild" has error
ERROR 62 Tag "@property" with body "@@property ?Collectibles|null $collectibles Data for the user's collectibles." has error
ERROR 62 Tag "@property" with body "@@property ?AvatarDecorationData|null $avatar_decoration_data Data for the user's avatar decoration." has error
ERROR 62 Tag "@property" with body "@@property ?string|null $email User email." has error
ERROR 62 Tag "@property" with body "@@property ?int|null $accent_color The user's banner color encoded as an integer representation of hexadecimal color code." has error
ERROR 62 Tag "@property" with body "@@property ?string|null $banner The banner URL of the user." has error

VoiceStateUpdate.php

Type Line Description
ERROR 47 Tag "@property" with body "@@property ?string|null $channel_id Channel ID that the voice state came from, or null if the user is leaving a channel." has error

Search results