From eea58420b6cb71011863779d8e5d2d5b55755052 Mon Sep 17 00:00:00 2001 From: AntiTcb Date: Sun, 6 Aug 2017 21:23:16 -0400 Subject: [PATCH] Added docstrings. --- src/Discord.Net.Commands/CommandService.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/Discord.Net.Commands/CommandService.cs b/src/Discord.Net.Commands/CommandService.cs index e3a67da4e..0a9edb5b8 100644 --- a/src/Discord.Net.Commands/CommandService.cs +++ b/src/Discord.Net.Commands/CommandService.cs @@ -193,8 +193,20 @@ namespace Discord.Commands } //Type Readers + /// + /// Adds a custom to this for the supplied object type. + /// If is a , a will also be added. + /// + /// The object type to be read by the . + /// An instance of the to be added. public void AddTypeReader(TypeReader reader) => AddTypeReader(typeof(T), reader); + /// + /// Adds a custom to this for the supplied object type. + /// If is a , a for the value type will also be added. + /// + /// A instance for the type to be read. + /// An instance of the to be added. public void AddTypeReader(Type type, TypeReader reader) { var readers = _typeReaders.GetOrAdd(type, x => new ConcurrentDictionary()); @@ -241,6 +253,7 @@ namespace Discord.Commands } return null; } + //Execution public SearchResult Search(ICommandContext context, int argPos) => Search(context, context.Message.Content.Substring(argPos));