Add Slowmode plugin

This commit is contained in:
Dragory 2018-12-15 17:04:04 +02:00
parent b02dae2890
commit 0431b3c225
7 changed files with 406 additions and 1 deletions

View file

@ -0,0 +1,14 @@
import { Entity, Column, PrimaryColumn } from "typeorm";
@Entity("slowmode_channels")
export class SlowmodeChannel {
@Column()
@PrimaryColumn()
guild_id: string;
@Column()
@PrimaryColumn()
channel_id: string;
@Column() slowmode_seconds: number;
}

View file

@ -0,0 +1,18 @@
import { Entity, Column, PrimaryColumn } from "typeorm";
@Entity("slowmode_users")
export class SlowmodeUser {
@Column()
@PrimaryColumn()
guild_id: string;
@Column()
@PrimaryColumn()
channel_id: string;
@Column()
@PrimaryColumn()
user_id: string;
@Column() expires_at: string;
}