diff options
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/util/utility/EmbedHandlers.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/util/utility/EmbedHandlers.ts b/src/api/util/utility/EmbedHandlers.ts index 700f5b55..374d88fd 100644 --- a/src/api/util/utility/EmbedHandlers.ts +++ b/src/api/util/utility/EmbedHandlers.ts @@ -225,7 +225,7 @@ export const EmbedHandlers: { [key: string]: (url: URL) => Promise<Embed | Embed // }, }; - if (media.length > 0) { + if (media && media.length > 0) { embed.image = { width: media[0].width, height: media[0].height, |