Table of Contents

Enum SlashModuleLifespan

Namespace
DSharpPlus.SlashCommands
Assembly
DSharpPlus.SlashCommands.dll

Represents a slash command module lifespan.

public enum SlashModuleLifespan
Extension Methods

Fields

Scoped = 0

Whether this module should be initiated every time a command is run, with dependencies injected from a scope.

Singleton = 2

Whether this module should be initiated at startup.

Transient = 1

Whether this module should be initiated every time a command is run.