Releases: discord-php/DiscordPHP
Releases · discord-php/DiscordPHP
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
Version 7.0.9
Fix for retrieveBans
after breaking change with API discord/discord-api-docs@808d94b
Also fixed the retrieveBans
not properly given discriminator and guild data
Full Changelog: v7.0.8...v7.0.9
Version 7.0.8
Hotfix #776 for direct message crash to the previous fix #775
Full Changelog: v7.0.7...v7.0.8
Version 7.0.6
What's Changed
- Fix resolved members data exception by @jocafamaka in #765
- Fix invites by @key2peace in #768
- BPM vs BPS by @key2peace in #769
- Patch Version 7.0.6 by @SQKo in #773
Full Changelog: v7.0.5...v7.0.6
Version 7.0.5
What's Changed
VoiceClient::isSpeaking()
without$id
returns the current bot speaking status by @key2peace in #754- Fix
PresenceUpdate::guild
nullable by @SQKo in #758 VoiceClient
updates and fix by @key2peace in #752- Fix
getPermissions()
onThreads
to inherit permissions from the channel in which they were created by @valzargaming in #759 SelectMenu::placeholder
limit 150 chars,guild_scheduled_event
id for stage instance,Permission::start_embedded_activities
is soon to be renamed asPermission::use_embedded_activities
by @SQKo in #760
Full Changelog: v7.0.4...v7.0.5
Version 7.0.4
What's Changed
- Fixed
Option::addChoice()
null pointer exception. by @shehi in #739 - Changed
custom_id
argument as optional fornew Button()
. by @shehi in #740 - Added
MessageBuilder
forMessage::reply()
andMessage::delayedReply()
functions by @SQKo in #741 - Fixed
Channel::setOverwrite()
fatal error to ignore permission check if guild does not exist or channel not yet created by @SQKo in #743 - Added
Channel::getBotPermissions()
helper function by @key2peace in #744 - Changed
Interaction::sendFollowUpMessage()
to be usable forInteractionType::MESSAGE_COMPONENT
by @SQKo in #748 - Fixed sub command options (credits Discord user idkmanm#3642) in #749
Full Changelog: v7.0.3...v7.0.4
Version 7.0.3
What's Changed
- Fix embed description limit, remove duplicated happy eyeballs option by @SQKo in #732
- Add Member::setRoles() and Fix to ignore potential null guild on events by @SQKo in #734
- Tweak deleteMessages(), add Collection::last() @key2peace in #736
Full Changelog: v7.0.2...v7.0.3
Version 7.0.2
What's Changed
- Bumped version
- Deprecated
Invite::stage_instance
- Fixed phpdoc regarding
$channel
parameter inMember::moveMember()
can be nullable - Added
Thread::getUpdateableAttributes()
, the following functions are separate to be used by Bot withoutMANAGE_THREAD
permissions but owns the thread:- Added
Thread::rename()
- Added
Thread::setAutoArchiveDuration()
- Added audit log
$reason
parameters forThread::archive()
andThread::unarchive()
- Added
Thread
attributesarchived
,locked
,auto_archive_duration
can be now set shorter without accessingthread_metadata
, e.g.$thread->archived = true;
- Added
MessageBuilder::addAttachment()
,MessageBuilder::getAttachments()
,MessageBuilder::clearAttachments()
- Updated
Discord::close(false)
to send OP Code 1000 (normal close), if you want to close your bot gracefully (as if you do not want to restart soon) and make it offline from discord, you can use the following code:
$discord->close(false);
$loop = $discord->getLoop();
$loop->futureTick([$loop, 'stop']);
Full Changelog: v7.0.1...v7.0.2