diff --git a/src/client.ts b/src/client.ts index 52302c8..392a4fd 100644 --- a/src/client.ts +++ b/src/client.ts @@ -361,10 +361,11 @@ export class ElydoraClient { throw err; } - if (attempt < this.maxRetries) { + if (attempt < this.maxRetries && isIdempotent(method)) { await sleep(Math.min(1000 * 2 ** attempt, 10_000)); continue; } + break; } }