Add user report Embed
This commit is contained in:
parent
63c67f4992
commit
cb5516246f
@ -1,5 +1,5 @@
|
|||||||
import pack from "../../package.json";
|
import pack from "../../package.json";
|
||||||
import { EmbedBuilder } from "discord.js";
|
import { EmbedBuilder, GuildTextBasedChannel } from "discord.js";
|
||||||
import client from "../client";
|
import client from "../client";
|
||||||
import { Color, Emoji } from "./design";
|
import { Color, Emoji } from "./design";
|
||||||
|
|
||||||
@ -30,3 +30,15 @@ export function getFailedEmbed(): EmbedBuilder {
|
|||||||
embed.setColor(Color.STOPSIGN_RED);
|
embed.setColor(Color.STOPSIGN_RED);
|
||||||
return embed;
|
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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user