diff options
| author | Rapptz <[email protected]> | 2021-06-08 10:54:22 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-06-08 10:56:26 -0400 |
| commit | 7dccbace7821cf96965000e593a8006e64a99709 (patch) | |
| tree | 322dc0ca2c02dc019c3cea26b15e8e4b5bba8e7f /discord/state.py | |
| parent | [types] Use proper type for Guild.threads (diff) | |
| download | discord.py-7dccbace7821cf96965000e593a8006e64a99709.tar.xz discord.py-7dccbace7821cf96965000e593a8006e64a99709.zip | |
Refactor Guild to support type hints
This patch also does the following:
* Sets some parameters to be positional only
* Changes Guild.edit to use the MISSING sentinel
* Changes the various create_channel methods to be type safe
* Changes many parameters from Optional[T] to use MISSING
* Changes Guild.create_role to use MISSING sentinel
This refactor is mostly partial but lays a decent foundation
Diffstat (limited to 'discord/state.py')
| -rw-r--r-- | discord/state.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/discord/state.py b/discord/state.py index 94a1a62a..243f2b7b 100644 --- a/discord/state.py +++ b/discord/state.py @@ -44,6 +44,7 @@ from .mentions import AllowedMentions from .partial_emoji import PartialEmoji from .message import Message from .channel import * +from .channel import _channel_factory from .raw_models import * from .member import Member from .role import Role |