diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/models/Webhook.ts | 1 | ||||
-rw-r--r-- | src/util/String.ts | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/models/Webhook.ts b/src/models/Webhook.ts index 4660686d..7379e98f 100644 --- a/src/models/Webhook.ts +++ b/src/models/Webhook.ts @@ -80,4 +80,5 @@ WebhookSchema.virtual("source_channel", { WebhookSchema.set("removeResponse", ["source_channel_id", "source_guild_id"]); +// @ts-ignore export const WebhookModel = db.model<WebhookDocument>("Webhook", WebhookSchema, "webhooks"); diff --git a/src/util/String.ts b/src/util/String.ts index 161336f1..bac7905f 100644 --- a/src/util/String.ts +++ b/src/util/String.ts @@ -1,6 +1,7 @@ import { DOUBLE_WHITE_SPACE, SPECIAL_CHAR } from "./Regex"; -export function trimSpecial(str?: string) { +export function trimSpecial(str?: string): string { + // @ts-ignore if (!str) return; return str.replace(SPECIAL_CHAR, "").replace(DOUBLE_WHITE_SPACE, " ").trim(); } |