TripleM
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
3 additions and
8 deletions
-
discord/ext/commands/cog.py
-
discord/ext/commands/context.py
-
discord/ext/commands/help.py
|
|
@ -24,8 +24,7 @@ DEALINGS IN THE SOFTWARE. |
|
|
|
from __future__ import annotations |
|
|
|
|
|
|
|
import inspect |
|
|
|
import discord |
|
|
|
from discord.utils import maybe_coroutine |
|
|
|
from discord.utils import maybe_coroutine, MISSING |
|
|
|
|
|
|
|
from typing import Any, Callable, Dict, Generator, List, Optional, TYPE_CHECKING, Tuple, TypeVar |
|
|
|
|
|
|
@ -45,8 +44,6 @@ __all__ = ( |
|
|
|
|
|
|
|
FuncT = TypeVar('FuncT', bound=Callable[..., Any]) |
|
|
|
|
|
|
|
MISSING: Any = discord.utils.MISSING |
|
|
|
|
|
|
|
|
|
|
|
class CogMeta(type): |
|
|
|
"""A metaclass for defining a cog. |
|
|
|
|
|
@ -28,6 +28,7 @@ from typing import TYPE_CHECKING, Any, AsyncIterator, Dict, Generic, List, Optio |
|
|
|
|
|
|
|
import discord.abc |
|
|
|
import discord.utils |
|
|
|
from discord.utils import MISSING |
|
|
|
from discord.message import Message |
|
|
|
|
|
|
|
from ._types import BotT |
|
|
@ -54,8 +55,6 @@ __all__ = ( |
|
|
|
) |
|
|
|
# fmt: on |
|
|
|
|
|
|
|
MISSING: Any = discord.utils.MISSING |
|
|
|
|
|
|
|
|
|
|
|
T = TypeVar('T') |
|
|
|
CogT = TypeVar('CogT', bound="Cog") |
|
|
|
|
|
@ -45,6 +45,7 @@ from typing import ( |
|
|
|
) |
|
|
|
|
|
|
|
import discord.utils |
|
|
|
from discord.utils import MISSING |
|
|
|
|
|
|
|
from .core import Group, Command, get_signature_parameters |
|
|
|
from .errors import CommandError |
|
|
@ -75,8 +76,6 @@ __all__ = ( |
|
|
|
|
|
|
|
FuncT = TypeVar('FuncT', bound=Callable[..., Any]) |
|
|
|
|
|
|
|
MISSING: Any = discord.utils.MISSING |
|
|
|
|
|
|
|
# help -> shows info of bot on top/bottom and lists subcommands |
|
|
|
# help command -> shows detailed info of command |
|
|
|
# help command <subcommand chain> -> same as above |
|
|
|