diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/entities/Channel.ts | 6 | ||||
-rw-r--r-- | src/util/entities/Webhook.ts | 1 | ||||
-rw-r--r-- | src/util/schemas/WebhookCreateSchema.ts | 2 |
3 files changed, 8 insertions, 1 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") diff --git a/src/util/schemas/WebhookCreateSchema.ts b/src/util/schemas/WebhookCreateSchema.ts index 99f6a12f..12ab1869 100644 --- a/src/util/schemas/WebhookCreateSchema.ts +++ b/src/util/schemas/WebhookCreateSchema.ts @@ -4,5 +4,5 @@ export interface WebhookCreateSchema { * @maxLength 80 */ name: string; - avatar: string; + avatar?: string; } |