From 9a511cd90b20af8598f6ed46163c02e796311ec8 Mon Sep 17 00:00:00 2001 From: Szymon Uglis Date: Fri, 1 Nov 2024 23:14:44 +0100 Subject: [PATCH] Fix missing imports --- Makefile | 4 ++-- lib/nyxx.dart | 13 ++++++++++--- test/integration/rest_integration_test.dart | 3 --- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index bdc3fb124..1aa3fdcb0 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ help: @fgrep -h "##" $(MAKEFILE_LIST) | sed -e 's/\(\:.*\#\#\)/\:\ /' | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//' format: ## Run dart format - dart format -l120 . + dart format -l 160 . fix: ## Run dart fix dart fix --apply @@ -23,4 +23,4 @@ fix-project: analyze fix format ## Fix whole project test-project: unit-tests integration-tests ## Run all tests -check-project: fix-project test-project ## Run all checks \ No newline at end of file +check-project: fix-project test-project ## Run all checks diff --git a/lib/nyxx.dart b/lib/nyxx.dart index bc5cef62f..2b5262828 100644 --- a/lib/nyxx.dart +++ b/lib/nyxx.dart @@ -16,7 +16,8 @@ export 'src/errors.dart' AlreadyRespondedError, PluginError, ClientClosedError, - SkuNotFoundException; + SkuNotFoundException, + SoundboardSoundNotFoundException; export 'src/builders/builder.dart' show Builder, CreateBuilder, UpdateBuilder; export 'src/builders/image.dart' show ImageBuilder; @@ -73,6 +74,8 @@ export 'src/builders/application_command.dart' export 'src/builders/interaction_response.dart' show InteractionResponseBuilder, ModalBuilder, InteractionCallbackType; export 'src/builders/entitlement.dart' show TestEntitlementBuilder, TestEntitlementType; export 'src/builders/application.dart' show ApplicationUpdateBuilder, ApplicationIntegrationTypeConfigurationBuilder; +export 'src/builders/soundboard.dart' show SoundboardSoundBuilder, SoundboardSoundUpdateBuilder; +export 'src/builders/sound.dart' show SoundBuilder; export 'src/cache/cache.dart' show Cache, CacheConfig, CacheManager; @@ -106,10 +109,10 @@ export 'src/http/managers/interaction_manager.dart' show InteractionManager; export 'src/http/managers/entitlement_manager.dart' show EntitlementManager; export 'src/http/managers/sku_manager.dart' show SkuManager; export 'src/http/managers/subscription_manager.dart' show SubscriptionManager; +export 'src/http/managers/soundboard_manager.dart' show SoundboardManager, GuildSoundboardManager, GlobalSoundboardManager; export 'src/gateway/gateway.dart' show Gateway; export 'src/gateway/event_parser.dart' show EventParser; -export 'src/gateway/shard_runner.dart' show ShardRunner, ShardConnection; export 'src/gateway/message.dart' show Disconnecting, Dispose, ErrorReceived, EventReceived, GatewayMessage, Send, Sent, ShardData, ShardMessage, Identify, RequestingIdentify, StartShard; export 'src/gateway/shard.dart' show Shard; @@ -123,6 +126,8 @@ export 'src/models/snowflake_entity/snowflake_entity.dart' show SnowflakeEntity, export 'src/models/user/application_role_connection.dart' show ApplicationRoleConnection; export 'src/models/user/connection.dart' show Connection, ConnectionType, ConnectionVisibility; export 'src/models/user/user.dart' show PartialUser, User, UserFlags, NitroType; +export 'src/models/user/avatar_decoration_data.dart' show AvatarDecorationData; +export 'src/models/soundboard/soundboard.dart' show SoundboardSound, PartialSoundboardSound; export 'src/models/channel/channel.dart' show Channel, ChannelFlags, PartialChannel, ChannelType; export 'src/models/channel/followed_channel.dart' show FollowedChannel; export 'src/models/channel/guild_channel.dart' show GuildChannel; @@ -256,6 +261,8 @@ export 'src/models/gateway/event.dart' UnknownDispatchEvent; export 'src/models/gateway/opcode.dart' show Opcode; export 'src/models/gateway/events/application_command.dart' show ApplicationCommandPermissionsUpdateEvent; +export 'src/models/gateway/events/soundboard.dart' + show SoundboardSoundCreateEvent, SoundboardSoundUpdateEvent, SoundboardSoundDeleteEvent, SoundboardSoundsUpdateEvent; export 'src/models/gateway/events/auto_moderation.dart' show AutoModerationActionExecutionEvent, AutoModerationRuleCreateEvent, AutoModerationRuleDeleteEvent, AutoModerationRuleUpdateEvent; export 'src/models/gateway/events/channel.dart' @@ -312,7 +319,7 @@ export 'src/models/gateway/events/message.dart' export 'src/models/gateway/events/presence.dart' show PresenceUpdateEvent, TypingStartEvent, UserUpdateEvent; export 'src/models/gateway/events/ready.dart' show ReadyEvent, ResumedEvent; export 'src/models/gateway/events/stage_instance.dart' show StageInstanceCreateEvent, StageInstanceDeleteEvent, StageInstanceUpdateEvent; -export 'src/models/gateway/events/voice.dart' show VoiceServerUpdateEvent, VoiceStateUpdateEvent; +export 'src/models/gateway/events/voice.dart' show VoiceServerUpdateEvent, VoiceStateUpdateEvent, VoiceChannelEffectSendEvent, AnimationType; export 'src/models/gateway/events/webhook.dart' show WebhooksUpdateEvent; export 'src/models/gateway/events/entitlement.dart' show EntitlementCreateEvent, EntitlementDeleteEvent, EntitlementUpdateEvent; export 'src/models/presence.dart' diff --git a/test/integration/rest_integration_test.dart b/test/integration/rest_integration_test.dart index 5c462566f..540622d81 100644 --- a/test/integration/rest_integration_test.dart +++ b/test/integration/rest_integration_test.dart @@ -2,9 +2,6 @@ import 'dart:io'; import 'package:mocktail/mocktail.dart'; import 'package:nyxx/nyxx.dart'; -import 'package:nyxx/src/builders/sound.dart'; -import 'package:nyxx/src/builders/soundboard.dart'; -import 'package:nyxx/src/models/soundboard/soundboard.dart'; import 'package:test/test.dart' hide completes; import '../function_completes.dart';