mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +01:00
chore: deps
This commit is contained in:
@@ -84,7 +84,6 @@ export class DiscordAPIError extends Error {
|
||||
return error.error_description ?? 'No Description';
|
||||
}
|
||||
|
||||
// eslint-disable-next-line consistent-return
|
||||
private static *flattenDiscordError(obj: DiscordError, key = ''): IterableIterator<string> {
|
||||
if (isErrorResponse(obj)) {
|
||||
return yield `${key.length ? `${key}[${obj.code}]` : `${obj.code}`}: ${obj.message}`.trim();
|
||||
|
||||
Reference in New Issue
Block a user