mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-11 20:55:01 +00:00
6 lines
248 B
TypeScript
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();
|
|
}
|