using System; namespace Discord.Interactions { /// /// Sets the of an application command or module. /// [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = true)] public class DefaultMemberPermissionsAttribute : Attribute { /// /// Gets the default permission required to use this command. /// public GuildPermission Permissions { get; } /// /// Sets the of an application command or module. /// /// The default permission required to use this command. public DefaultMemberPermissionsAttribute(GuildPermission permissions) { Permissions = permissions; } } }