Skip to content

Commit

Permalink
try adding description to embed
Browse files Browse the repository at this point in the history
  • Loading branch information
Akhil Pillai committed Dec 15, 2024
1 parent e43cd57 commit 50afac4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/events/messageDelete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ export const name = Events.MessageDelete;
export const once = false;

export const execute = async (message: Message) => {
if (!message.inGuild()) return;
if (message.author.bot || !message.inGuild()) return;
await (
await getGuildAuditLoggingChannel(message.guild)
)?.send({
embeds: [
new EmbedBuilder()
.setTitle('Message Deleted')
.setDescription(message.url)
.setFields(
{
name: 'Author',
Expand Down

0 comments on commit 50afac4

Please sign in to comment.