This commit is contained in:
DjDeveloperr 2021-04-08 14:45:26 +05:30
parent f2a8c86dde
commit 08f2f653f9

View file

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