Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
l7ssha committed Feb 8, 2022
1 parent 51470c8 commit 3242279
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions lib/src/nyxx.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,17 @@ import 'package:nyxx/src/typedefs.dart';

abstract class NyxxFactory {
static INyxx createNyxxRest(String token, int intents, Snowflake appId,
{ClientOptions? options, CacheOptions? cacheOptions, @Deprecated("Use IgnoreException plugin") bool ignoreExceptions = true, @Deprecated("Use Logging plugin") bool useDefaultLogger = true}) =>
{ClientOptions? options,
CacheOptions? cacheOptions,
@Deprecated("Use IgnoreException plugin") bool ignoreExceptions = true,
@Deprecated("Use Logging plugin") bool useDefaultLogger = true}) =>
NyxxRest(token, intents, appId, options: options, cacheOptions: cacheOptions);

static INyxxWebsocket createNyxxWebsocket(String token, int intents,
{ClientOptions? options, CacheOptions? cacheOptions, @Deprecated("Use IgnoreException plugin") bool ignoreExceptions = true, @Deprecated("Use Logging plugin") bool useDefaultLogger = true}) =>
{ClientOptions? options,
CacheOptions? cacheOptions,
@Deprecated("Use IgnoreException plugin") bool ignoreExceptions = true,
@Deprecated("Use Logging plugin") bool useDefaultLogger = true}) =>
NyxxWebsocket(token, intents, options: options, cacheOptions: cacheOptions);
}

Expand Down Expand Up @@ -182,8 +188,7 @@ class NyxxRest extends INyxxRest {

/// Creates and logs in a new client. If [ignoreExceptions] is true (by default is)
/// isolate will ignore all exceptions and continue to work.
NyxxRest(this.token, this.intents, this._appId,
{ClientOptions? options, CacheOptions? cacheOptions}) {
NyxxRest(this.token, this.intents, this._appId, {ClientOptions? options, CacheOptions? cacheOptions}) {
_logger.fine("Staring Nyxx: intents: [$intents]");

if (token.isEmpty) {
Expand Down Expand Up @@ -331,13 +336,7 @@ class NyxxWebsocket extends NyxxRest implements INyxxWebsocket {
/// Creates and logs in a new client. If [ignoreExceptions] is true (by default is)
/// isolate will ignore all exceptions and continue to work.
NyxxWebsocket(String token, int intents, {ClientOptions? options, CacheOptions? cacheOptions})
: super(
token,
intents,
Snowflake.zero(),
options: options,
cacheOptions: cacheOptions
) {
: super(token, intents, Snowflake.zero(), options: options, cacheOptions: cacheOptions) {
eventsWs = WebsocketEventController(this);
}

Expand Down

0 comments on commit 3242279

Please sign in to comment.