Skip to content

Commit

Permalink
Clean up files
Browse files Browse the repository at this point in the history
  • Loading branch information
abitofevrything committed Sep 1, 2023
1 parent 95a55e4 commit 93d2c54
Show file tree
Hide file tree
Showing 14 changed files with 24 additions and 90 deletions.
39 changes: 0 additions & 39 deletions .pubignore

This file was deleted.

3 changes: 0 additions & 3 deletions lib/attachment_extension.dart

This file was deleted.

3 changes: 0 additions & 3 deletions lib/embed_builder_extension.dart

This file was deleted.

11 changes: 0 additions & 11 deletions lib/emoji.dart

This file was deleted.

3 changes: 0 additions & 3 deletions lib/guild_extension.dart

This file was deleted.

3 changes: 0 additions & 3 deletions lib/member_extension.dart

This file was deleted.

4 changes: 0 additions & 4 deletions lib/message_resolver.dart

This file was deleted.

15 changes: 8 additions & 7 deletions lib/nyxx_extensions.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
library nyxx_extensions;

export 'attachment_extension.dart';
export 'embed_builder_extension.dart';
export 'emoji.dart';
export 'member_extension.dart';
export 'message_resolver.dart';
export 'utils.dart';
export 'guild_extension.dart';
export 'src/attachment_extension.dart';
export 'src/embed_builder_extension.dart';
export 'src/emoji/emoji_definition.dart';
export 'src/emoji/emoji_utils.dart';
export 'src/member_extension.dart';
export 'src/message_resolver/message_resolver.dart';
export 'src/utils.dart';
export 'src/guild_extension.dart';
4 changes: 2 additions & 2 deletions lib/src/emoji/emoji_definition.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
part of emoji;
import 'package:nyxx/nyxx.dart';

/// Wrapper class around discords emojis data
class EmojiDefinition {
Expand All @@ -20,7 +20,7 @@ class EmojiDefinition {
/// Url of emoji picture
late final String assetUrl;

EmojiDefinition._new(RawApiMap raw) {
EmojiDefinition(RawApiMap raw) {
primaryName = raw["primaryName"] as String;
names = (raw["names"] as Iterable<dynamic>).cast();
rawEmoji = raw["surrogates"] as String;
Expand Down
9 changes: 7 additions & 2 deletions lib/src/emoji/emoji_utils.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
part of emoji;
import 'dart:convert';

import 'package:http/http.dart' as http;

import 'package:nyxx/nyxx.dart';
import 'package:nyxx_extensions/nyxx_extensions.dart';

List<EmojiDefinition> _emojisCache = [];

Expand Down Expand Up @@ -26,7 +31,7 @@ Stream<EmojiDefinition> getAllEmojiDefinitions({bool cache = false}) async* {
final rawData = await _downloadEmojiData();

for (final emojiDefinition in rawData["emojiDefinitions"]) {
final definition = EmojiDefinition._new(emojiDefinition as RawApiMap);
final definition = EmojiDefinition(emojiDefinition as RawApiMap);

if (cache) {
_emojisCache.add(definition);
Expand Down
3 changes: 0 additions & 3 deletions lib/utils.dart

This file was deleted.

13 changes: 6 additions & 7 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
name: nyxx_extensions
version: 3.2.0
description: Nyxx Extensions Module. 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
version: 4.0.0
description: Extensions to the Discord API provided in nyxx, including pagination support and message sanitization.
repository: https://github.com/nyxx-discord/nyxx_extensions
documentation: https://nyxx.l7ssha.xyz
issue_tracker: https://github.com/nyxx-discord/nyxx/issues
issue_tracker: https://github.com/nyxx-discord/nyxx_extensions/issues

environment:
sdk: '>=2.13.0 <3.0.0'

dependencies:
http: ^0.13.3
nyxx: ^5.0.0
http: ^1.1.0
nyxx: ^6.0.0-dev.2

dev_dependencies:
coverage: ^1.0.3
Expand Down
Empty file removed test/interaction/.gitkeep
Empty file.
4 changes: 1 addition & 3 deletions test/unit/unit.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import "dart:async";

import "package:nyxx/nyxx.dart";
import "package:nyxx_extensions/embed_builder_extension.dart";
import "package:nyxx_extensions/emoji.dart";
import "package:nyxx_extensions/src/utils.dart";
import "package:nyxx_extensions/nyxx_extensions.dart";
import "package:test/expect.dart";
import "package:test/scaffolding.dart";

Expand Down

0 comments on commit 93d2c54

Please sign in to comment.