mirror of
https://github.com/stoatchat/python-client-sdk.git
synced 2026-07-25 08:25:28 -04:00
Fix bug for older python versions
This commit is contained in:
+1
-1
@@ -77,7 +77,7 @@ class Message(Ulid):
|
||||
self.embeds: list[Embed] = [to_embed(embed, state) for embed in data.get("embeds", [])]
|
||||
|
||||
channel = state.get_channel(data["channel"])
|
||||
assert isinstance(channel, Union[TextChannel, GroupDMChannel, DMChannel])
|
||||
assert isinstance(channel, (TextChannel, GroupDMChannel, DMChannel))
|
||||
self.channel: TextChannel | GroupDMChannel | DMChannel = channel
|
||||
|
||||
self.server_id: str | None = self.channel.server_id
|
||||
|
||||
Reference in New Issue
Block a user