Skip to content

Commit

Permalink
Add aliases, restructure library
Browse files Browse the repository at this point in the history
  • Loading branch information
hypergonial committed Dec 31, 2023
1 parent 7b0fb82 commit c33e8ab
Show file tree
Hide file tree
Showing 46 changed files with 943 additions and 876 deletions.
27 changes: 16 additions & 11 deletions arc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@
from alluka import Client as Injector
from alluka import inject

from .client import Client, GatewayClient, RESTClient
from arc import abc, command

from .abc import Option
from .client import Client, GatewayClient, GatewayContext, GatewayPlugin, RESTClient, RESTContext, RESTPlugin
from .command import (
AttachmentParams,
BoolParams,
CallableCommandBase,
CallableCommandProto,
ChannelParams,
FloatParams,
IntParams,
MentionableParams,
MessageCommand,
Option,
RoleParams,
SlashCommand,
SlashGroup,
Expand All @@ -36,12 +36,12 @@
slash_subcommand,
user_command,
)
from .context import AutocompleteData, AutodeferMode, Context
from .context import AutocompleteData, AutodeferMode, Context, InteractionResponse
from .errors import ArcError, AutocompleteError, CommandInvokeError
from .events import ArcEvent, CommandErrorEvent
from .extension import loader, unloader
from .internal.about import __author__, __author_email__, __license__, __maintainer__, __url__, __version__
from .plugin import GatewayPlugin, Plugin, RESTPlugin
from .plugin import GatewayPluginBase, PluginBase, RESTPluginBase

__all__ = (
"__version__",
Expand All @@ -54,8 +54,6 @@
"inject",
"Injector",
"AutocompleteData",
"CallableCommandProto",
"CallableCommandBase",
"Option",
"Context",
"Context",
Expand Down Expand Up @@ -84,13 +82,20 @@
"ArcError",
"AutocompleteError",
"CommandInvokeError",
"Plugin",
"RESTPlugin",
"GatewayPlugin",
"PluginBase",
"RESTPluginBase",
"GatewayPluginBase",
"loader",
"unloader",
"ArcEvent",
"CommandErrorEvent",
"InteractionResponse",
"GatewayContext",
"RESTContext",
"RESTPlugin",
"GatewayPlugin",
"abc",
"command",
)

# MIT License
Expand Down
18 changes: 17 additions & 1 deletion arc/abc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
from .client import Client
from .command import CallableCommandBase, CallableCommandProto, CommandBase, CommandProto
from .error_handler import HasErrorHandler
from .option import CommandOptionBase, Option, OptionBase, OptionParams, OptionWithChoices, OptionWithChoicesParams

__all__ = ("HasErrorHandler",)
__all__ = (
"HasErrorHandler",
"CommandBase",
"CommandProto",
"CallableCommandProto",
"CallableCommandBase",
"Option",
"OptionBase",
"CommandOptionBase",
"OptionParams",
"OptionWithChoices",
"OptionWithChoicesParams",
"Client",
)
Loading

0 comments on commit c33e8ab

Please sign in to comment.