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
179 CommandAttributes::setDefaultPermission()

See CommandAttributes::setDefaultMemberPermissions().

Component.php

Line Element Reason
36 Component::TYPE_SELECT_MENU

Use Component::TYPE_STRING_SELECT

MessageBuilder.php

Line Element Reason
659 MessageBuilder::_setFlags()

Use MessageBuilder::setFlags()

Discord.php

Line Element Reason
1596 Discord::getHttp()

Use Discord::getHttpClient()

Channel.php

Line Element Reason
1282 Channel::sendEmbed()

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

1302 Channel::sendFile()

Use Channel::sendMessage to send files.

1394 Channel::allowText()

Use Channel::isTextBased()

1406 Channel::allowVoice()

Use Channel::isVoiceBased()

1418 Channel::allowInvite()

Use Channel::canInvite()

121 Channel::TYPE_TEXT

Use Channel::TYPE_GUILD_TEXT

123 Channel::TYPE_VOICE

Use Channel::TYPE_GUILD_VOICE

125 Channel::TYPE_GROUP

Use Channel::TYPE_GROUP_DM

127 Channel::TYPE_CATEGORY

Use Channel::TYPE_GUILD_CATEGORY

129 Channel::TYPE_NEWS

Use Channel::TYPE_GUILD_ANNOUNCEMENT

131 Channel::TYPE_ANNOUNCEMENT

Use Channel::TYPE_GUILD_ANNOUNCEMENT

133 Channel::TYPE_NEWS_THREAD

Use Channel::TYPE_ANNOUNCEMENT_THREAD

135 Channel::TYPE_STAGE_CHANNEL

Use Channel::TYPE_GUILD_STAGE_VOICE

137 Channel::TYPE_DIRECTORY

Use Channel::TYPE_GUILD_DIRECTORY

139 Channel::TYPE_FORUM

Use Channel::TYPE_GUILD_FORUM

145 Channel::FLAG_PINNED

Use Thread::FLAG_PINNED

Message.php

Line Element Reason
134 Message::GUILD_MEMBER_JOIN

Use Message::TYPE_USER_JOIN

136 Message::USER_PREMIUM_GUILD_SUBSCRIPTION

Use Message::TYPE_GUILD_BOOST

138 Message::USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_1

Use Message::TYPE_GUILD_BOOST_TIER_1

140 Message::USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_2

Use Message::TYPE_GUILD_BOOST_TIER_2

142 Message::USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_3

Use Message::TYPE_GUILD_BOOST_TIER_3

144 Message::TYPE_NORMAL

Use Message::TYPE_DEFAULT

146 Message::TYPE_USER_ADDED

Use Message::TYPE_RECIPIENT_ADD

148 Message::TYPE_USER_REMOVED

Use Message::TYPE_RECIPIENT_REMOVE

150 Message::CHANNEL_PINNED_MESSAGE

Use Message::TYPE_CHANNEL_PINNED_MESSAGE

152 Message::CHANNEL_FOLLOW_ADD

Use Message::TYPE_CHANNEL_FOLLOW_ADD

154 Message::GUILD_DISCOVERY_DISQUALIFIED

Use Message::TYPE_GUILD_DISCOVERY_DISQUALIFIED

156 Message::GUILD_DISCOVERY_REQUALIFIED

Use Message::TYPE_GUILD_DISCOVERY_REQUALIFIED

158 Message::GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING

Use Message::TYPE_GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING

160 Message::GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING

Use Message::TYPE_GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING

162 Message::TYPE_APPLICATION_COMMAND

Use Message::TYPE_CHAT_INPUT_COMMAND

Embed.php

Line Element Reason
214 Embed::setTypeAttribute()

Type rich will always be used in API.

270 Embed::setType()

Type rich will always be used in API.

Guild.php

Line Element Reason
584 Guild::getStageInstancesAttribute()

Use $channel->stage_instances

1035 Guild::validateRegion()

Use Channel::$rtc_region.

Part.php

Line Element Reason
57 Part::$scriptData

Relying on this variable with dynamic caching is discouraged.

Permission.php

Line Element Reason
241 Permission::getManageEmojisAndStickersAttribute()

Use manage_guild_expressions

249 Permission::setManageEmojisAndStickersAttribute()

Use manage_guild_expressions

Thread.php

Line Element Reason
743 Thread::sendEmbed()

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

Activity.php

Line Element Reason
64 Activity::TYPE_PLAYING

Use Activity::TYPE_GAME

Member.php

Line Element Reason
660 Member::getDiscriminatorAttribute()

Use $member->user->discriminator

AbstractRepositoryTrait.php

Line Element Reason
471 AbstractRepositoryTrait::pull()

Use async $repository->cachePull()

507 AbstractRepositoryTrait::pushItem()

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

575 AbstractRepositoryTrait::has()

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

648 AbstractRepositoryTrait::clear()

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

703 AbstractRepositoryTrait::offsetExists()

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

718 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.

741 AbstractRepositoryTrait::offsetSet()

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

753 AbstractRepositoryTrait::offsetUnset()

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

VoiceClient.php

Line Element Reason
923 VoiceClient::playDCAStream()

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

Search results