From 651e7aa04c255f49cc2b1756af32870b85cdd8a2 Mon Sep 17 00:00:00 2001 From: William Harrison Date: Sun, 25 Jun 2023 16:38:27 +0800 Subject: [PATCH] fix: description gets cleared --- src/util/filter/tests/links.js | 1 - src/util/filter/tests/phishing.js | 1 - src/util/filter/tests/profanity.js | 2 -- 3 files changed, 4 deletions(-) diff --git a/src/util/filter/tests/links.js b/src/util/filter/tests/links.js index 34aa907..ad6c4bb 100644 --- a/src/util/filter/tests/links.js +++ b/src/util/filter/tests/links.js @@ -41,7 +41,6 @@ module.exports = async function(message, client, Discord) { } catch {} blocked.setAuthor({ name: message.author.tag.endsWith("#0") ? `@${message.author.username}` : message.author.tag, iconURL: message.author.displayAvatarURL({ format: "png", dynamic: true }), url: `https://discord.com/users/${message.author.id}` }); - blocked.setDescription(null); const actions = new Discord.ActionRowBuilder() .addComponents ( diff --git a/src/util/filter/tests/phishing.js b/src/util/filter/tests/phishing.js index 2f668b1..bc3d927 100644 --- a/src/util/filter/tests/phishing.js +++ b/src/util/filter/tests/phishing.js @@ -72,7 +72,6 @@ module.exports = async function(message, client, Discord) { } catch {} blocked.setAuthor({ name: message.author.tag.endsWith("#0") ? `@${message.author.username}` : message.author.tag, iconURL: message.author.displayAvatarURL({ format: "png", dynamic: true }), url: `https://discord.com/users/${message.author.id}` }); - blocked.setDescription(null); blockedChannel.send({ embeds: [blocked] }); diff --git a/src/util/filter/tests/profanity.js b/src/util/filter/tests/profanity.js index d407469..a9c0b9c 100644 --- a/src/util/filter/tests/profanity.js +++ b/src/util/filter/tests/profanity.js @@ -73,7 +73,6 @@ module.exports = async function(message, client, Discord) { } catch {} blocked.setAuthor({ name: message.author.tag.endsWith("#0") ? `@${message.author.username}` : message.author.tag, iconURL: message.author.displayAvatarURL({ format: "png", dynamic: true }), url: `https://discord.com/users/${message.author.id}` }); - blocked.setDescription(null); const actions = new Discord.ActionRowBuilder() .addComponents ( @@ -124,7 +123,6 @@ module.exports = async function(message, client, Discord) { } catch {} blocked.setAuthor({ name: message.author.tag.endsWith("#0") ? `@${message.author.username}` : message.author.tag, iconURL: message.author.displayAvatarURL({ format: "png", dynamic: true }), url: `https://discord.com/users/${message.author.id}` }); - blocked.setDescription(null); const actions = new Discord.ActionRowBuilder() .addComponents (