Skip to content
This repository was archived by the owner on Dec 26, 2022. It is now read-only.

Commit 5715af2

Browse files
Merge pull request #351 from drawbu/main
✨ Adding Pillow Images support for list to message
2 parents 7fa2f52 + 70e7485 commit 5715af2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pincer/utils/convert_message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def convert_message(client: Client, message: MessageConvertable) -> Message:
6767
def list_to_message_dict(item, kwargs):
6868
if isinstance(item, Embed):
6969
kwargs["embeds"].append(item)
70-
elif PILLOW_IMPORT and isinstance(item, File):
70+
elif isinstance(item, File) or (PILLOW_IMPORT and isinstance(item, Image)):
7171
kwargs["attachments"].append(item)
7272
elif isinstance(item, MessageComponent):
7373
kwargs["components"].append(item)

0 commit comments

Comments
 (0)