소스 검색

Fix bug with attachment returns

Kirk Trombley 4 년 전
부모
커밋
60a9344174
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/rollbot/decorators/as_command.py

+ 1 - 1
lib/rollbot/decorators/as_command.py

@@ -82,7 +82,7 @@ def _make_response(message: Message, result: Any) -> Response:
     if isinstance(result, str):
         return Response.from_message(message, text=result)
     if isinstance(result, Attachment):
-        return Response.from_message(message, attachments=[Attachment])
+        return Response.from_message(message, attachments=[result])
     return Response.from_message(message, text=str(result))