mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-25 18:25:03 +00:00
Finish preliminary rework, ready to test
This commit is contained in:
parent
57893e7f76
commit
d0a1beb809
177 changed files with 854 additions and 707 deletions
|
@ -18,7 +18,10 @@ export async function rehostAttachment(attachment: MessageAttachment, targetChan
|
|||
}
|
||||
|
||||
try {
|
||||
const content: MessageOptions = { content: `Rehost of attachment ${attachment.id}`, files: [{ name: attachment.name ? attachment.name : undefined, attachment: await fsp.readFile(downloaded.path)}]}
|
||||
const content: MessageOptions = {
|
||||
content: `Rehost of attachment ${attachment.id}`,
|
||||
files: [{ name: attachment.name ? attachment.name : undefined, attachment: await fsp.readFile(downloaded.path) }],
|
||||
};
|
||||
const rehostMessage = await targetChannel.send({ content, split: false });
|
||||
return rehostMessage.attachments.values()[0].url;
|
||||
} catch {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue