Fix PluralKit replies being duplicated
There was a race condition on create/update that was skipping the remedial code due to a bad assumption about the speedbump.
This commit is contained in:
parent
ab051f301f
commit
34fc21fa15
1 changed files with 2 additions and 4 deletions
|
|
@ -338,10 +338,8 @@ module.exports = {
|
||||||
const {affected, row} = await speedbump.maybeDoSpeedbump(data.channel_id, data.id, data.author.id)
|
const {affected, row} = await speedbump.maybeDoSpeedbump(data.channel_id, data.id, data.author.id)
|
||||||
if (affected) return
|
if (affected) return
|
||||||
|
|
||||||
if (!row) {
|
|
||||||
// Check that the sending-to room exists, and deal with Eventual Consistency(TM)
|
// Check that the sending-to room exists, and deal with Eventual Consistency(TM)
|
||||||
if (!await retrigger.waitForMessage(data.id)) return
|
if (!await retrigger.waitForMessage(data.id)) return
|
||||||
}
|
|
||||||
|
|
||||||
/** @type {DiscordTypes.GatewayMessageCreateDispatchData} */
|
/** @type {DiscordTypes.GatewayMessageCreateDispatchData} */
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue