Skip to content

Commit

Permalink
Use variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Glazelf committed Jun 25, 2024
1 parent 9fa397d commit 79b6f38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion events/messageDelete.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default async (client, message) => {
.setImage(messageImage)
.setDescription(`Author: ${message.author} (${message.author.id})\nChannel: ${message.channel} (${message.channel.id})`);
if (messageContent.length > 0) deleteEmbed.addFields([{ name: `Content:`, value: messageContent, inline: false }]);
if (messageAttachmentsString.length > 0) deleteEmbed.addFields([{ name: "Attachments:", value: messageAttachmentsString }]);
if (messageAttachmentsString.length > 0) deleteEmbed.addFields([{ name: messageAttachmentsTitle, value: messageAttachmentsString }]);
if (isReply && replyMessage && replyMessage.author && replyMessage.content.length > 0) deleteEmbed.addFields([{ name: `Replying to:`, value: `"${replyMessage.content.slice(0, 950)}"\n-${replyMessage.author} (${replyMessage.author.id})`, inline: true }]);
if (executor) deleteEmbed.addFields([{ name: 'Executor:', value: `${executor} (${executor.id})`, inline: true }]);
deleteEmbed
Expand Down

0 comments on commit 79b6f38

Please sign in to comment.