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

ErrorLocalization

The error localization. This is used to localize error messages returned by Discord.

public string? ErrorLocalization { 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

WithErrorLocalization(string?)

The error localization. This is used to localize error messages returned by Discord.

public RestRequestProperties WithErrorLocalization(string? errorLocalization)

Parameters

errorLocalization string

Returns

RestRequestProperties

WithRateLimitHandling(RestRateLimitHandling?)

The rate limit handling. Defaults to Retry.

public RestRequestProperties WithRateLimitHandling(RestRateLimitHandling? rateLimitHandling)

Parameters

rateLimitHandling RestRateLimitHandling?

Returns

RestRequestProperties