Table of Contents

Class DiscordConfiguration

Namespace
DSharpPlus
Assembly
DSharpPlus.dll

Represents configuration for DiscordClient.

public sealed class DiscordConfiguration
Inheritance
DiscordConfiguration

Properties

AbsoluteMessageCacheExpiration

Sets the default absolute expiration time for cached messages.

AlwaysCacheMembers

Sets whether the client should attempt to cache members if exclusively using unprivileged intents.

This will only take effect if there are no GuildMembers or GuildPresences intents specified. Otherwise, this will always be overwritten to true.

Defaults to true.

LogUnknownAuditlogs

Whether to log unknown auditlog types and change keys or not. Defaults to true.

LogUnknownEvents

Whether to log unknown events or not. Defaults to true.

SlidingMessageCacheExpiration

Sets the default sliding expiration time for cached messages. This is refreshed every time the message is accessed.