Create webhooks

This commit is contained in:
Madeline
2022-12-19 19:31:23 +11:00
parent 295ef797fb
commit ac74a2cec4
5 changed files with 35 additions and 6 deletions
+6
View File
@@ -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>,
+1
View File
@@ -8,6 +8,7 @@ import { User } from "./User";
export enum WebhookType {
Incoming = 1,
ChannelFollower = 2,
Application = 3,
}
@Entity("webhooks")
+1 -1
View File
@@ -4,5 +4,5 @@ export interface WebhookCreateSchema {
* @maxLength 80
*/
name: string;
avatar: string;
avatar?: string;
}