Table of Contents

Class MaximumLengthAttribute

Namespace
DSharpPlus.SlashCommands
Assembly
DSharpPlus.SlashCommands.dll

Sets a maximum allowed length for this slash command option. Only valid for string parameters.

[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false)]
public class MaximumLengthAttribute : Attribute
Inheritance
MaximumLengthAttribute

Constructors

MaximumLengthAttribute(int)

Sets a maximum allowed length for this slash command option. Only valid for string parameters.

Properties

Value

The value.