This commit is contained in:
DjDeveloperr 2021-04-08 14:45:26 +05:30
parent f2a8c86dde
commit 08f2f653f9
1 changed files with 3 additions and 3 deletions

View File

@ -2,6 +2,7 @@
// adapted to work with harmony rest manager
/* eslint-disable @typescript-eslint/no-unnecessary-type-assertion */
import { delay } from '../utils/delay.ts'
import { DiscordAPIError, HTTPError } from './error.ts'
import type { RESTManager } from './manager.ts'
@ -183,9 +184,8 @@ export class BucketHandler {
if (res.status === 429) {
this.manager.client?.emit(
'debug',
`Rate-limited on route ${request.path}${
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
sublimitTimeout ? ' for sublimit' : ''
`Rate-Limited on route ${request.path}${
sublimitTimeout !== undefined ? ' for sublimit' : ''
}`
)