diff --git a/src/Discord.Net.Commands/Attributes/TypeReaderAttribute.cs b/src/Discord.Net.Commands/Attributes/TypeReaderAttribute.cs index 33169f25c..29644ec85 100644 --- a/src/Discord.Net.Commands/Attributes/TypeReaderAttribute.cs +++ b/src/Discord.Net.Commands/Attributes/TypeReaderAttribute.cs @@ -3,12 +3,27 @@ using System.Reflection; namespace Discord.Commands { + /// + /// Allows to override the used for a parameter/type. + /// [AttributeUsage(AttributeTargets.Class | AttributeTargets.Parameter, AllowMultiple = true)] public class TypeReaderAttribute : Attribute { + /// + /// Type of the type that is read. + /// public Type Type { get; } + + /// + /// of the specified . + /// public TypeInfo OverridingTypeReader { get; } + /// + /// Specify a for a particular type. + /// + /// Type of the type to read. + /// Type of the that reads the type. public TypeReaderAttribute(Type forType, Type typeReader) { if (!typeof(TypeReader).GetTypeInfo().IsAssignableFrom(typeReader.GetTypeInfo()))