Add user report Embed #17

Merged
AstroGD merged 6 commits from feature/16-send-dm-to-user-that-used-blocked-word-in-channel into dev 2022-11-29 19:40:29 +01:00
Showing only changes of commit eccb379b51 - Show all commits

View File

@ -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;