Class RestError
- Namespace
- NetCord.Rest
- Assembly
- NetCord.dll
public sealed class RestError
- Inheritance
-
RestError
- Inherited Members
-
Constructors
RestError(int, string, IRestErrorGroup?)
public RestError(int code, string message, IRestErrorGroup? error)
Parameters
code
int
message
string
error
IRestErrorGroup
Properties
Code
[JsonPropertyName("code")]
public int Code { get; }
Property Value
- int
Error
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("errors")]
public IRestErrorGroup? Error { get; }
Property Value
- IRestErrorGroup
Message
[JsonPropertyName("message")]
public string Message { get; }
Property Value
- string
Methods
ToString()
public override string ToString()
Returns
- string