mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-18 23:09:59 +00:00

When reaction roles are set as exclusive, a user can only have 1 reaction role from that message. Others are removed automatically when picking a role if needed.
24 lines
388 B
TypeScript
24 lines
388 B
TypeScript
import { Entity, Column, PrimaryColumn } from "typeorm";
|
|
|
|
@Entity("reaction_roles")
|
|
export class ReactionRole {
|
|
@Column()
|
|
@PrimaryColumn()
|
|
guild_id: string;
|
|
|
|
@Column()
|
|
@PrimaryColumn()
|
|
channel_id: string;
|
|
|
|
@Column()
|
|
@PrimaryColumn()
|
|
message_id: string;
|
|
|
|
@Column()
|
|
@PrimaryColumn()
|
|
emoji: string;
|
|
|
|
@Column() role_id: string;
|
|
|
|
@Column() is_exclusive: boolean;
|
|
}
|