Add message.id

This commit is contained in:
Michael 2024-12-30 17:58:20 -06:00
parent a153cf39e4
commit 15e54756d6

View file

@ -134,11 +134,11 @@ module.exports = {
/http.:\/\/.*\/(commit|compare|pull)\/.*/g.test(message.content) /http.:\/\/.*\/(commit|compare|pull)\/.*/g.test(message.content)
) { ) {
dateVerified = true; dateVerified = true;
verifyReason = 'Commit URL'; verifyReason = `Commit URL - ${message.id}`;
} }
else if ((message.attachments.size > 0) && verifyReason != 'Commit URL') { else if ((message.attachments.size > 0) && verifyReason != 'Commit URL') {
dateVerified = true; dateVerified = true;
verifyReason = 'Attachment'; verifyReason = `Attachment - ${message.id}`;
} }
else if ((message.reactions.cache.size > 0) && verifyReason != 'Commit URL' && verifyReason != 'Attachment') { else if ((message.reactions.cache.size > 0) && verifyReason != 'Commit URL' && verifyReason != 'Attachment') {
for (const reaction of message.reactions.cache.values()) { for (const reaction of message.reactions.cache.values()) {
@ -146,7 +146,7 @@ module.exports = {
if (emojiName === emojiCheck) { if (emojiName === emojiCheck) {
dateVerified = true; dateVerified = true;
verifyReason = 'Reaction'; verifyReason = `Reaction - ${message.id}`;
break; break;
} }
} }