summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-10-03 23:50:34 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-10-03 23:50:34 +1100
commit83ed2c8fdd7ca27bce7c0bedc09aad41fa69f2f7 (patch)
treef2bb65954697decbca17eba65f3f744b6092283a /src/util
parentTwitter embeds (diff)
downloadserver-83ed2c8fdd7ca27bce7c0bedc09aad41fa69f2f7.tar.xz
Embed cache
Diffstat (limited to '')
-rw-r--r--src/util/entities/EmbedCache.ts12
-rw-r--r--src/util/entities/index.ts3
2 files changed, 14 insertions, 1 deletions
diff --git a/src/util/entities/EmbedCache.ts b/src/util/entities/EmbedCache.ts
new file mode 100644

index 00000000..14881ccf --- /dev/null +++ b/src/util/entities/EmbedCache.ts
@@ -0,0 +1,12 @@ +import { BaseClass } from "./BaseClass"; +import { Entity, Column } from "typeorm"; +import { Embed } from "./Message"; + +@Entity("embed_cache") +export class EmbedCache extends BaseClass { + @Column() + url: string; + + @Column({ type: "simple-json" }) + embed: Embed; +} \ No newline at end of file diff --git a/src/util/entities/index.ts b/src/util/entities/index.ts
index c439a4b7..04f3bace 100644 --- a/src/util/entities/index.ts +++ b/src/util/entities/index.ts
@@ -7,6 +7,7 @@ export * from "./Categories"; export * from "./Channel"; export * from "./Config"; export * from "./ConnectedAccount"; +export * from "./EmbedCache"; export * from "./Emoji"; export * from "./Guild"; export * from "./Invite"; @@ -29,4 +30,4 @@ export * from "./VoiceState"; export * from "./Webhook"; export * from "./ClientRelease"; export * from "./BackupCodes"; -export * from "./Note"; +export * from "./Note"; \ No newline at end of file