Class MaximumAttribute
Sets a maximum value for this slash command option. Only valid for System.Int32, System.Int64 or System.Double parameters.
Inheritance
System.Object
System.Attribute
MaximumAttribute
Namespace: DisCatSharp.ApplicationCommands.Attributes
Assembly: DisCatSharp.ApplicationCommands.dll
Syntax
[AttributeUsage(AttributeTargets.Parameter)]
public class MaximumAttribute : Attribute
Constructors
| Improve this Doc View SourceMaximumAttribute(Double)
Sets a maximum value for this slash command option. Only valid for System.Int32, System.Int64 or System.Double parameters.
Declaration
public MaximumAttribute(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value |
MaximumAttribute(Int32)
Sets a maximum value for this slash command option. Only valid for System.Int32, System.Int64 or System.Double parameters.
Declaration
public MaximumAttribute(int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value |
MaximumAttribute(Int64)
Sets a maximum value for this slash command option. Only valid for System.Int32, System.Int64 or System.Double parameters.
Declaration
public MaximumAttribute(long value)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | value |
Properties
| Improve this Doc View SourceValue
The value.
Declaration
public object Value { get; }
Property Value
Type | Description |
---|---|
System.Object |