You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System;
-
- namespace Discord.Interactions
- {
- /// <summary>
- /// Set the maximum value permitted for a number type parameter.
- /// </summary>
- [AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
- public sealed class MaxValueAttribute : Attribute
- {
- /// <summary>
- /// Gets the maximum value permitted.
- /// </summary>
- public double Value { get; }
-
- /// <summary>
- /// Set the maximum value permitted for a number type parameter.
- /// </summary>
- /// <param name="value">The maximum value permitted.</param>
- public MaxValueAttribute(double value)
- {
- Value = value;
- }
- }
- }
|