Skip to content
This repository was archived by the owner on Dec 26, 2022. It is now read-only.

Commit e1841a1

Browse files
authored
🔀 Merge pull request #317 from Lunarmagpie/command_register_fix
🐛 Fixed command registration and closes #256
2 parents 532f338 + cabd82e commit e1841a1

File tree

5 files changed

+227
-244
lines changed

5 files changed

+227
-244
lines changed

pincer/commands/__init__.py

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,38 @@
11
# Copyright Pincer 2021-Present
22
# Full MIT License can be found in `LICENSE` at the project root.
33

4-
from .commands import command, user_command, message_command, ChatCommandHandler
4+
from .commands import (
5+
command,
6+
user_command,
7+
message_command,
8+
ChatCommandHandler,
9+
hash_app_command,
10+
hash_app_command_params,
11+
)
512
from .arg_types import (
6-
CommandArg, Description, Choice, Choices, ChannelTypes, MaxValue, MinValue,
7-
Modifier
13+
CommandArg,
14+
Description,
15+
Choice,
16+
Choices,
17+
ChannelTypes,
18+
MaxValue,
19+
MinValue,
20+
Modifier,
821
)
922

1023
__all__ = (
11-
"ChannelTypes", "ChatCommandHandler", "Choice", "Choices",
12-
"CommandArg", "Description", "MaxValue", "MinValue", "Modifier", "command",
13-
"message_command", "user_command"
24+
"ChannelTypes",
25+
"ChatCommandHandler",
26+
"Choice",
27+
"Choices",
28+
"CommandArg",
29+
"Description",
30+
"MaxValue",
31+
"MinValue",
32+
"Modifier",
33+
"command",
34+
"message_command",
35+
"user_command",
36+
"hash_app_command",
37+
"hash_app_command_params",
1438
)

0 commit comments

Comments
 (0)