|
@@ -263,6 +263,14 @@ namespace Discord.Commands |
|
|
} |
|
|
} |
|
|
return null; |
|
|
return null; |
|
|
} |
|
|
} |
|
|
|
|
|
public void ReplaceDefaultTypereader<T>(TypeReader reader) |
|
|
|
|
|
{ |
|
|
|
|
|
var key = typeof(T); |
|
|
|
|
|
if (_defaultTypeReaders.ContainsKey(key)) |
|
|
|
|
|
{ |
|
|
|
|
|
_defaultTypeReaders.AddOrUpdate(key, k => throw new Exception("This shouldn't happen?"), (k, v) => reader); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//Execution |
|
|
//Execution |
|
|
public SearchResult Search(ICommandContext context, int argPos) |
|
|
public SearchResult Search(ICommandContext context, int argPos) |
|
|