Make _typeReaderTypeInfo static
Seems I missed this originally, whoops.
This commit is contained in:
@@ -7,7 +7,7 @@ namespace Discord.Commands
|
|||||||
[AttributeUsage(AttributeTargets.Parameter)]
|
[AttributeUsage(AttributeTargets.Parameter)]
|
||||||
public class OverrideTypeReaderAttribute : Attribute
|
public class OverrideTypeReaderAttribute : Attribute
|
||||||
{
|
{
|
||||||
private readonly TypeInfo _typeReaderTypeInfo = typeof(TypeReader).GetTypeInfo();
|
private static readonly TypeInfo _typeReaderTypeInfo = typeof(TypeReader).GetTypeInfo();
|
||||||
|
|
||||||
public Type TypeReader { get; }
|
public Type TypeReader { get; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user