DiscordPHP Documentation

Deprecated

Table of Contents

src/Discord/Builders/CommandAttributes.php
src/Discord/Builders/Components/Component.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/Thread/Thread.php
src/Discord/Parts/User/Activity.php
src/Discord/Repository/AbstractRepository.php
src/Discord/Voice/VoiceClient.php

CommandAttributes.php

Line Element Reason
176 CommandAttributes::setDefaultPermission()

See CommandAttributes::setDefaultMemberPermissions().

Component.php

Line Element Reason
36 Component::TYPE_SELECT_MENU

Use Component::TYPE_STRING_SELECT

Discord.php

Line Element Reason
1577 Discord::getHttp()

Use Discord::getHttpClient()

Channel.php

Line Element Reason
1154 Channel::sendEmbed()

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

1174 Channel::sendFile()

Use Channel::sendMessage to send files.

1266 Channel::allowText()

Use Channel::isTextBased()

1278 Channel::allowVoice()

Use Channel::isVoiceBased()

1290 Channel::allowInvite()

Use Channel::canInvite()

116 Channel::TYPE_TEXT

Use Channel::TYPE_GUILD_TEXT

118 Channel::TYPE_VOICE

Use Channel::TYPE_GUILD_VOICE

120 Channel::TYPE_GROUP

Use Channel::TYPE_GROUP_DM

122 Channel::TYPE_CATEGORY

Use Channel::TYPE_GUILD_CATEGORY

124 Channel::TYPE_NEWS

Use Channel::TYPE_GUILD_ANNOUNCEMENT

126 Channel::TYPE_ANNOUNCEMENT

Use Channel::TYPE_GUILD_ANNOUNCEMENT

128 Channel::TYPE_NEWS_THREAD

Use Channel::TYPE_ANNOUNCEMENT_THREAD

130 Channel::TYPE_STAGE_CHANNEL

Use Channel::TYPE_GUILD_STAGE_VOICE

132 Channel::TYPE_DIRECTORY

Use Channel::TYPE_GUILD_DIRECTORY

134 Channel::TYPE_FORUM

Use Channel::TYPE_GUILD_FORUM

140 Channel::FLAG_PINNED

Use Thread::FLAG_PINNED

Message.php

Line Element Reason
123 Message::GUILD_MEMBER_JOIN

Use Message::TYPE_USER_JOIN

125 Message::USER_PREMIUM_GUILD_SUBSCRIPTION

Use Message::TYPE_GUILD_BOOST

127 Message::USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_1

Use Message::TYPE_GUILD_BOOST_TIER_1

129 Message::USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_2

Use Message::TYPE_GUILD_BOOST_TIER_2

131 Message::USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_3

Use Message::TYPE_GUILD_BOOST_TIER_3

133 Message::TYPE_NORMAL

Use Message::TYPE_DEFAULT

135 Message::TYPE_USER_ADDED

Use Message::TYPE_RECIPIENT_ADD

137 Message::TYPE_USER_REMOVED

Use Message::TYPE_RECIPIENT_REMOVE

139 Message::CHANNEL_PINNED_MESSAGE

Use Message::TYPE_CHANNEL_PINNED_MESSAGE

141 Message::CHANNEL_FOLLOW_ADD

Use Message::TYPE_CHANNEL_FOLLOW_ADD

143 Message::GUILD_DISCOVERY_DISQUALIFIED

Use Message::TYPE_GUILD_DISCOVERY_DISQUALIFIED

145 Message::GUILD_DISCOVERY_REQUALIFIED

Use Message::TYPE_GUILD_DISCOVERY_REQUALIFIED

147 Message::GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING

Use Message::TYPE_GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING

149 Message::GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING

Use Message::TYPE_GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING

151 Message::TYPE_APPLICATION_COMMAND

Use Message::TYPE_CHAT_INPUT_COMMAND

Embed.php

Line Element Reason
213 Embed::setTypeAttribute()

Type rich will be always used in API.

269 Embed::setType()

Type rich will be always used in API.

Guild.php

Line Element Reason
548 Guild::getStageInstancesAttribute()

Use $channel->stage_instances

998 Guild::validateRegion()

Use Channel::$rtc_region.

Part.php

Line Element Reason
59 Part::$scriptData

Relying on this variable with dynamic caching is discouraged.

Thread.php

Line Element Reason
731 Thread::sendEmbed()

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

Activity.php

Line Element Reason
63 Activity::TYPE_PLAYING

Use Activity::TYPE_GAME

AbstractRepository.php

Line Element Reason
428 AbstractRepository::pull()

Use async $repository->cachePull()

463 AbstractRepository::pushItem()

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

531 AbstractRepository::has()

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

602 AbstractRepository::clear()

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

646 AbstractRepository::offsetExists()

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

660 AbstractRepository::offsetGet()

Use async $repository->cacheGet() or sync $repository->get()

683 AbstractRepository::offsetSet()

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

695 AbstractRepository::offsetUnset()

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

VoiceClient.php

Line Element Reason
888 VoiceClient::playDCAStream()

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

Search results