Releases: dc-Ragnarok/Fenrir
Releases · dc-Ragnarok/Fenrir
promisev3-0.0.1
Merge branch 'master' into promise-v3
Explicitly require promise v2
Add meta disconnect event
- Added meta event for websocket disconnecting
To listen to this event, you can use Eventer
event emitter, to read more about how to use this type of event emitter, see the packagist page
class MyEventHandler implements \Exan\Eventer\EventInterface
{
public function __construct(
protected \Ragnarok\Fenrir\Gateway\ConnectionInterface $connection,
protected \Psr\Log\LoggerInterface $logger,
) {
}
public function filter(): bool
{
return true;
}
public static function getEventName(): string
{
return \Ragnarok\Fenrir\Constants\MetaEvents::DISCONNECT;
}
public function execute(): void
{
// My logic
}
}
$connection->getMetaHandler()->register(MyEventHandler::class);
0.13.5
What's Changed
- Add integration types config for application part
- Add integration types and contexts to application command
- Add context to interaction
- Add authorizing_integration_owners to interaction
- Add interaction_metadata to message
- Deprecate ApplicationCommand::$dm_permissions and Message::$interaction
- Add AutoModerationRuleTriggerType::MEMBER_PROFILE and ActionType::BLO…
- Add premium button
- Add use Permission::USE_EXTERNAL_SOUNDS
- Add Permission::SEND_VOICE_MESSAGES
- Add Permission::SEND_POLLS
- Add Permission::USE_EXTERNAL_APPS
- Add MessageReferenceType to MessageReference
- Add Application::$approximate_guild_count
- Add Application::$approximate_user_install_count
- Add Application::$redirect_uris
- Add Application::$interactions_endpoint_url
- Add Application Emoji rest calls
- Add Guild voice state endpoints
- Add Guild get role endpoint
- Add Launch activity interaction callback type
Full Changelog: 0.13.4...0.13.5
0.13.4
What's Changed
- Add dot seperated notation support for CommandInteraction options by @Naneynonn in #98
Full Changelog: 0.13.3...0.13.4
Bugfix for setting command choices without localization
Previously an empty array was added to the data for a command choice as localizations, even when not using any localizations.
Discord does not allow for an empty array, so now it will not be added when not using localizations
Bugfix for retrieving messages in channel with criteria
What's Changed
- Send params for retrieving channel messages as query params rather than json body @Naneynonn in #96
Full Changelog: 0.13.1...0.13.2
0.13.1: Feature/79 1006 handling (#95)
- Improved WS connection recovery, improve clarity of error messages and add hints as to what caused the issue.
BC
Though very unlikely, you were able to use these manually.
-
Ragnarok\Fenrir\Gateway\ConnectionInterface
- Removed
resetSequence()
- Removed
stopAutomaticHeartbeats()
- Removed
-
Ragnarok\Fenrir\Gateway\Handlers\InvalidSessionEvent
- Removed
isRecoverable
- Removed