Releases: discord-php/DiscordPHP
Releases · discord-php/DiscordPHP
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
Version 7.1.2
Version 7.1.1
Hotfix with BanRepository::unban()
, thanks @wohahobg #851
What's Changed
Full Changelog: v7.1.0...v7.1.1
v7.1.0
Actual changelog TBA
What's Changed
- Add stage instance start notification, guild animated banner, application command locale, student hub by @SQKo in #774
- Command locale and Command builder attribute traits by @SQKo in #781
- Ban pagination by @SQKo in #782
- getSnowflakeTimestamp documentation by @valzargaming in #784
- Forum... by @SQKo in #786
- cosmetic change by @key2peace in #788
- Fix return type by @AliAzizi in #789
- Add new permission types to commands by @key2peace in #795
- add $member->getVoiceChannel() by @key2peace in #791
- Fix empty user part on Audit Logs by @jocafamaka in #801
- Add a way to check status for Interaction::responded from get() functions by @SQKo in #796
- Fix a deprecated error in VoiceClient by @Nerahikada in #799
- Update ... API from April 8th by @SQKo in #805
- Make Thread createable, add invitable, deprecate archiver_id, and fix metadata by @SQKo in #807
- fix resolved members missing guild, user stdClass, improve Interaction by @SQKo in #809
- Add a helper function to search array within promise by @SQKo in #811
- Little more API updates since previous PR #805 by @SQKo in #815
- DiscordCommandClient.php: don't add trailing space to usage by @hemberger in #819
- Gateway Ready no longer sends private channels by @key2peace in #818
- Add Text In Voice permissions by @SQKo in #820
- Add Guild::updateMFALevel() by @SQKo in #823
- Few fixes in threads by @jocafamaka in #824
- make sure to populate private_channels when receiving PMs by @putnam in #825
- Add Voice in Text for Channel::allowText() by @SQKo in #827
- Fixes crash due to missing use statement (#825) by @valzargaming in #829
- Make
MemberRepository::freshen()
paginate by default by @SQKo in #833 - Add
$timer
parameter fordelayedReply()
anddelayedDelete()
by @SQKo in #832 - Remove typecasting on delayedDelete/delayedReply by @key2peace in #834
- Change to absolute namespace by @SQKo in #835
- Fix deprecated strlen() error in php8.1 by @Nerahikada in #836
- Simplify Carbon objects creation by @kylekatarnls in #848
- Add slash command regex check by @SQKo in #831
- Add auto moderation by @SQKo in #821
- Update cache right after HTTP request is done instead of always relying on events by @SQKo in #838
- Add audit log reason for save() and delete(), add queryparams for fresh() by @SQKo in #842
- Add Interaction::app_permissions, Option::min_length & Option::max_length, MessageInteraction part by @SQKo in #841
- Update identify connection fields, Deprecate old message type constants, add MessageBuilder nonce by @SQKo in #840
- Allow Symfony 6 and Monolog 3 by @kylekatarnls in #846
- Add experimental compress=zlib-stream gateway packet processing by @SQKo in #812
New Contributors
- @AliAzizi made their first contribution in #789
- @Nerahikada made their first contribution in #799
- @putnam made their first contribution in #825
- @kylekatarnls made their first contribution in #848
Full Changelog: v7.0.9...v7.1.0