Skip to content

Commit d1ffa45

Browse files
committed
fix(message): Fix handling of a message thread leads to a NameError
Signed-off-by: Mathieu Corsham <[email protected]>
1 parent f15100b commit d1ffa45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

discord/message.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
from .mixins import Hashable
6060
from .sticker import Sticker
6161
from .http import handle_message_parameters
62-
from .channel import PartialMessageable
62+
from .channel import PartialMessageable, ThreadChannel
6363

6464
if TYPE_CHECKING:
6565
from os import PathLike
@@ -76,7 +76,7 @@
7676
from .mentions import AllowedMentions
7777
from .abc import Messageable, Snowflake
7878
from .sticker import GuildSticker
79-
from .channel import TextChannel, VoiceChannel, StageChannel, ThreadChannel, TextChannel, ForumChannel, ForumPost
79+
from .channel import TextChannel, VoiceChannel, StageChannel, TextChannel, ForumChannel, ForumPost
8080

8181
MentionableChannel = Union[TextChannel, VoiceChannel, StageChannel, ThreadChannel, TextChannel, ForumChannel, ForumPost]
8282

0 commit comments

Comments
 (0)