diff --git a/src/Discord.Net.Interactions/Map/CommandMap.cs b/src/Discord.Net.Interactions/Map/CommandMap.cs index 6fd79ea81..aa5c7fcfc 100644 --- a/src/Discord.Net.Interactions/Map/CommandMap.cs +++ b/src/Discord.Net.Interactions/Map/CommandMap.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Linq; namespace Discord.Interactions { @@ -46,8 +47,13 @@ namespace Discord.Interactions _root.RemoveCommand(key, 0); } - public SearchResult GetCommand(string input) => - GetCommand(input.Split(_seperators)); + public SearchResult GetCommand(string input) + { + if(_seperators.Any()) + return GetCommand(input.Split(_seperators)); + else + return GetCommand(new string[] { input }); + } public SearchResult GetCommand(string[] input) => _root.GetCommand(input, 0);