using System; namespace Discord.Interactions { /// /// Sets the property of an application command or module. /// [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = true)] public class EnabledInDmAttribute : Attribute { /// /// Gets whether or not this command can be used in DMs. /// public bool IsEnabled { get; } /// /// Sets the property of an application command or module. /// /// Whether or not this command can be used in DMs. public EnabledInDmAttribute(bool isEnabled) { IsEnabled = isEnabled; } } }