diff --git a/discord/state.py b/discord/state.py index 17804a6b8..322204ba8 100644 --- a/discord/state.py +++ b/discord/state.py @@ -103,7 +103,7 @@ if TYPE_CHECKING: from .types.voice import GuildVoiceState T = TypeVar('T') - Channel = Union[GuildChannel, VocalGuildChannel, PrivateChannel, PartialMessageable] + Channel = Union[GuildChannel, VocalGuildChannel, PrivateChannel, PartialMessageable, ForumChannel] MISSING = utils.MISSING _log = logging.getLogger(__name__) diff --git a/docs/api.rst b/docs/api.rst index 441323c9f..fef84d834 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -3249,6 +3249,22 @@ of :class:`enum.Enum`. An alias for :attr:`paragraph`. +.. class:: AppCommandType + + The type of application command. + + .. versionadded:: 2.0 + + .. attribute:: chat_input + + A slash command. + .. attribute:: user + + A user context menu command. + .. attribute:: message + + A message context menu command. + .. class:: AppCommandOptionType The application command's option type. This is usually the type of parameter an application command takes. @@ -3289,23 +3305,6 @@ of :class:`enum.Enum`. An attachment parameter. -.. class:: AppCommandType - - The type of application command. - - .. versionadded:: 2.0 - - .. attribute:: chat_input - - A slash command. - .. attribute:: user - - A user context menu command. - .. attribute:: message - - A message context menu command. - - .. _discord-api-audit-logs: Audit Log Data diff --git a/docs/index.rst b/docs/index.rst index 04ea780c2..307ffbc11 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -72,4 +72,5 @@ If you're looking for something related to the project itself, it's here. whats_new version_guarantees - migrating + migrating_from_dpy + migrating \ No newline at end of file