Releases: discord-php/DiscordPHP
Releases · discord-php/DiscordPHP
Version 7.3.0
Added
AuditLog::application_commands
Integration::scopes
Intent::MESSAGE_CONTENT
this is a privileged intent and is excluded fromIntents::getDefaultIntents()
, see here for more information.
Full Changelog: v7.2.6...v7.3.0
Version 7.2.6
Fixed
- Auto complete callback when options is not provided as sub command #896
Full Changelog: v7.2.5...v7.2.6
Version 7.2.5
What's Changed
- fix command options by @HolySmoke86 in #798
- fix autocomplete options by @SQKo
Full Changelog: v7.2.4...v7.2.5
Version 7.2.4
Fixed
- CommandBuilder
$name
and$description
"Typed property must not be accessed before initialization" error.
Full Changelog: v7.2.3...v7.2.4
v7.2.3
Deprecated
Rule::TRIGGER_TYPE_HARMFUL_LINK
is no longer part of Auto Moderation (it is enabled globally in Discord now)
Full Changelog: v7.2.2...v7.2.3
v7.2.2
Changed
- Modify
Event::GUILD_DELETE
behavior to return raw data instead of null, please cross check the docs:
$discord->on(Event::GUILD_DELETE, function (?Guild $guild, Discord $discord, bool $unavailable) {
is now:
$discord->on(Event::GUILD_DELETE, function ($guild, Discord $discord, bool $unavailable) {
And $guild
when $unavailable
is true
will be a stdClass containing $guild->id
and $guild->unavailable
Full Changelog: v7.2.1...v7.2.2
Version 7.2.1
Deprecated
- Removed from API:
Guild::feature_commerce
,Guild::feature_seven_day_thread_archive
,Guild::feature_three_day_thread_archive
- Renamed in API:
Channel::TYPE_NEWS
is nowChannel::TYPE_ANNOUNCEMENT
, andChannel::TYPE_NEWS_THREAD
is nowChannel::TYPE_ANNOUNCEMENT_THREAD
Full Changelog: v7.2.0...v7.2.1
Version 7.2.0
Added
MessageBuilder
andqueryparams
support forWebhook::execute()
(#860)- More webhook message methods to manipulate bot's owned webhook, such as
WebhookMessageRepository
($webhook->messages
) andWebhook::updateMessage()
(#860) - New
resume_gateway_url
support (#885) - Ban message delete message seconds option, see #867 for example
Changed
- The
ban()
argumentdelete_message_days
has been changed, please use the array options from now on (#867) (see 7.2.2)Event::GUILD_DELETE
returning aGuild
Part with empty attributes instead of null
Fixed
- Added the missing
Guild::feature_community
(#888) CommandBuilder
#879 #881 (#882)MessageBuilder
for removing stuff on edit (#860, #880)Event::BAN_REMOVE
not returning a filledBan
part when guild is not cached
Removed
$guild->roles->fetch('ROLE ID HERE', true)
due to non existent API endpoint. You can use$guild->roles->get('id', 'ROLE ID HERE')
instead (#868). Roles can be stillfreshen()
in order to get updated values.
Full Changelog: v7.1.4...v7.2.0
Version 7.1.4
What's Changed
- Fix __serialize() and __unserialize() Also added back the original serialize() and unserialize() method by @SQKo in #869
- Fix an error when closing the client with no websocket connection by @Nerahikada in #870
- test: remove allowText assertion on voice channel by @SQKo in #871
- Update Intents.php (fix #874) by @key2peace in #878
- Fix Events by @SQKo in #873
Full Changelog: v7.1.3...v7.1.4
Version 7.1.3
What's Changed
- Add maximum Option min_length & max_length by @SQKo in #856
- Consistency: Use root namespace for SPL exceptions by @SQKo in #858
- Minor improvement to Widget by @SQKo in #859
- Add command mention by @SQKo in #861
- micro optimization for Collection->push() to Collection->pushItem() by @SQKo in #862
- Fix Command Builder by @TheDeadCode in #866
- Add Thread
total_message_sent
andposition
, AddAPPLICATION_COMMAND_BADGE
, Add mention spam type and limits by @SQKo in #864
New Contributors
- @TheDeadCode made their first contribution in #866
Full Changelog: v7.1.2...v7.1.3