Table of Contents

Class IntegrationTypeAttribute

Namespace
Discord.Interactions
Assembly
Discord.Net.Interactions.dll

Specifies install method for the command.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public class IntegrationTypeAttribute : Attribute
Inheritance
IntegrationTypeAttribute
Inherited Members

Constructors

IntegrationTypeAttribute(params ApplicationIntegrationType[])

Sets the IntegrationTypes property of an application command or module.

public IntegrationTypeAttribute(params ApplicationIntegrationType[] integrationTypes)

Parameters

integrationTypes ApplicationIntegrationType[]

Integration install types set for the command.

Properties

IntegrationTypes

Gets integration install types for this command.

public IReadOnlyCollection<ApplicationIntegrationType> IntegrationTypes { get; }

Property Value

IReadOnlyCollection<ApplicationIntegrationType>