From cb5516246f0821604617f0c4c41e94c9c12bf5e4 Mon Sep 17 00:00:00 2001 From: Lukas | AstroGD Date: Tue, 29 Nov 2022 19:05:24 +0100 Subject: [PATCH] Add user report Embed --- src/tools/defaultEmbeds.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/tools/defaultEmbeds.ts b/src/tools/defaultEmbeds.ts index 0b8c1b2..b7bd4a0 100644 --- a/src/tools/defaultEmbeds.ts +++ b/src/tools/defaultEmbeds.ts @@ -1,5 +1,5 @@ import pack from "../../package.json"; -import { EmbedBuilder } from "discord.js"; +import { EmbedBuilder, GuildTextBasedChannel } from "discord.js"; import client from "../client"; import { Color, Emoji } from "./design"; @@ -28,5 +28,17 @@ export function getFailedEmbed(): EmbedBuilder { const embed = getDefaultEmbed(); embed.setTitle(`${Emoji.CHAT_DENY} Failed`); embed.setColor(Color.STOPSIGN_RED); + return embed; +} + +export function getUserReportEmbed(channel: GuildTextBasedChannel): EmbedBuilder { + const embed = getDefaultEmbed(); + embed.setColor(Color.STOPSIGN_RED); + embed.setTitle(`${Emoji.SECURITY_CHALLENGE_FAILED} A channel you modified has been deleted`); + embed.setDescription(`Hey there ${Emoji.WAVING} +You just modified a channel on the ${channel.guild.name} server. \ +However, your channel name (#${channel.name}) contained a word that is not allowed so your channel got deleted. +Please make sure to keep channel names friendly for everyone!`); + return embed; } \ No newline at end of file