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

Commit 09f6250

Browse files
✨ Adding Interaction Flag support for list to message
1 parent efb5562 commit 09f6250

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pincer/utils/convert_message.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
from __future__ import annotations
55

6+
from collections.abc import Iterable
67
from typing import TYPE_CHECKING, Tuple, List
78
from typing import Union
89

@@ -71,3 +72,5 @@ def list_to_message_dict(item, kwargs):
7172
kwargs["components"].append(item)
7273
elif isinstance(item, str):
7374
kwargs["content"] = item
75+
elif isinstance(item, InteractionFlags):
76+
kwargs["flags"] = item

0 commit comments

Comments
 (0)