Skip to content

Commit

Permalink
Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
Glazelf committed Jun 20, 2024
1 parent c0d1b3a commit 5323f61
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions events/messageCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ export default async (client, message) => {
if (message.author.bot || message.author.system) return;

let messageImage = null;
if (message.attachments.size > 0) {
messageImage = message.attachments.first().url;
};
if (message.attachments.size > 0) messageImage = message.attachments.first().url;
// Ignore commands in DMs
if (message.channel.type == "DM" || !message.guild) {
// Send message contents to dm channel
Expand Down

0 comments on commit 5323f61

Please sign in to comment.