summary refs log tree commit diff
path: root/src/util/entities/EmbedCache.ts
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
commitc885fd55032f0ffebfdb82a4bd11044e394b8955 (patch)
treef93a6cd35d11302594c25badb3a90ad14c7c2b03 /src/util/entities/EmbedCache.ts
parentTwitter embeds (diff)
downloadserver-c885fd55032f0ffebfdb82a4bd11044e394b8955.tar.xz
Embed cache
Diffstat (limited to '')
-rw-r--r--src/util/entities/EmbedCache.ts12
1 files changed, 12 insertions, 0 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