summaryrefslogtreecommitdiff
path: root/src/reddit.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-09-07 14:00:39 -0700
committerFuwn <[email protected]>2025-09-07 14:00:39 -0700
commit34d7302a7d1db91bd9cdb7c698b999d65ea99cbb (patch)
treeb2df57f4cbe0a53c7f6aa9858b48a1c9af67ed7d /src/reddit.ts
parentstyle(reddit): Fix lints (diff)
downloadumabotdiscord-34d7302a7d1db91bd9cdb7c698b999d65ea99cbb.tar.xz
umabotdiscord-34d7302a7d1db91bd9cdb7c698b999d65ea99cbb.zip
fix: Properly handle videos
Diffstat (limited to 'src/reddit.ts')
-rw-r--r--src/reddit.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/reddit.ts b/src/reddit.ts
index aaadcd2..6fe576e 100644
--- a/src/reddit.ts
+++ b/src/reddit.ts
@@ -13,6 +13,22 @@ export interface RedditPost {
is_gallery?: boolean;
over_18: boolean;
link_flair_text?: string;
+ thumbnail?: string;
+ preview?: {
+ images: Array<{
+ source: {
+ url: string;
+ width: number;
+ height: number;
+ };
+ resolutions: Array<{
+ url: string;
+ width: number;
+ height: number;
+ }>;
+ }>;
+ enabled: boolean;
+ };
media?: {
reddit_video?: {
fallback_url: string;