From d2d7b4dce7bb578eefbf078428f1ae0b34f33437 Mon Sep 17 00:00:00 2001 From: FiniteReality Date: Sat, 19 Nov 2016 21:16:28 +0000 Subject: [PATCH] Make `_typeReaderTypeInfo` static Seems I missed this originally, whoops. --- .../Attributes/OverrideTypeReaderAttribute.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Discord.Net.Commands/Attributes/OverrideTypeReaderAttribute.cs b/src/Discord.Net.Commands/Attributes/OverrideTypeReaderAttribute.cs index 8134b06b8..37f685c95 100644 --- a/src/Discord.Net.Commands/Attributes/OverrideTypeReaderAttribute.cs +++ b/src/Discord.Net.Commands/Attributes/OverrideTypeReaderAttribute.cs @@ -7,7 +7,7 @@ namespace Discord.Commands [AttributeUsage(AttributeTargets.Parameter)] public class OverrideTypeReaderAttribute : Attribute { - private readonly TypeInfo _typeReaderTypeInfo = typeof(TypeReader).GetTypeInfo(); + private static readonly TypeInfo _typeReaderTypeInfo = typeof(TypeReader).GetTypeInfo(); public Type TypeReader { get; }