diff --git a/lib/src/nyxx.dart b/lib/src/nyxx.dart index 61c721f3d..6594fd119 100644 --- a/lib/src/nyxx.dart +++ b/lib/src/nyxx.dart @@ -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); } @@ -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) { @@ -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); }