Fix new lines at the end of file
This commit is contained in:
parent
10747150b3
commit
53b0712dac
|
@ -17,4 +17,4 @@ after_failure:
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.pub-cache
|
- $HOME/.pub-cache
|
||||||
|
|
|
@ -19,4 +19,4 @@ If adding new functionality or modifying existing, documentation should be added
|
||||||
We attempt to conform [Effective Dart Coding Style](https://dart.dev/guides/language/effective-dart/style) where possible.
|
We attempt to conform [Effective Dart Coding Style](https://dart.dev/guides/language/effective-dart/style) where possible.
|
||||||
However, code style rules are not enforcement and code should be readable and easy to maintain.
|
However, code style rules are not enforcement and code should be readable and easy to maintain.
|
||||||
|
|
||||||
**One exception to rules above is line limit - we use 120 character line limit instead of 80 chars.**
|
**One exception to rules above is line limit - we use 120 character line limit instead of 80 chars.**
|
||||||
|
|
|
@ -85,4 +85,4 @@ Read [contributing document](https://github.com/l7ssha/nyxx/blob/development/CON
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
* [Hackzzila's](https://github.com/Hackzzila) for [nyx](https://github.com/Hackzzila/nyx).
|
* [Hackzzila's](https://github.com/Hackzzila) for [nyx](https://github.com/Hackzzila/nyx).
|
||||||
|
|
|
@ -85,4 +85,4 @@ Read [contributing document](https://github.com/l7ssha/nyxx/blob/development/CON
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
* [Hackzzila's](https://github.com/Hackzzila) for [nyx](https://github.com/Hackzzila/nyx).
|
* [Hackzzila's](https://github.com/Hackzzila) for [nyx](https://github.com/Hackzzila/nyx).
|
||||||
|
|
|
@ -108,4 +108,4 @@ linter:
|
||||||
- prefer_iterable_whereType
|
- prefer_iterable_whereType
|
||||||
- prefer_mixin
|
- prefer_mixin
|
||||||
- prefer_null_aware_operators
|
- prefer_null_aware_operators
|
||||||
- prefer_spread_collections
|
- prefer_spread_collections
|
||||||
|
|
|
@ -202,4 +202,4 @@ abstract class ICommandRegistrable {
|
||||||
|
|
||||||
this._commandEntities.add(entity);
|
this._commandEntities.add(entity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,4 +27,4 @@ extension _CommandMatcher on Iterable<CommandEntity> {
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,4 +10,4 @@ _24.08.2020_
|
||||||
* Scheduler module for invoking repeatable actions
|
* Scheduler module for invoking repeatable actions
|
||||||
* Additional general utils
|
* Additional general utils
|
||||||
* Message resolver module for resolving raw message content into human readable form
|
* Message resolver module for resolving raw message content into human readable form
|
||||||
* Attachment extensions for vm
|
* Attachment extensions for vm
|
||||||
|
|
|
@ -85,4 +85,4 @@ Read [contributing document](https://github.com/l7ssha/nyxx/blob/development/CON
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
* [Hackzzila's](https://github.com/Hackzzila) for [nyx](https://github.com/Hackzzila/nyx).
|
* [Hackzzila's](https://github.com/Hackzzila) for [nyx](https://github.com/Hackzzila/nyx).
|
||||||
|
|
|
@ -107,4 +107,4 @@ linter:
|
||||||
- prefer_iterable_whereType
|
- prefer_iterable_whereType
|
||||||
- prefer_mixin
|
- prefer_mixin
|
||||||
- prefer_null_aware_operators
|
- prefer_null_aware_operators
|
||||||
- prefer_spread_collections
|
- prefer_spread_collections
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
export "src/attachment_extension.dart";
|
export "src/attachment_extension.dart";
|
||||||
|
|
|
@ -6,4 +6,4 @@ import "package:nyxx/nyxx.dart";
|
||||||
import "package:http/http.dart" as http;
|
import "package:http/http.dart" as http;
|
||||||
|
|
||||||
part "src/emoji/EmojiDefinition.dart";
|
part "src/emoji/EmojiDefinition.dart";
|
||||||
part "src/emoji/EmojiUtils.dart";
|
part "src/emoji/EmojiUtils.dart";
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
export "src/message_resolver/Regexes.dart";
|
export "src/message_resolver/Regexes.dart";
|
||||||
export "src/message_resolver/message_resolver.dart";
|
export "src/message_resolver/message_resolver.dart";
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
export "src/pagination/pagination.dart";
|
export "src/pagination/pagination.dart";
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
export "src/scheduler/scheduler.dart";
|
export "src/scheduler/scheduler.dart";
|
||||||
|
|
|
@ -15,4 +15,4 @@ extension DownloadAttachmentExtensions on Attachment {
|
||||||
|
|
||||||
/// Downloads attachment as returns bytes of downloaded file.
|
/// Downloads attachment as returns bytes of downloaded file.
|
||||||
Future<Uint8List> downloadAsBytes() async => (await http.get(Uri.parse(this.url))).bodyBytes;
|
Future<Uint8List> downloadAsBytes() async => (await http.get(Uri.parse(this.url))).bodyBytes;
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,4 +35,4 @@ Future<Iterable<EmojiDefinition>> getAllEmojiDefinitions({bool cache = false}) a
|
||||||
}
|
}
|
||||||
|
|
||||||
return _emojis;
|
return _emojis;
|
||||||
}
|
}
|
||||||
|
|
|
@ -292,4 +292,4 @@ FutureOr<String> _defaultMissingEntityHandler(String entityType) {
|
||||||
default:
|
default:
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,4 +24,4 @@ class ScheduledEvent {
|
||||||
|
|
||||||
/// Stops [ScheduledEvent] if running.
|
/// Stops [ScheduledEvent] if running.
|
||||||
void stop() => _timer.cancel();
|
void stop() => _timer.cancel();
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,4 +37,4 @@ class StringUtils {
|
||||||
|
|
||||||
return split(str, len);
|
return split(str, len);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
export "src/utils.dart";
|
export "src/utils.dart";
|
||||||
|
|
|
@ -3,4 +3,4 @@ import "package:nyxx_extensions/emoji.dart";
|
||||||
main() async {
|
main() async {
|
||||||
final emojis = await getAllEmojiDefinitions();
|
final emojis = await getAllEmojiDefinitions();
|
||||||
assert(emojis.isNotEmpty, "Emojis cannot be empty");
|
assert(emojis.isNotEmpty, "Emojis cannot be empty");
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,4 +85,4 @@ Read [contributing document](https://github.com/l7ssha/nyxx/blob/development/CON
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
|
|
||||||
* [Hackzzila's](https://github.com/Hackzzila) for [nyx](https://github.com/Hackzzila/nyx).
|
* [Hackzzila's](https://github.com/Hackzzila) for [nyx](https://github.com/Hackzzila/nyx).
|
||||||
|
|
|
@ -108,4 +108,4 @@ linter:
|
||||||
- prefer_iterable_whereType
|
- prefer_iterable_whereType
|
||||||
- prefer_mixin
|
- prefer_mixin
|
||||||
- prefer_null_aware_operators
|
- prefer_null_aware_operators
|
||||||
- prefer_spread_collections
|
- prefer_spread_collections
|
||||||
|
|
|
@ -2,4 +2,4 @@ part of nyxx;
|
||||||
|
|
||||||
class CategoryGuildChannel extends GuildChannel {
|
class CategoryGuildChannel extends GuildChannel {
|
||||||
CategoryGuildChannel._new(Nyxx client, Map<String, dynamic> raw, [Snowflake? guildId]): super._new(client, raw, guildId);
|
CategoryGuildChannel._new(Nyxx client, Map<String, dynamic> raw, [Snowflake? guildId]): super._new(client, raw, guildId);
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,4 +37,4 @@ class VoiceGuildChannel extends GuildChannel {
|
||||||
throw InvalidShardException._new("Cannot find shard for this channel!");
|
throw InvalidShardException._new("Cannot find shard for this channel!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,4 +49,4 @@ class GuildFeature extends IEnum<String> {
|
||||||
|
|
||||||
return super == other;
|
return super == other;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,4 +80,4 @@ class RoleTags {
|
||||||
this.nitroRole = raw["premium_subscriber"] != null ? raw["premium_subscriber"] as bool : false;
|
this.nitroRole = raw["premium_subscriber"] != null ? raw["premium_subscriber"] as bool : false;
|
||||||
this.integrationId = raw["integration_id"] != null ? Snowflake(raw["integration_id"]) : null;
|
this.integrationId = raw["integration_id"] != null ? Snowflake(raw["integration_id"]) : null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,4 +7,4 @@ abstract class IEmoji {
|
||||||
|
|
||||||
/// Returns encoded emoji for usage in message
|
/// Returns encoded emoji for usage in message
|
||||||
String formatForMessage();
|
String formatForMessage();
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,4 +18,4 @@ class UnicodeEmoji implements IEmoji {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => this.formatForMessage();
|
String toString() => this.formatForMessage();
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,4 +10,4 @@ class RawEvent {
|
||||||
final Map<String, dynamic> rawData;
|
final Map<String, dynamic> rawData;
|
||||||
|
|
||||||
RawEvent._new(this.shard, this.rawData);
|
RawEvent._new(this.shard, this.rawData);
|
||||||
}
|
}
|
||||||
|
|
2
nyxx/lib/src/internal/cache/Cacheable.dart
vendored
2
nyxx/lib/src/internal/cache/Cacheable.dart
vendored
|
@ -139,4 +139,4 @@ class _MessageCacheable<U extends TextChannel> extends Cacheable<Snowflake, Mess
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,4 +9,4 @@ class EmbedBuilderArgumentException implements Exception {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => "EmbedBuilderArgumentException: $message";
|
String toString() => "EmbedBuilderArgumentException: $message";
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,4 +6,4 @@ class HttpClientException extends http.ClientException {
|
||||||
|
|
||||||
// ignore: public_member_api_docs
|
// ignore: public_member_api_docs
|
||||||
HttpClientException(this.response) : super("Exception", response?.request?.url);
|
HttpClientException(this.response) : super("Exception", response?.request?.url);
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,4 +9,4 @@ class InvalidShardException implements Exception {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => "InvalidShardException: Unsupported shard operation: $message";
|
String toString() => "InvalidShardException: Unsupported shard operation: $message";
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,4 +8,4 @@ class InvalidSnowflakeException implements Exception {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => "InvalidSnowflakeException: Cannot parse [$_invalidSnowflake] to Snowflake";
|
String toString() => "InvalidSnowflakeException: Cannot parse [$_invalidSnowflake] to Snowflake";
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,4 +23,4 @@ class _HttpClient extends http.BaseClient {
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,4 +84,4 @@ class ShardManager implements Disposable {
|
||||||
await this._onDisconnect.close();
|
await this._onDisconnect.close();
|
||||||
await this._onMemberChunk.close();
|
await this._onMemberChunk.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue