2021-08-31 17:54:09 +02:00

30 lines
574 B
TypeScript

import { Column, Entity, JoinColumn, ManyToOne } from "typeorm";
import { BaseClass } from "./BaseClass";
import { Guild } from "./Guild";
import { Role } from "./Role";
@Entity("emojis")
export class Emoji extends BaseClass {
@Column()
animated: boolean;
@Column()
available: boolean; // whether this emoji can be used, may be false due to loss of Server Boosts
@Column()
guild_id: string;
@JoinColumn({ name: "guild_id" })
@ManyToOne(() => Guild)
guild: Guild;
@Column()
managed: boolean;
@Column()
name: string;
@Column()
require_colons: boolean;
}