diff options
Diffstat (limited to 'src/util/entities/Emoji.ts')
-rw-r--r-- | src/util/entities/Emoji.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/util/entities/Emoji.ts b/src/util/entities/Emoji.ts index a2552995..4a453afe 100644 --- a/src/util/entities/Emoji.ts +++ b/src/util/entities/Emoji.ts @@ -1,4 +1,5 @@ -import { Column, Entity, JoinColumn, ManyToOne, RelationId } from "typeorm"; +import "reflect-metadata"; +import { Column, Entity, JoinColumn, ManyToOne, Relation, RelationId } from "typeorm"; import { User } from "."; import { BaseClass } from "./BaseClass"; import { Guild } from "./Guild"; @@ -18,7 +19,7 @@ export class Emoji extends BaseClass { @ManyToOne(() => Guild, { onDelete: "CASCADE" }) - guild: Guild; + guild: Relation<Guild>; @Column({ nullable: true }) @RelationId((emoji: Emoji) => emoji.user) @@ -26,7 +27,7 @@ export class Emoji extends BaseClass { @JoinColumn({ name: "user_id" }) @ManyToOne(() => User) - user: User; + user: Relation<User>; @Column() managed: boolean; |