diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-12-19 18:36:53 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-12-19 19:31:23 +1100 |
commit | 3c7efd650324736a7a555ec1e1c6e1c1cf82b3a3 (patch) | |
tree | a1cd15546ca3e09dadd712904bdb6395363e9edf /src/util/entities | |
parent | Don't override existing config values (diff) | |
download | server-3c7efd650324736a7a555ec1e1c6e1c1cf82b3a3.tar.xz |
Create webhooks
Diffstat (limited to 'src/util/entities')
-rw-r--r-- | src/util/entities/Channel.ts | 6 | ||||
-rw-r--r-- | src/util/entities/Webhook.ts | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/util/entities/Channel.ts b/src/util/entities/Channel.ts index 2aba739a..e9e631f1 100644 --- a/src/util/entities/Channel.ts +++ b/src/util/entities/Channel.ts @@ -169,6 +169,12 @@ export class Channel extends BaseClass { }) webhooks?: Webhook[]; + @Column() + flags: number = 0; + + @Column() + default_thread_rate_limit_per_user: number = 0; + // TODO: DM channel static async createChannel( channel: Partial<Channel>, diff --git a/src/util/entities/Webhook.ts b/src/util/entities/Webhook.ts index 89538417..da91ccaa 100644 --- a/src/util/entities/Webhook.ts +++ b/src/util/entities/Webhook.ts @@ -8,6 +8,7 @@ import { User } from "./User"; export enum WebhookType { Incoming = 1, ChannelFollower = 2, + Application = 3, } @Entity("webhooks") |