Browse Source

Changed minimum slash command name length to 1 per Discord API docs (#198)

pull/1923/head
Will GitHub 3 years ago
parent
commit
7cabcc787a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Rest/Entities/Interactions/InteractionHelper.cs

+ 1
- 1
src/Discord.Net.Rest/Entities/Interactions/InteractionHelper.cs View File

@@ -195,7 +195,7 @@ namespace Discord.Rest
if (args.Name.IsSpecified)
{
Preconditions.AtMost(args.Name.Value.Length, 32, nameof(args.Name));
Preconditions.AtLeast(args.Name.Value.Length, 3, nameof(args.Name));
Preconditions.AtLeast(args.Name.Value.Length, 1, nameof(args.Name));
}

var model = new Discord.API.Rest.ModifyApplicationCommandParams()


Loading…
Cancel
Save