less racy
This commit is contained in:
parent
204b17533e
commit
97b74ec81f
1 changed files with 4 additions and 2 deletions
6
index.ts
6
index.ts
|
@ -86,9 +86,11 @@ client.on("messageCreate", async (message) => {
|
||||||
after: message.id,
|
after: message.id,
|
||||||
});
|
});
|
||||||
|
|
||||||
const nextMessage = msgsAfter.last();
|
const nextMessage = msgsAfter
|
||||||
|
.filter((msg) => msg.webhookId && message.content.includes(msg.content))
|
||||||
|
.last();
|
||||||
|
|
||||||
if (nextMessage?.webhookId) {
|
if (nextMessage) {
|
||||||
// pluralkit moment
|
// pluralkit moment
|
||||||
|
|
||||||
// remove current message
|
// remove current message
|
||||||
|
|
Loading…
Reference in a new issue