Table of Contents

Property UnconditionallyOverwriteCommands

Namespace
DSharpPlus.Commands.Processors.SlashCommands
Assembly
DSharpPlus.Commands.dll

UnconditionallyOverwriteCommands

Instructs DSharpPlus to always overwrite the command records Discord has of our bot on startup.

public bool UnconditionallyOverwriteCommands { get; init; }

Property Value

bool

Remarks

This skips the startup procedure of fetching commands and overwriting only if additions are detected. While this may save time on startup, it also makes the library less resistant to unrecognized command types or structures it cannot correctly handle.
Currently, removals are not considered a reason to overwrite by default so as to work around an issue where certain commands will cause bulk overwrites to fail.