mineral 4.0.0-dev.1 mineral: ^4.0.0-dev.1 copied to clipboard
Mineral is a Discord framework for designing discord bots in Dart.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add mineral
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
mineral: ^4.0.0-dev.1
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:mineral/api/common/activity.dart';
import 'package:mineral/api/common/activity_emoji.dart';
import 'package:mineral/api/common/bot.dart';
import 'package:mineral/api/common/channel.dart';
import 'package:mineral/api/common/channel_methods.dart';
import 'package:mineral/api/common/channel_permission_overwrite.dart';
import 'package:mineral/api/common/channel_properties.dart';
import 'package:mineral/api/common/color.dart';
import 'package:mineral/api/common/commands/builder/command_builder.dart';
import 'package:mineral/api/common/commands/builder/command_declaration_builder.dart';
import 'package:mineral/api/common/commands/builder/command_definition_builder.dart';
import 'package:mineral/api/common/commands/builder/command_group_builder.dart';
import 'package:mineral/api/common/commands/builder/sub_command_builder.dart';
import 'package:mineral/api/common/commands/builder/translation.dart';
import 'package:mineral/api/common/commands/command_choice_option.dart';
import 'package:mineral/api/common/commands/command_context_type.dart';
import 'package:mineral/api/common/commands/command_contract.dart';
import 'package:mineral/api/common/commands/command_declaration.dart';
import 'package:mineral/api/common/commands/command_definition.dart';
import 'package:mineral/api/common/commands/command_helper.dart';
import 'package:mineral/api/common/commands/command_option.dart';
import 'package:mineral/api/common/commands/command_option_type.dart';
import 'package:mineral/api/common/commands/command_type.dart';
import 'package:mineral/api/common/components/buttons/button_builder.dart';
import 'package:mineral/api/common/components/buttons/button_type.dart';
import 'package:mineral/api/common/components/component_type.dart';
import 'package:mineral/api/common/components/dialogs/dialog_builder.dart';
import 'package:mineral/api/common/components/dialogs/dialog_element.dart';
import 'package:mineral/api/common/components/dialogs/dialog_element_type.dart';
import 'package:mineral/api/common/components/menus/select_menu_builder.dart';
import 'package:mineral/api/common/components/menus/select_menu_option.dart';
import 'package:mineral/api/common/components/message_component.dart';
import 'package:mineral/api/common/components/row_builder.dart';
import 'package:mineral/api/common/embed/message_embed.dart';
import 'package:mineral/api/common/embed/message_embed_assets.dart';
import 'package:mineral/api/common/embed/message_embed_author.dart';
import 'package:mineral/api/common/embed/message_embed_builder.dart';
import 'package:mineral/api/common/embed/message_embed_color.dart';
import 'package:mineral/api/common/embed/message_embed_field.dart';
import 'package:mineral/api/common/embed/message_embed_footer.dart';
import 'package:mineral/api/common/embed/message_embed_image.dart';
import 'package:mineral/api/common/embed/message_embed_provider.dart';
import 'package:mineral/api/common/embed/message_embed_type.dart';
import 'package:mineral/api/common/emoji.dart';
import 'package:mineral/api/common/image_asset.dart';
import 'package:mineral/api/common/lang.dart';
import 'package:mineral/api/common/managers/message_manager.dart';
import 'package:mineral/api/common/message.dart';
import 'package:mineral/api/common/message_properties.dart';
import 'package:mineral/api/common/message_type.dart';
import 'package:mineral/api/common/partial_application.dart';
import 'package:mineral/api/common/partial_emoji.dart';
import 'package:mineral/api/common/permission.dart';
import 'package:mineral/api/common/permissions.dart';
import 'package:mineral/api/common/polls/poll.dart';
import 'package:mineral/api/common/polls/poll_answer.dart';
import 'package:mineral/api/common/polls/poll_builder.dart';
import 'package:mineral/api/common/polls/poll_layout.dart';
import 'package:mineral/api/common/polls/poll_question.dart';
import 'package:mineral/api/common/premium_tier.dart';
import 'package:mineral/api/common/presence.dart';
import 'package:mineral/api/common/snowflake.dart';
import 'package:mineral/api/common/sticker.dart';
import 'package:mineral/api/common/types/activity_type.dart';
import 'package:mineral/api/common/types/channel_type.dart';
import 'package:mineral/api/common/types/enhanced_enum.dart';
import 'package:mineral/api/common/types/format_type.dart';
import 'package:mineral/api/common/types/interaction_type.dart';
import 'package:mineral/api/common/types/message_flag_type.dart';
import 'package:mineral/api/common/types/status_type.dart';
import 'package:mineral/api/common/types/sticker_type.dart';
import 'package:mineral/api/common/video_quality.dart';
import 'package:mineral/api/private/channels/private_channel.dart';
import 'package:mineral/api/private/channels/private_group_channel.dart';
import 'package:mineral/api/private/private_message.dart';
import 'package:mineral/api/private/user.dart';
import 'package:mineral/api/private/user_assets.dart';
import 'package:mineral/api/server/builders/member_builder.dart';
import 'package:mineral/api/server/channels/server_announcement_channel.dart';
import 'package:mineral/api/server/channels/server_category_channel.dart';
import 'package:mineral/api/server/channels/server_channel.dart';
import 'package:mineral/api/server/channels/server_forum_channel.dart';
import 'package:mineral/api/server/channels/server_stage_channel.dart';
import 'package:mineral/api/server/channels/server_text_channel.dart';
import 'package:mineral/api/server/channels/server_voice_channel.dart';
import 'package:mineral/api/server/enums/default_message_notification.dart';
import 'package:mineral/api/server/enums/explicit_content_filter.dart';
import 'package:mineral/api/server/enums/forum_layout_types.dart';
import 'package:mineral/api/server/enums/member_flag.dart';
import 'package:mineral/api/server/enums/mfa_level.dart';
import 'package:mineral/api/server/enums/nsfw_level.dart';
import 'package:mineral/api/server/enums/sort_order_forum.dart';
import 'package:mineral/api/server/enums/system_channel_flag.dart';
import 'package:mineral/api/server/enums/verification_level.dart';
import 'package:mineral/api/server/managers/channel_manager.dart';
import 'package:mineral/api/server/managers/emoji_manager.dart';
import 'package:mineral/api/server/managers/member_manager.dart';
import 'package:mineral/api/server/managers/member_role_manager.dart';
import 'package:mineral/api/server/managers/role_manager.dart';
import 'package:mineral/api/server/managers/sticker_manager.dart';
import 'package:mineral/api/server/member.dart';
import 'package:mineral/api/server/member_assets.dart';
import 'package:mineral/api/server/member_flags.dart';
import 'package:mineral/api/server/member_timeout.dart';
import 'package:mineral/api/server/member_voice.dart';
import 'package:mineral/api/server/role.dart';
import 'package:mineral/api/server/server.dart';
import 'package:mineral/api/server/server_assets.dart';
import 'package:mineral/api/server/server_message.dart';
import 'package:mineral/api/server/server_settings.dart';
import 'package:mineral/api/server/server_subscription.dart';
import 'package:mineral/core/container.dart';
import 'package:mineral/domains/commands/command_builder.dart';
import 'package:mineral/domains/commands/command_context.dart';
import 'package:mineral/domains/commands/command_declaration_bucket.dart';
import 'package:mineral/domains/commands/command_interaction_dispatcher.dart';
import 'package:mineral/domains/commands/command_interaction_manager.dart';
import 'package:mineral/domains/commands/contexts/global_command_context.dart';
import 'package:mineral/domains/commands/contexts/guild_command_context.dart';
import 'package:mineral/domains/components/buttons/button_context.dart';
import 'package:mineral/domains/components/buttons/contexts/private_button_context.dart';
import 'package:mineral/domains/components/buttons/contexts/server_button_context.dart';
import 'package:mineral/domains/components/dialog/contexts/private_dialog_context.dart';
import 'package:mineral/domains/components/dialog/contexts/server_dialog_context.dart';
import 'package:mineral/domains/components/dialog/dialog_context.dart';
import 'package:mineral/domains/components/selects/button_context.dart';
import 'package:mineral/domains/components/selects/contexts/private_select_context.dart';
import 'package:mineral/domains/components/selects/contexts/server_select_context.dart';
import 'package:mineral/domains/events/buckets/private_bucket.dart';
import 'package:mineral/domains/events/buckets/server_bucket.dart';
import 'package:mineral/domains/events/contracts/common/ready_event.dart';
import 'package:mineral/domains/events/contracts/private/private_button_click_event.dart';
import 'package:mineral/domains/events/contracts/private/private_channel_create_event.dart';
import 'package:mineral/domains/events/contracts/private/private_channel_delete_event.dart';
import 'package:mineral/domains/events/contracts/private/private_channel_pins_update_event.dart';
import 'package:mineral/domains/events/contracts/private/private_channel_update_event.dart';
import 'package:mineral/domains/events/contracts/private/private_dialog_submit_event.dart';
import 'package:mineral/domains/events/contracts/private/private_message_create_event.dart';
import 'package:mineral/domains/events/contracts/private/private_text_select_event.dart';
import 'package:mineral/domains/events/contracts/private/private_user_select_event.dart';
import 'package:mineral/domains/events/contracts/server/server_ban_add_event.dart';
import 'package:mineral/domains/events/contracts/server/server_ban_remove_event.dart';
import 'package:mineral/domains/events/contracts/server/server_button_click_event.dart';
import 'package:mineral/domains/events/contracts/server/server_channel_create_event.dart';
import 'package:mineral/domains/events/contracts/server/server_channel_delete_event.dart';
import 'package:mineral/domains/events/contracts/server/server_channel_pins_update_event.dart';
import 'package:mineral/domains/events/contracts/server/server_channel_select_event.dart';
import 'package:mineral/domains/events/contracts/server/server_channel_update_event.dart';
import 'package:mineral/domains/events/contracts/server/server_create_event.dart';
import 'package:mineral/domains/events/contracts/server/server_delete_event.dart';
import 'package:mineral/domains/events/contracts/server/server_dialog_submit_event.dart';
import 'package:mineral/domains/events/contracts/server/server_emojis_update_event.dart';
import 'package:mineral/domains/events/contracts/server/server_member_add_event.dart';
import 'package:mineral/domains/events/contracts/server/server_member_remove_event.dart';
import 'package:mineral/domains/events/contracts/server/server_member_select_event.dart';
import 'package:mineral/domains/events/contracts/server/server_member_update_event.dart';
import 'package:mineral/domains/events/contracts/server/server_message_create_event.dart';
import 'package:mineral/domains/events/contracts/server/server_presence_update_event.dart';
import 'package:mineral/domains/events/contracts/server/server_role_select_event.dart';
import 'package:mineral/domains/events/contracts/server/server_roles_create_event.dart';
import 'package:mineral/domains/events/contracts/server/server_roles_remove_event.dart';
import 'package:mineral/domains/events/contracts/server/server_roles_update_event.dart';
import 'package:mineral/domains/events/contracts/server/server_stickers_update_event.dart';
import 'package:mineral/domains/events/contracts/server/server_text_select_event.dart';
import 'package:mineral/domains/events/contracts/server/server_update_event.dart';
import 'package:mineral/domains/events/event.dart';
import 'package:mineral/domains/events/event_bucket.dart';
import 'package:mineral/domains/events/event_dispatcher.dart';
import 'package:mineral/domains/events/event_listener.dart';
import 'package:mineral/domains/events/internal_event_params.dart';
import 'package:mineral/domains/events/types/listenable_dispatcher.dart';
import 'package:mineral/domains/events/types/listenable_event.dart';
import 'package:mineral/domains/providers/provider.dart';
import 'package:mineral/domains/providers/provider_manager.dart';
import 'package:mineral/infrastructure/commons/file.dart';
import 'package:mineral/infrastructure/commons/helper.dart';
import 'package:mineral/infrastructure/commons/listenable.dart';
import 'package:mineral/infrastructure/commons/utils.dart';
import 'package:mineral/infrastructure/internals/cache/cache_provider_contract.dart';
import 'package:mineral/infrastructure/internals/container/ioc_container.dart';
import 'package:mineral/infrastructure/internals/datastore/data_store.dart';
import 'package:mineral/infrastructure/internals/datastore/data_store_part.dart';
import 'package:mineral/infrastructure/internals/datastore/parts/channel_part.dart';
import 'package:mineral/infrastructure/internals/datastore/parts/interaction_part.dart';
import 'package:mineral/infrastructure/internals/datastore/parts/member_part.dart';
import 'package:mineral/infrastructure/internals/datastore/parts/message_part.dart';
import 'package:mineral/infrastructure/internals/datastore/parts/role_part.dart';
import 'package:mineral/infrastructure/internals/datastore/parts/server_part.dart';
import 'package:mineral/infrastructure/internals/datastore/parts/user_part.dart';
import 'package:mineral/infrastructure/internals/environment/app_env.dart';
import 'package:mineral/infrastructure/internals/environment/env_schema.dart';
import 'package:mineral/infrastructure/internals/environment/environment.dart';
import 'package:mineral/infrastructure/internals/hmr/entities/directory_watcher_element.dart';
import 'package:mineral/infrastructure/internals/hmr/entities/file_watcher_element.dart';
import 'package:mineral/infrastructure/internals/hmr/entities/watcher_element.dart';
import 'package:mineral/infrastructure/internals/hmr/hot_module_reloading.dart';
import 'package:mineral/infrastructure/internals/hmr/watcher.dart';
import 'package:mineral/infrastructure/internals/hmr/watcher_builder.dart';
import 'package:mineral/infrastructure/internals/hmr/watcher_config.dart';
import 'package:mineral/infrastructure/internals/http/discord_header.dart';
import 'package:mineral/infrastructure/internals/http/http_endpoint.dart';
import 'package:mineral/infrastructure/internals/http/request_executor.dart';
import 'package:mineral/infrastructure/internals/interactions/interaction.dart';
import 'package:mineral/infrastructure/internals/interactions/types/interaction_callback_type.dart';
import 'package:mineral/infrastructure/internals/interactions/types/interaction_context_type.dart';
import 'package:mineral/infrastructure/internals/interactions/types/interaction_contract.dart';
import 'package:mineral/infrastructure/internals/interactions/types/interaction_dispatcher_contract.dart';
import 'package:mineral/infrastructure/internals/marshaller/cache_key.dart';
import 'package:mineral/infrastructure/internals/marshaller/factories/channels/private_channel_factory.dart';
import 'package:mineral/infrastructure/internals/marshaller/factories/channels/server_announcement_channel_factory.dart';
import 'package:mineral/infrastructure/internals/marshaller/factories/channels/server_category_channel_factory.dart';
import 'package:mineral/infrastructure/internals/marshaller/factories/channels/server_forum_channel_factory.dart';
import 'package:mineral/infrastructure/internals/marshaller/factories/channels/server_stage_channel_factory.dart';
import 'package:mineral/infrastructure/internals/marshaller/factories/channels/server_text_channel_factory.dart';
import 'package:mineral/infrastructure/internals/marshaller/factories/channels/server_voice_channel_factory.dart';
import 'package:mineral/infrastructure/internals/marshaller/factories/messages/private_message_factory.dart';
import 'package:mineral/infrastructure/internals/marshaller/factories/messages/server_message_factory.dart';
import 'package:mineral/infrastructure/internals/marshaller/marshaller.dart';
import 'package:mineral/infrastructure/internals/marshaller/serializer_bucket.dart';
import 'package:mineral/infrastructure/internals/marshaller/serializers/channel_permission_overwrite_serializer.dart';
import 'package:mineral/infrastructure/internals/marshaller/serializers/channel_serializer.dart';
import 'package:mineral/infrastructure/internals/marshaller/serializers/embed_serializer.dart';
import 'package:mineral/infrastructure/internals/marshaller/serializers/emoji_serializer.dart';
import 'package:mineral/infrastructure/internals/marshaller/serializers/global_command_context_serializer.dart';
import 'package:mineral/infrastructure/internals/marshaller/serializers/member_serializer.dart';
import 'package:mineral/infrastructure/internals/marshaller/serializers/poll_serializer.dart';
import 'package:mineral/infrastructure/internals/marshaller/serializers/private_message_serializer.dart';
import 'package:mineral/infrastructure/internals/marshaller/serializers/role_serializer.dart';
import 'package:mineral/infrastructure/internals/marshaller/serializers/server_assets_serializer.dart';
import 'package:mineral/infrastructure/internals/marshaller/serializers/server_command_context_serializer.dart';
import 'package:mineral/infrastructure/internals/marshaller/serializers/server_message_serializer.dart';
import 'package:mineral/infrastructure/internals/marshaller/serializers/server_role_serializer.dart';
import 'package:mineral/infrastructure/internals/marshaller/serializers/server_serializer.dart';
import 'package:mineral/infrastructure/internals/marshaller/serializers/server_settings_serializer.dart';
import 'package:mineral/infrastructure/internals/marshaller/serializers/server_subscription_serializer.dart';
import 'package:mineral/infrastructure/internals/marshaller/serializers/sticker_serializer.dart';
import 'package:mineral/infrastructure/internals/marshaller/serializers/user_serializer.dart';
import 'package:mineral/infrastructure/internals/marshaller/types/channel_factory.dart';
import 'package:mineral/infrastructure/internals/marshaller/types/message_factory.dart';
import 'package:mineral/infrastructure/internals/marshaller/types/serializer.dart';
import 'package:mineral/infrastructure/internals/packets/listenable_packet.dart';
import 'package:mineral/infrastructure/internals/packets/listeners/channel_create_packet.dart';
import 'package:mineral/infrastructure/internals/packets/listeners/channel_delete_packet.dart';
import 'package:mineral/infrastructure/internals/packets/listeners/channel_pins_update_packet.dart';
import 'package:mineral/infrastructure/internals/packets/listeners/channel_update_packet.dart';
import 'package:mineral/infrastructure/internals/packets/listeners/guild_audit_log_entry_create_packet.dart';
import 'package:mineral/infrastructure/internals/packets/listeners/guild_ban_add_packet.dart';
import 'package:mineral/infrastructure/internals/packets/listeners/guild_ban_remove_packet.dart';
import 'package:mineral/infrastructure/internals/packets/listeners/guild_create_packet.dart';
import 'package:mineral/infrastructure/internals/packets/listeners/guild_delete_packet.dart';
import 'package:mineral/infrastructure/internals/packets/listeners/guild_emojis_update_packet.dart';
import 'package:mineral/infrastructure/internals/packets/listeners/guild_member_add_packet.dart';
import 'package:mineral/infrastructure/internals/packets/listeners/guild_member_chunk_packet.dart';
import 'package:mineral/infrastructure/internals/packets/listeners/guild_member_remove_packet.dart';
import 'package:mineral/infrastructure/internals/packets/listeners/guild_member_update_packet.dart';
import 'package:mineral/infrastructure/internals/packets/listeners/guild_role_create_packet.dart';
import 'package:mineral/infrastructure/internals/packets/listeners/guild_role_delete_packet.dart';
import 'package:mineral/infrastructure/internals/packets/listeners/guild_role_update_packet.dart';
import 'package:mineral/infrastructure/internals/packets/listeners/guild_stickers_update_packet.dart';
import 'package:mineral/infrastructure/internals/packets/listeners/guild_update_packet.dart';
import 'package:mineral/infrastructure/internals/packets/listeners/interactions/button_interaction_create_packet.dart';
import 'package:mineral/infrastructure/internals/packets/listeners/interactions/command_interaction_create_packet.dart';
import 'package:mineral/infrastructure/internals/packets/listeners/interactions/dialog_interaction_create_packet.dart';
import 'package:mineral/infrastructure/internals/packets/listeners/interactions/interaction_create_packet.dart';
import 'package:mineral/infrastructure/internals/packets/listeners/interactions/select_interaction_create_packet.dart';
import 'package:mineral/infrastructure/internals/packets/listeners/message_create_packet.dart';
import 'package:mineral/infrastructure/internals/packets/listeners/presence_update_packet.dart';
import 'package:mineral/infrastructure/internals/packets/listeners/ready_packet.dart';
import 'package:mineral/infrastructure/internals/packets/packet_dispatcher.dart';
import 'package:mineral/infrastructure/internals/packets/packet_listener.dart';
import 'package:mineral/infrastructure/internals/packets/packet_type.dart';
import 'package:mineral/infrastructure/internals/wss/builders/discord_message_builder.dart';
import 'package:mineral/infrastructure/internals/wss/constants/op_code.dart';
import 'package:mineral/infrastructure/internals/wss/constants/shard_disconnect_error.dart';
import 'package:mineral/infrastructure/internals/wss/dispatchers/shard_authentication.dart';
import 'package:mineral/infrastructure/internals/wss/dispatchers/shard_data.dart';
import 'package:mineral/infrastructure/internals/wss/dispatchers/shard_network_error.dart';
import 'package:mineral/infrastructure/internals/wss/shard.dart';
import 'package:mineral/infrastructure/internals/wss/shard_message.dart';
import 'package:mineral/infrastructure/internals/wss/sharding_config.dart';
import 'package:mineral/infrastructure/io/exceptions/missing_method_exception.dart';
import 'package:mineral/infrastructure/io/exceptions/missing_property_exception.dart';
import 'package:mineral/infrastructure/io/exceptions/token_exception.dart';
import 'package:mineral/infrastructure/io/exceptions/too_many_element_exception.dart';
import 'package:mineral/infrastructure/kernel/client.dart';
import 'package:mineral/infrastructure/kernel/kernel.dart';
import 'package:mineral/infrastructure/kernel/mineral_client.dart';
import 'package:mineral/infrastructure/services/http/header.dart';
import 'package:mineral/infrastructure/services/http/http_client.dart';
import 'package:mineral/infrastructure/services/http/http_client_config.dart';
import 'package:mineral/infrastructure/services/http/http_client_status.dart';
import 'package:mineral/infrastructure/services/http/http_interceptor.dart';
import 'package:mineral/infrastructure/services/http/http_request_option.dart';
import 'package:mineral/infrastructure/services/http/request.dart';
import 'package:mineral/infrastructure/services/http/response.dart';
import 'package:mineral/infrastructure/services/http/type/response_code.dart';
import 'package:mineral/infrastructure/services/logger/logger.dart';
import 'package:mineral/infrastructure/services/placeholder/env_placeholder.dart';
import 'package:mineral/infrastructure/services/placeholder/placeholder.dart';
import 'package:mineral/infrastructure/services/wss/interceptor.dart';
import 'package:mineral/infrastructure/services/wss/websocket_client.dart';
import 'package:mineral/infrastructure/services/wss/websocket_message.dart';
import 'package:mineral/infrastructure/services/wss/websocket_requested_message.dart';