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
-
SlashModuleLifespanAttribute
Constructors
- SlashModuleLifespanAttribute(SlashModuleLifespan)
Defines this slash command module's lifespan.
Properties
- Lifespan
Gets the lifespan.