Class ApplicationCommandModuleLifespanAttribute
Defines this application command module's lifespan. Module lifespans are transient by default.
Inheritance
System.Object
System.Attribute
ApplicationCommandModuleLifespanAttribute
Namespace: DisCatSharp.ApplicationCommands
Assembly: DisCatSharp.ApplicationCommands.dll
Syntax
[AttributeUsage(AttributeTargets.Class)]
public class ApplicationCommandModuleLifespanAttribute : Attribute
Constructors
| Improve this Doc View SourceApplicationCommandModuleLifespanAttribute(ApplicationCommandModuleLifespan)
Defines this application command module's lifespan.
Declaration
public ApplicationCommandModuleLifespanAttribute(ApplicationCommandModuleLifespan lifespan)
Parameters
Type | Name | Description |
---|---|---|
ApplicationCommandModuleLifespan | lifespan | The lifespan of the module. Module lifespans are transient by default. |
Properties
| Improve this Doc View SourceLifespan
Gets the lifespan.
Declaration
public ApplicationCommandModuleLifespan Lifespan { get; }
Property Value
Type | Description |
---|---|
ApplicationCommandModuleLifespan |