Skip to content

Commit

Permalink
don't edit when no change
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus-Rost committed Oct 20, 2024
1 parent 328eb50 commit a607aa2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions util/newMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ function updateInlineLinks(msg, lang, wiki = defaultSettings.wiki, embedLimits =
message.delete().catch(log_error);
return;
}
if ( message.content === textparts[i] ) return message;
return message.edit( textparts[i] ).catch(log_error);
} ) ).then( inlineMessages => {
inlineMessages = inlineMessages.filter( message => message );
Expand Down

0 comments on commit a607aa2

Please sign in to comment.