using System;
namespace Discord.Interactions
{
///
/// Sets the maximum length allowed for a string type parameter.
///
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
public class MaxLengthAttribute : Attribute
{
///
/// Gets the maximum length allowed for a string type parameter.
///
public int Length { get; }
///
/// Sets the maximum length allowed for a string type parameter.
///
/// Maximum string length allowed.
public MaxLengthAttribute(int length)
{
Length = length;
}
}
}