🚧 webhook

This commit is contained in:
Flam3rboy
2021-09-14 22:15:55 +02:00
parent 8f862f0e5d
commit df2b83ac15
11 changed files with 369 additions and 18 deletions
+3 -3
View File
@@ -18,13 +18,13 @@ export class Webhook extends BaseClass {
@Column({ type: "simple-enum", enum: WebhookType })
type: WebhookType;
@Column({ nullable: true })
name?: string;
@Column()
name: string;
@Column({ nullable: true })
avatar?: string;
@Column({ nullable: true })
@Column({ nullable: true, select: false })
token?: string;
@Column({ nullable: true })
+1 -1
View File
@@ -1,5 +1,5 @@
export const DOUBLE_WHITE_SPACE = /\s\s+/g;
export const SPECIAL_CHAR = /[@#`:\r\n\t\f\v\p{C}]/gu;
export const SPECIAL_CHAR = /[@#\r\n\t\f\v]/gu;
export const CHANNEL_MENTION = /<#(\d+)>/g;
export const USER_MENTION = /<@!?(\d+)>/g;
export const ROLE_MENTION = /<@&(\d+)>/g;