3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 00:35:02 +00:00
zeppelin/backend/src/plugins/ModActions/functions/formatReasonWithAttachments.ts
Jonathan 7e8ffb9ee3
Revert "format: Prettier"
This reverts commit 517ce4f52f.
2021-04-02 23:21:53 -04:00

6 lines
248 B
TypeScript

import { Attachment } from "eris";
export function formatReasonWithAttachments(reason: string, attachments: Attachment[]) {
const attachmentUrls = attachments.map(a => a.url);
return ((reason || "") + " " + attachmentUrls.join(" ")).trim();
}