© 2026 Hedgehog Software, LLC
The resource must be a string, Buffer or a valid file stream.
await this.getShardUtil(client).broadcastEval( async (client: any, context: { embeds: any[], attachments: any[], permissions: Record<string, any> }) => { // bla bla bla if (logsChannel && logsChannel.isTextBased()) { await logsChannel.send({ embeds: context.embeds, files: context.attachments }); } } }, { context: { embeds: [ embed ], attachments: [ ...attachments ], permissions: { ViewChannel: PermissionFlagsBits.ViewChannel.toString() } } });
if (key === "icon" || key === "banner") { const imageBuffer: Buffer = Buffer.from(reportedServer[key].split(",")[1], "base64"); const imageType: string = reportedServer[key].split(";")[0].split("/")[1]; const attachment = new AttachmentBuilder(imageBuffer, { name: `${key}.${imageType}`, }); attachments.push(attachment); return `> **${formattedKey}:** [${key}.${imageType}](attachment://${key}.${imageType})`; }