From 4eccd799299b697c17df2872b2a23d06c693b39b Mon Sep 17 00:00:00 2001 From: skinmaker1345 Date: Wed, 29 Nov 2023 22:15:08 +0900 Subject: [PATCH] chore: remove mentions on log --- utils/DiscordBot.ts | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/utils/DiscordBot.ts b/utils/DiscordBot.ts index fb17355f69..7f664b918d 100644 --- a/utils/DiscordBot.ts +++ b/utils/DiscordBot.ts @@ -15,13 +15,28 @@ export const webhookClients = { bot: new Discord.Collection(), server: new Discord.Collection(), internal: { - log: new Discord.WebhookClient({ url: process.env.LOG_WEBHOOK_URL ?? dummyURL }), - reviewLog: new Discord.WebhookClient({ url: process.env.REVIEW_LOG_WEBHOOK_URL ?? dummyURL }), - openReviewLog: new Discord.WebhookClient({ - url: process.env.OPEN_REVIEW_LOG_WEBHOOK_URL ?? dummyURL, - }), - statsLog: new Discord.WebhookClient({ url: process.env.STATS_LOG_WEBHOOK_URL ?? dummyURL }), - reportChannel: new Discord.WebhookClient({ url: process.env.REPORT_WEBHOOK_URL ?? dummyURL }), + log: new Discord.WebhookClient( + { url: process.env.LOG_WEBHOOK_URL ?? dummyURL }, + { allowedMentions: { parse: [] } } + ), + reviewLog: new Discord.WebhookClient( + { url: process.env.REVIEW_LOG_WEBHOOK_URL ?? dummyURL }, + { allowedMentions: { parse: [] } } + ), + openReviewLog: new Discord.WebhookClient( + { + url: process.env.OPEN_REVIEW_LOG_WEBHOOK_URL ?? dummyURL, + }, + { allowedMentions: { parse: [] } } + ), + statsLog: new Discord.WebhookClient( + { url: process.env.STATS_LOG_WEBHOOK_URL ?? dummyURL }, + { allowedMentions: { parse: [] } } + ), + reportChannel: new Discord.WebhookClient( + { url: process.env.REPORT_WEBHOOK_URL ?? dummyURL }, + { allowedMentions: { parse: [] } } + ), }, }