Skip to content

Releases: discord-php/DiscordPHP

Version 7.3.0

04 Sep 06:34
Compare
Choose a tag to compare

Added

  • AuditLog::application_commands
  • Integration::scopes
  • Intent::MESSAGE_CONTENT this is a privileged intent and is excluded from Intents::getDefaultIntents(), see here for more information.

Full Changelog: v7.2.6...v7.3.0

Version 7.2.6

25 Aug 00:17
Compare
Choose a tag to compare

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

24 Aug 13:22
Compare
Choose a tag to compare

What's Changed

Full Changelog: v7.2.4...v7.2.5

Version 7.2.4

21 Aug 10:40
Compare
Choose a tag to compare

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

19 Aug 02:07
Compare
Choose a tag to compare

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

17 Aug 16:14
Compare
Choose a tag to compare

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

17 Aug 15:39
Compare
Choose a tag to compare

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 now Channel::TYPE_ANNOUNCEMENT, and Channel::TYPE_NEWS_THREAD is now Channel::TYPE_ANNOUNCEMENT_THREAD

Full Changelog: v7.2.0...v7.2.1

Version 7.2.0

17 Aug 14:57
Compare
Choose a tag to compare

Added

  • MessageBuilder and queryparams support for Webhook::execute() (#860)
  • More webhook message methods to manipulate bot's owned webhook, such as WebhookMessageRepository ($webhook->messages) and Webhook::updateMessage() (#860)
  • New resume_gateway_url support (#885)
  • Ban message delete message seconds option, see #867 for example

Changed

  • The ban() argument delete_message_days has been changed, please use the array options from now on (#867)
  • Event::GUILD_DELETE returning a Guild Part with empty attributes instead of null (see 7.2.2)

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 filled Ban 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 still freshen() in order to get updated values.

Full Changelog: v7.1.4...v7.2.0

Version 7.1.4

09 Aug 08:52
Compare
Choose a tag to compare

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

22 Jul 19:37
c0d231a
Compare
Choose a tag to compare

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 and position, Add APPLICATION_COMMAND_BADGE, Add mention spam type and limits by @SQKo in #864

New Contributors

Full Changelog: v7.1.2...v7.1.3