Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/undiscord-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,11 @@ class UndiscordCore {
log.verb(`Cooling down for ${w * 2}ms before retrying...`);
await wait(w * 2);
return 'RETRY';
} else if (resp.status === 403) {
log.warn('Insufficient permissions to delete message. Skipping...');
this.state.offset++;
this.state.failCount++;
return 'FAIL_SKIP';
} else {
const body = await resp.text();

Expand Down