Skip to content

Commit

Permalink
don't parse links for non-update edits
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus-Rost committed Oct 25, 2024
1 parent d362942 commit 5e6d164
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion RcGcDw_buttons
1 change: 1 addition & 0 deletions bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ function messageCreate(msg) {
};

client.on( Discord.Events.MessageUpdate, (oldmsg, msg) => {
if ( oldmsg.content === msg.content ) return;
if ( !inlineCache.has(msg) ) return;
if ( msg.channel.partial ) return msg.channel.fetch().then( () => {
return messageUpdate(msg);
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"htmlparser2": "^9.1.0",
"mediawiki-projects-list": "^4.7.3",
"npm": "^10.9.0",
"pg": "^8.13.0"
"pg": "^8.13.1"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 5e6d164

Please sign in to comment.