Add Thread to the return type of Client.get_channel

Also explains some type ignores.
This commit is contained in:
Stocker
2021-08-19 20:18:27 -04:00
committed by GitHub
parent 1d2eaf8526
commit f4d5fcc8f9
3 changed files with 21 additions and 16 deletions

View File

@ -1313,8 +1313,8 @@ msgstr "戻り値の型"
#: discord.Client.get_channel:7 of
#, fuzzy
msgid "Optional[Union[:class:`.abc.GuildChannel`, :class:`.abc.PrivateChannel`]]"
msgstr "Union[:class:`.abc.GuildChannel`, :class:`.abc.PrivateChannel`]"
msgid "Optional[Union[:class:`.abc.GuildChannel`, :class:`.Thread`, :class:`.abc.PrivateChannel`]]"
msgstr "Union[:class:`.abc.GuildChannel`, :class:`.Thread`, :class:`.abc.PrivateChannel`]"
#: discord.Client.get_guild:1 of
#, fuzzy
@ -16949,11 +16949,11 @@ msgstr ":class:`~discord.User`"
#~ ":class:`.Streaming`]] -- ログイン時のアクティビティ。"
#~ msgid ""
#~ "Optional[Union[:class:`.abc.GuildChannel`, "
#~ "Optional[Union[:class:`.abc.GuildChannel`, :class:`.Thread`, "
#~ ":class:`.abc.PrivateChannel`]]: Returns a channel"
#~ " with the given ID."
#~ msgstr ""
#~ "Optional[Union[:class:`.abc.GuildChannel`, "
#~ "Optional[Union[:class:`.abc.GuildChannel`, :class:`.Thread`, "
#~ ":class:`.abc.PrivateChannel`]]: 与えられたIDを持つチャンネルを返します。"
#~ msgid "If not found, returns ``None``."