Table of Contents

Class SlashModuleLifespanAttribute

Namespace
DSharpPlus.SlashCommands
Assembly
DSharpPlus.SlashCommands.dll

Defines this slash command module's lifespan. Module lifespans are transient by default.

[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public sealed class SlashModuleLifespanAttribute : Attribute
Inheritance
object
Attribute
SlashModuleLifespanAttribute

Constructors

SlashModuleLifespanAttribute(SlashModuleLifespan)

Defines this slash command module's lifespan.

Properties

Lifespan

Gets the lifespan.