π **DiscordPHP v10.3.0 Release!** π
The `v10.3.0` tag is now live!
β¨ New Methods:
- `shift`, `fill`, `slice`, `diff`, `intersect`, `walk`, `reduce`, `unique`, `values`.
π€ Channel Updates:
- `deafenMember` & `undeafenMember`.
Check it out! π
π github.com/discord-php/...
Posts by
Weβre excited to keep improving! Let us know what features or improvements you'd love to see next. Feedback is always welcome. π¬
π Full release notes here: github.com/discord-php/...
Want a practical example? Check this out:
Ever needed the last 10 people who joined your guild? Now you can do it in one clean expression:
Weβve also enhanced the serialize method for Collections! π οΈ
You can now pass parameters like JSON_PRETTY_PRINT to json_encode. Your debug outputs and file exports just got a glow-up! π
The return type of these methods has been updated to use a new CollectionInterface type hint in the docs.
β οΈ Donβt worry, no code changes are needed on your end. Itβs fully backwards compatible!
These improvements will be more significant in v11, so stay tuned. π
This release focuses on Collections and Repositories with 3 new methods:
β
sort β Inspired by illuminate/collections. Sorts your data and returns a fresh Collection object.
β
map β Mapping now works for Repositories too! Bug fixed.
β
slice β Extract new Collections with ease!
π DiscordPHP v10.2.2 Official Release! π
DiscordPHP v10.2.2 is live! While Discord hasnβt released any exciting new features for us to build on, weβve been hard at work improving the developer experience (DX). π
DiscordPHP v10.1.1 has officially been released and is now available under the v10.1.1 tag. Versions ^10.1.0 will mandate the usage of React/Promise v3. Any bots that still require v2 should lock their composer.json to use v10.0.0.
#discord #reactphp #php #opensource #devtools
React/Promise v3 changes are now live for testing on dev-master. See github.com/reactphp/pro... for BC recommendations, such as replacing any existing instances of resolve() and reject() in your code to resolve($value) and reject(\Throwable $exception)
#Discord #ReactPHP #PHP #OpenSource #DevTools
I'm excited to announce the official launch of the DiscordPHP library's latest version & our new website: discordphp.org!
Full docs & guides on github.discordphp.org
Join us for support: discord.gg/dphp
#DiscordPHP #OpenSource #DevTools