Table of Contents

Class RestClientOptions

Namespace
NetCord.Hosting.Rest
Assembly
NetCord.Hosting.dll
public class RestClientOptions : IDiscordOptions
Inheritance
RestClientOptions
Implements
Inherited Members

Constructors

RestClientOptions()

public RestClientOptions()

Properties

DefaultRequestProperties

The default request properties for the RestClient. Defaults to null.

public RestRequestProperties? DefaultRequestProperties { get; set; }

Property Value

RestRequestProperties

Hostname

The hostname to use for the RestClient. Defaults to RestHostname.

public string? Hostname { get; set; }

Property Value

string

PublicKey

The public key used to validate HTTP interactions.

public string? PublicKey { get; set; }

Property Value

string

RateLimitManager

The rate limit manager for the RestClient. Defaults to RateLimitManager.

public IRateLimitManager? RateLimitManager { get; set; }

Property Value

IRateLimitManager

RequestHandler

The request handler for the RestClient. Defaults to RestRequestHandler.

public IRestRequestHandler? RequestHandler { get; set; }

Property Value

IRestRequestHandler

Token

The token used to authenticate with Discord.

public string? Token { get; set; }

Property Value

string

Version

The version of the Discord API to use. Defaults to V10.

public ApiVersion? Version { get; set; }

Property Value

ApiVersion?