Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions taskuary/outbound.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,8 @@ def reply_to_message(store, msg: dict, body: str, to: list = None, cc: list = No
if not chat: raise RuntimeError('this chat message has no channel id to answer in')
connector_id = _source_connector_id(store, 'discord', chat)
pieces = chatformat.split(body, 1900)
if not pieces:
raise RuntimeError("nothing to send")
sent = [discord_send(store, chat, piece, connector_id) if connector_id else
discord_send(store, chat, piece) for piece in pieces]
return sent[0]
Expand Down