mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 14:11:50 +00:00
Hotfix 6
This commit is contained in:
parent
7870b3257b
commit
e3c9dbf851
1 changed files with 6 additions and 0 deletions
|
@ -32,6 +32,12 @@ export const MatchAttachmentTypeTrigger = automodTrigger<MatchResultType>()({
|
||||||
const attachments: any[] = context.message.data.attachments;
|
const attachments: any[] = context.message.data.attachments;
|
||||||
|
|
||||||
for (const attachment of attachments) {
|
for (const attachment of attachments) {
|
||||||
|
// FIXME: Hotfix
|
||||||
|
if (!attachment.filename) {
|
||||||
|
console.warn("No attachment filename:", attachment);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
const attachmentType = attachment.filename
|
const attachmentType = attachment.filename
|
||||||
.split(".")
|
.split(".")
|
||||||
.pop()
|
.pop()
|
||||||
|
|
Loading…
Add table
Reference in a new issue