DiscordPHP Documentation

Deprecated

Table of Contents

src/Discord/Builders/CommandAttributes.php
src/Discord/Builders/Components/Component.php
src/Discord/Builders/MessageBuilder.php
src/Discord/Discord.php
src/Discord/Parts/Channel/Channel.php
src/Discord/Parts/Channel/Message.php
src/Discord/Parts/Embed/Embed.php
src/Discord/Parts/Guild/Guild.php
src/Discord/Parts/Part.php
src/Discord/Parts/Permissions/Permission.php
src/Discord/Parts/Thread/Thread.php
src/Discord/Parts/User/Activity.php
src/Discord/Parts/User/Member.php
src/Discord/Repository/AbstractRepositoryTrait.php
src/Discord/Voice/VoiceClient.php

CommandAttributes.php

Line Element Reason
181 CommandAttributes::setDefaultPermission()

See CommandAttributes::setDefaultMemberPermissions().

Component.php

Line Element Reason
27 Component

Use ComponentObject instead.

48 Component::TYPE_SELECT_MENU

Use Component::TYPE_STRING_SELECT

MessageBuilder.php

Line Element Reason
826 MessageBuilder::_setFlags()

Use MessageBuilder::setFlags()

Discord.php

Line Element Reason
1617 Discord::getHttp()

Use Discord::getHttpClient()

Channel.php

Line Element Reason
1285 Channel::sendEmbed()

Use Channel::sendMessage with MessageBuilder::addEmbed()

1305 Channel::sendFile()

Use Channel::sendMessage to send files.

1397 Channel::allowText()

Use Channel::isTextBased()

1409 Channel::allowVoice()

Use Channel::isVoiceBased()

1421 Channel::allowInvite()

Use Channel::canInvite()

124 Channel::TYPE_TEXT

Use Channel::TYPE_GUILD_TEXT

126 Channel::TYPE_VOICE

Use Channel::TYPE_GUILD_VOICE

128 Channel::TYPE_GROUP

Use Channel::TYPE_GROUP_DM

130 Channel::TYPE_CATEGORY

Use Channel::TYPE_GUILD_CATEGORY

132 Channel::TYPE_NEWS

Use Channel::TYPE_GUILD_ANNOUNCEMENT

134 Channel::TYPE_ANNOUNCEMENT

Use Channel::TYPE_GUILD_ANNOUNCEMENT

136 Channel::TYPE_NEWS_THREAD

Use Channel::TYPE_ANNOUNCEMENT_THREAD

138 Channel::TYPE_STAGE_CHANNEL

Use Channel::TYPE_GUILD_STAGE_VOICE

140 Channel::TYPE_DIRECTORY

Use Channel::TYPE_GUILD_DIRECTORY

142 Channel::TYPE_FORUM

Use Channel::TYPE_GUILD_FORUM

148 Channel::FLAG_PINNED

Use Thread::FLAG_PINNED

Message.php

Line Element Reason
137 Message::GUILD_MEMBER_JOIN

Use Message::TYPE_USER_JOIN

139 Message::USER_PREMIUM_GUILD_SUBSCRIPTION

Use Message::TYPE_GUILD_BOOST

141 Message::USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_1

Use Message::TYPE_GUILD_BOOST_TIER_1

143 Message::USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_2

Use Message::TYPE_GUILD_BOOST_TIER_2

145 Message::USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_3

Use Message::TYPE_GUILD_BOOST_TIER_3

147 Message::TYPE_NORMAL

Use Message::TYPE_DEFAULT

149 Message::TYPE_USER_ADDED

Use Message::TYPE_RECIPIENT_ADD

151 Message::TYPE_USER_REMOVED

Use Message::TYPE_RECIPIENT_REMOVE

153 Message::CHANNEL_PINNED_MESSAGE

Use Message::TYPE_CHANNEL_PINNED_MESSAGE

155 Message::CHANNEL_FOLLOW_ADD

Use Message::TYPE_CHANNEL_FOLLOW_ADD

157 Message::GUILD_DISCOVERY_DISQUALIFIED

Use Message::TYPE_GUILD_DISCOVERY_DISQUALIFIED

159 Message::GUILD_DISCOVERY_REQUALIFIED

Use Message::TYPE_GUILD_DISCOVERY_REQUALIFIED

161 Message::GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING

Use Message::TYPE_GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING

163 Message::GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING

Use Message::TYPE_GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING

165 Message::TYPE_APPLICATION_COMMAND

Use Message::TYPE_CHAT_INPUT_COMMAND

Embed.php

Line Element Reason
217 Embed::setTypeAttribute()

Type rich will always be used in API.

273 Embed::setType()

Type rich will always be used in API.

Guild.php

Line Element Reason
587 Guild::getStageInstancesAttribute()

Use $channel->stage_instances

1038 Guild::validateRegion()

Use Channel::$rtc_region.

Part.php

Line Element Reason
60 Part::$scriptData

Relying on this variable with dynamic caching is discouraged.

Permission.php

Line Element Reason
243 Permission::getManageEmojisAndStickersAttribute()

Use manage_guild_expressions

251 Permission::setManageEmojisAndStickersAttribute()

Use manage_guild_expressions

Thread.php

Line Element Reason
760 Thread::sendEmbed()

Use Channel::sendMessage with MessageBuilder::addEmbed()

Activity.php

Line Element Reason
66 Activity::TYPE_PLAYING

Use Activity::TYPE_GAME

Member.php

Line Element Reason
664 Member::getDiscriminatorAttribute()

Use $member->user->discriminator

AbstractRepositoryTrait.php

Line Element Reason
473 AbstractRepositoryTrait::pull()

Use async $repository->cachePull()

509 AbstractRepositoryTrait::pushItem()

Use async $repository->cache->set() This method is deprecated for userland code but can still be used internally within the library.

577 AbstractRepositoryTrait::has()

Use async $repository->cache->has()

650 AbstractRepositoryTrait::clear()

Use async $repository->cache->clear()

705 AbstractRepositoryTrait::offsetExists()

Use async $repository->cache->has() This method is deprecated for userland code but can still be used internally within the library.

720 AbstractRepositoryTrait::offsetGet()

Use async $repository->cacheGet() or sync $repository->get() This method is deprecated for userland code but can still be used internally within the library.

743 AbstractRepositoryTrait::offsetSet()

Use async $repository->cache->set()

755 AbstractRepositoryTrait::offsetUnset()

Use async $repository->cache->delete()

VoiceClient.php

Line Element Reason
926 VoiceClient::playDCAStream()

DCA is now deprecated in DiscordPHP, switch to using playOggStream with raw Ogg Opus.

Search results