From eccb379b5162d097b263842e31cb407c2dc4a42b Mon Sep 17 00:00:00 2001 From: Lukas | AstroGD Date: Tue, 29 Nov 2022 19:21:00 +0100 Subject: [PATCH] Update user report embed --- src/tools/defaultEmbeds.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tools/defaultEmbeds.ts b/src/tools/defaultEmbeds.ts index b7bd4a0..dafbd86 100644 --- a/src/tools/defaultEmbeds.ts +++ b/src/tools/defaultEmbeds.ts @@ -31,13 +31,13 @@ export function getFailedEmbed(): EmbedBuilder { return embed; } -export function getUserReportEmbed(channel: GuildTextBasedChannel): EmbedBuilder { +export function getUserReportEmbed(guildName: string, channelName: string): 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. +You just modified a channel on the ${guildName} server. \ +However, your channel name (#${channelName}) contained a word that is not allowed so your channel got deleted. Please make sure to keep channel names friendly for everyone!`); return embed;