Preparing search index...
The search index is not available
Oceanic
Oceanic
rest/DiscordRESTError
DiscordRESTError
Class DiscordRESTError
Hierarchy
Error
DiscordRESTError
Index
Constructors
constructor
Properties
method
name
res
Body
response
Accessors
headers
path
status
status
Text
Methods
toJSON
flatten
Errors
Constructors
constructor
new
DiscordRESTError
(
res
:
Response
, resBody
:
Record
<
string
,
unknown
>
, method
:
string
, stack
?:
string
)
:
DiscordRESTError
Parameters
res:
Response
resBody:
Record
<
string
,
unknown
>
method:
string
Optional
stack:
string
Returns
DiscordRESTError
Properties
method
method
:
"GET"
|
"POST"
|
"PUT"
|
"PATCH"
|
"DELETE"
name
name
:
string
= "DiscordRESTError"
res
Body
res
Body
:
null
|
Record
<
string
,
unknown
>
response
response
:
Response
Accessors
headers
get
headers
(
)
:
Headers
Returns
Headers
path
get
path
(
)
:
string
Returns
string
status
get
status
(
)
:
number
Returns
number
status
Text
get
statusText
(
)
:
string
Returns
string
Methods
toJSON
toJSON
(
)
:
JSONDiscordRESTError
Returns
JSONDiscordRESTError
Static
flatten
Errors
flatten
Errors
(
errors
:
Record
<
string
,
unknown
>
, keyPrefix
?:
string
)
:
string
[]
Parameters
errors:
Record
<
string
,
unknown
>
keyPrefix:
string
= ""
Returns
string
[]
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
Modules
Oceanic
Client
Constants
gateway/
Gateway
Error
gateway/
Shard
gateway/
Shard
Manager
index
rest/
Bucket
rest/
DiscordHTTPError
rest/
DiscordRESTError
rest/RESTManager
rest/
Request
Handler
rest/
Sequential
Bucket
routes/
Application
Commands
routes/
Base
Route
routes/
Channels
routes/
Guilds
routes/
Interactions
routes/OAuth
routes/
Users
routes/
Webhooks
structures/
Announcement
Channel
structures/
Announcement
Thread
Channel
structures/
Application
structures/
Application
Command
structures/
Attachment
structures/
Auto
Moderation
Rule
structures/
Autocomplete
Interaction
structures/
Base
structures/
Category
Channel
structures/
Channel
structures/
Client
Application
structures/
Command
Interaction
structures/
Component
Interaction
structures/
Extended
User
structures/
Group
Channel
structures/
Guild
structures/
Guild
Channel
structures/
Guild
Preview
structures/
Guild
Template
structures/
Integration
structures/
Interaction
structures/
Invite
structures/
Member
structures/
Message
structures/
Modal
Submit
Interaction
structures/
Partial
Application
structures/
Permission
structures/
Permission
Overwrite
structures/
Ping
Interaction
structures/
Private
Channel
structures/
Private
Thread
Channel
structures/
Public
Thread
Channel
structures/
Role
structures/
Scheduled
Event
structures/
Stage
Channel
structures/
Stage
Instance
structures/
Team
structures/
Text
Channel
structures/
Textable
Channel
structures/
Thread
Channel
structures/
Unavailable
Guild
structures/
User
structures/
Voice
Channel
structures/
Voice
State
structures/
Webhook
types
types/application-
commands
types/audit-
log
types/auto-
moderation
types/channels
types/client
types/gateway
types/gateway-
raw
types/guild-
template
types/guilds
types/interactions
types/json
types/oauth
types/request-
handler
types/scheduled-
events
types/shared
types/stage-
instances
types/users
types/voice
types/webhooks
util/
Collection
util/
Debug
util/
Routes
util/
Typed
Emitter
voice/
Voice
Connection
voice/
Voice
Connection
Manager
DiscordRESTError
constructor
method
name
res
Body
response
headers
path
status
status
Text
toJSON
flatten
Errors