This commit is contained in:
Ashley Graves 2024-10-10 17:16:07 +02:00
parent 2bfaa4288e
commit fae08327b9

View file

@ -138,7 +138,7 @@ module.exports = {
const tags = (interaction.options.getString("tags") ?? "").split(" "); const tags = (interaction.options.getString("tags") ?? "").split(" ");
const containsBlacklist = tags.filter(i => blacklist.includes(i)); const containsBlacklist = tags.filter(i => blacklist.includes(i));
if (containsBlacklist.length > 0) { if (containsBlacklist.length > 0) {
await interaction.followUp(`searched for blacklisted tag(s): \`${containsBlacklist.join(", ")}\`.\n-# this incident will be reported.`); await interaction.followUp(`Search included blacklisted tag(s): \`${containsBlacklist.join(", ")}\`.\n-# This incident will be reported.`);
var incidentChannel = interaction.client.channels.cache.get(process.env.INCIDENT_CHANNEL); var incidentChannel = interaction.client.channels.cache.get(process.env.INCIDENT_CHANNEL);
if (incidentChannel) { if (incidentChannel) {
incidentChannel.send(`User \`${interaction.user.username}\` (<@${interaction.user.id}>) searched for blacklisted tags:\n\`${containsBlacklist.join(", ")}\``); incidentChannel.send(`User \`${interaction.user.username}\` (<@${interaction.user.id}>) searched for blacklisted tags:\n\`${containsBlacklist.join(", ")}\``);