team-reflex/discord-php
DiscordPHP is a PHP wrapper for Discord’s REST, Gateway, and Voice APIs. Build Discord bots and integrations in CLI using an event-driven approach (ReactPHP). Includes guides and class reference; community Laravel integration available via Laracord.
First release for many years. Contains many bug fixes and stability patches so this is the most important update since.
cachePool option.Collection class no longer extends Laravel collections.
Channel::setPermissions() function now takes a role or member as well as two arrays: one array of allow permissions and one array of deny permissions.Channel::createInvite() now takes an array of options. See the Discord developer docs for a list of valid options.Channel::sendMessage() instead.allow and deny parameters of an overwrite are an instance of ChannelPermission instead of int.Guild::getVoiceRegions() function to get an array of valid regions.Guild::validateRegion() now has to perform an async HTTP request to validate the region. Only use this if nessasary.Game class. Renamed to Activity and new attributes added.Discord::updatePresence() now takes an Activity object as well as options idle, status and afk.getLoop() and getLogger() functions to the Discord client.Channel::createMessageColletor() for more information.Message::createReactionCollector() for more information.Reaction class.Webhook class.Intents class for constants.intents field in the options array, containing either an array of intents or an integer corresponding to the intents.GUILD_INTEGRATIONS_UPDATE, INVITE_CREATE, INVITE_DELETE, MESSAGE_REACTION_REMOVE_EMOJI.retrieveBans to true in options to retrieve on guild availability.part() and repository() function to bypass strpos functions.Channel::setOverwrite() has been added to perform the action of setPermissions() from the previous version.Message::delayedReply() to perform a reply after a specified duration.Message::react() and Message::deleteReaction() now takes an Emoji object or a string emoji.Message::delete() to delete a message without using the repository.Message::addEmbed() to add an embed to the message.MessageReaction class to represent a reaction to a message.type parameter.animated parameter.Emoji::toReactionString() function to convert to a format to put in a Reaction object.Emoji::__toString() object for sending emojis in messages.mentionable attribute.game attribute now returns an Activity part.resolve and reject functions from Parts.
AbstractRepository::freshen() now actually freshens the part, rather than being cached.GUILD_CREATE and GUILD_MEMBERS_CHUNK events.GUILD_MEMBER and PRESENCE_UPDATE intents are not enabled by default.
loadAllMembers option requires the GUILD_MEMBER intent to be enabled.logging, httpLogger and loggerLevel options have been removed.
logger that you have passed, or the default logger.logging to false, you can create a logger with a NullHandler.amd64 architecture. The following platforms are now supported:
setSpeaking()switchChannel()setFrameSize()setBitrate()setVolume()setAudioApplication()setMuteDeaf()pause()unpause()stop()close()getRecieveStream()How can I help you explore Laravel packages today?