generated from nhcarrigan/template
fix: include correct fields oops
This commit is contained in:
parent
a85b478dba
commit
258d9a88e2
@ -45,7 +45,8 @@ export const checkAirtableRecords = async (bot: ExtendedClient) => {
|
|||||||
Reference: images,
|
Reference: images,
|
||||||
"Contact Method": platform,
|
"Contact Method": platform,
|
||||||
Handle: handle,
|
Handle: handle,
|
||||||
"Anything Else?": note,
|
"What would you like us to draw?": note,
|
||||||
|
"Anything Else?": additional,
|
||||||
} = record.fields;
|
} = record.fields;
|
||||||
const files: AttachmentBuilder[] = [];
|
const files: AttachmentBuilder[] = [];
|
||||||
for (const imageUrl of images) {
|
for (const imageUrl of images) {
|
||||||
@ -58,7 +59,10 @@ export const checkAirtableRecords = async (bot: ExtendedClient) => {
|
|||||||
files.push(file);
|
files.push(file);
|
||||||
}
|
}
|
||||||
await bot.comm.send({
|
await bot.comm.send({
|
||||||
content: `**FOR:** ${name} - Contact via ${platform}: ${handle}\n\n${note}\n\nReferences:`,
|
content: `**FOR:** ${name} - Contact via ${platform}: ${handle}\n\n${note?.slice(
|
||||||
|
0,
|
||||||
|
1000
|
||||||
|
)}\n\n${additional?.slice(0, 1000)}\n\nReferences:`,
|
||||||
files,
|
files,
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user