Class DiscordError
A Discord error object contains information of a failed request.
Inheritance
System.Object
DiscordError
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Dishooks
Assembly: cs.temp.dll.dll
Syntax
public class DiscordError
Properties
DefaultError
Declaration
public static DiscordError DefaultError { get; }
Property Value
Type | Description |
---|---|
DiscordError |
HttpStatusCode
A HTTP status code of the error.
Declaration
public long HttpStatusCode { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
JsonErrorCode
The JSON error code of the error. This is not the HTTP status code. A full list of error codes can be found here.
Declaration
public int JsonErrorCode { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Message
A message describing the error.
Declaration
public string Message { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()