Skip to content

Commit

Permalink
Correctly emit connected event (#381)
Browse files Browse the repository at this point in the history
* Correctly emit connected event

* Release 4.1.2

* Update version constant
  • Loading branch information
abitofevrything authored Oct 30, 2022
1 parent 541bd7a commit 95b7179
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 4.1.2
__30.10.2022__

- bug: Correctly emit connected event in `ShardManager`

## 4.1.1
__23.10.2022__

Expand Down
2 changes: 1 addition & 1 deletion lib/src/internal/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Constants {
static const int apiVersion = 10;

/// Version of Nyxx
static const String version = "4.1.1";
static const String version = "4.1.2";

/// Url to Nyxx repo
static const String repoUrl = "https://github.com/nyxx-discord/nyxx";
Expand Down
1 change: 1 addition & 0 deletions lib/src/internal/shard/shard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ class Shard implements IShard {
Future<void> handleConnected() async {
manager.logger.info('Shard $id connected to gateway');
connected = true;
manager.onConnectController.add(this);

// There was no previous heartbeat on a new connection.
// Setting this to true prevents us from reconnecting upon receiving the first heartbeat due to the previous heartbeat "not being acked".
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: nyxx
version: 4.1.1
version: 4.1.2
description: A Discord library for Dart. Simple, robust framework for creating discord bots for Dart language.
homepage: https://github.com/nyxx-discord/nyxx
repository: https://github.com/nyxx-discord/nyxx
Expand Down

0 comments on commit 95b7179

Please sign in to comment.