Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
fix: description gets cleared
Browse files Browse the repository at this point in the history
  • Loading branch information
wdhdev committed Jun 25, 2023
1 parent 96030de commit 651e7aa
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/util/filter/tests/links.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
1 change: 0 additions & 1 deletion src/util/filter/tests/phishing.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] });

Expand Down
2 changes: 0 additions & 2 deletions src/util/filter/tests/profanity.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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 (
Expand Down

0 comments on commit 651e7aa

Please sign in to comment.