From 0553d47c67a7fa2122f03dac152abe18f877ab17 Mon Sep 17 00:00:00 2001 From: MrCakeSlayer <13650699+MrCakeSlayer@users.noreply.github.com> Date: Tue, 20 Jul 2021 00:44:31 -0400 Subject: [PATCH] Fix typo --- .../Entities/Interactions/SlashCommandBuilder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Discord.Net.Core/Entities/Interactions/SlashCommandBuilder.cs b/src/Discord.Net.Core/Entities/Interactions/SlashCommandBuilder.cs index e80ab108e..d70700138 100644 --- a/src/Discord.Net.Core/Entities/Interactions/SlashCommandBuilder.cs +++ b/src/Discord.Net.Core/Entities/Interactions/SlashCommandBuilder.cs @@ -43,7 +43,7 @@ namespace Discord // Discord updated the docs, this regex prevents special characters like @!$%(... etc, // https://discord.com/developers/docs/interactions/slash-commands#applicationcommand if (!Regex.IsMatch(value, @"^[\w-]{3,32}$")) - throw new ArgumentException("Command name cannot contian any special characters or whitespaces!"); + throw new ArgumentException("Command name cannot contain any special characters or whitespaces!"); _name = value; }