Table of Contents

Class RestRequestProperties

Namespace
NetCord.Rest
Assembly
NetCord.dll
public sealed class RestRequestProperties
Inheritance
RestRequestProperties
Inherited Members

Constructors

RestRequestProperties()

public RestRequestProperties()

Properties

AuditLogReason

The reason for the guild's audit log.

public string? AuditLogReason { get; set; }

Property Value

string

Localization

The localization used for data returned by Discord.

public string? Localization { get; set; }

Property Value

string

RateLimitHandling

The rate limit handling. Defaults to Retry.

public RestRateLimitHandling? RateLimitHandling { get; set; }

Property Value

RestRateLimitHandling?

Methods

WithAuditLogReason(string?)

The reason for the guild's audit log.

public RestRequestProperties WithAuditLogReason(string? auditLogReason)

Parameters

auditLogReason string

Returns

RestRequestProperties

WithLocalization(string?)

The localization used for data returned by Discord.

public RestRequestProperties WithLocalization(string? localization)

Parameters

localization string

Returns

RestRequestProperties

WithRateLimitHandling(RestRateLimitHandling?)

The rate limit handling. Defaults to Retry.

public RestRequestProperties WithRateLimitHandling(RestRateLimitHandling? rateLimitHandling)

Parameters

rateLimitHandling RestRateLimitHandling?

Returns

RestRequestProperties