summary refs log tree commit diff
path: root/util/src/entities/Emoji.ts
diff options
context:
space:
mode:
Diffstat (limited to 'util/src/entities/Emoji.ts')
-rw-r--r--util/src/entities/Emoji.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/src/entities/Emoji.ts b/util/src/entities/Emoji.ts
index 181aff2c..a252d9f4 100644
--- a/util/src/entities/Emoji.ts
+++ b/util/src/entities/Emoji.ts
@@ -15,7 +15,9 @@ export class Emoji extends BaseClass {
 	guild_id: string;
 
 	@JoinColumn({ name: "guild_id" })
-	@ManyToOne(() => Guild)
+	@ManyToOne(() => Guild, {
+		onDelete: "CASCADE",
+	})
 	guild: Guild;
 
 	@Column()