Fix #2700
This commit is contained in:
@@ -70,7 +70,7 @@ export class Ctx {
|
|||||||
await this.client.onReady();
|
await this.client.onReady();
|
||||||
for (const delay of [2, 4, 6, 8, 10, null]) {
|
for (const delay of [2, 4, 6, 8, 10, null]) {
|
||||||
try {
|
try {
|
||||||
return await this.client.sendRequest(method, param, token);
|
return await (token ? this.client.sendRequest(method, param, token) : this.client.sendRequest(method, param));
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (
|
if (
|
||||||
e.code === lc.ErrorCodes.ContentModified &&
|
e.code === lc.ErrorCodes.ContentModified &&
|
||||||
|
|||||||
Reference in New Issue
Block a user