mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +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;
|
||||
|
||||
for (const attachment of attachments) {
|
||||
// FIXME: Hotfix
|
||||
if (!attachment.filename) {
|
||||
console.warn("No attachment filename:", attachment);
|
||||
continue;
|
||||
}
|
||||
|
||||
const attachmentType = attachment.filename
|
||||
.split(".")
|
||||
.pop()
|
||||
|
|
Loading…
Add table
Reference in a new issue