Browse Source

Allow attachment body to be an async callable

Kirk Trombley 3 years ago
parent
commit
cd3512b3d9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rollbot/rollbot/types.py

+ 1 - 1
rollbot/rollbot/types.py

@@ -25,7 +25,7 @@ __all__ = [
 @dataclass
 class Attachment:
     name: str
-    body: Union[str, bytes, None]
+    body: Union[str, bytes, None, Callable[[], Coroutine[Any, None, Any]]]
 
 
 @dataclass