Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
l7ssha committed Jan 23, 2022
1 parent 23e5771 commit f05ee71
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/src/core/guild/guild.dart
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,10 @@ class Guild extends SnowflakeEntity implements IGuild {
final shardId = (id.id >> 22) % (client as NyxxWebsocket).shardManager.shards.length;

return (client as NyxxWebsocket).shardManager.shards.firstWhere(
(element) => element.id == shardId,
orElse: () => throw InvalidShardException('Cannot find shard for this guild! Calculated shard id for this guild is: $shardId but no such shard exist'),
);
(element) => element.id == shardId,
orElse: () =>
throw InvalidShardException('Cannot find shard for this guild! Calculated shard id for this guild is: $shardId but no such shard exist'),
);
}

/// Creates an instance of [Guild]
Expand Down

0 comments on commit f05ee71

Please sign in to comment.