diff options
| author | Stocker <[email protected]> | 2021-08-19 20:19:24 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-08-19 20:19:24 -0400 |
| commit | b5a717fb80e96232b5869ad49661b2777056b705 (patch) | |
| tree | 34f50026a1b975297f11f0667a16bf833aabde04 | |
| parent | Add Thread to the return type of Client.get_channel (diff) | |
| download | discord.py-b5a717fb80e96232b5869ad49661b2777056b705.tar.xz discord.py-b5a717fb80e96232b5869ad49661b2777056b705.zip | |
Fix missing typehint that causes an error for a type checker
| -rw-r--r-- | discord/threads.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/discord/threads.py b/discord/threads.py index 0550916c..d8814262 100644 --- a/discord/threads.py +++ b/discord/threads.py @@ -46,6 +46,7 @@ if TYPE_CHECKING: ThreadMetadata, ThreadArchiveDuration, ) + from .types.snowflake import SnowflakeList from .guild import Guild from .channel import TextChannel, CategoryChannel from .member import Member @@ -394,7 +395,7 @@ class Thread(Messageable, Hashable): if len(messages) > 100: raise ClientException('Can only bulk delete messages up to 100 messages') - message_ids = [m.id for m in messages] + message_ids: SnowflakeList = [m.id for m in messages] await self._state.http.delete_messages(self.id, message_ids) async def purge( |