diff --git a/src/Discord.Net.Commands/Utilities/ReflectionUtils.cs b/src/Discord.Net.Commands/Utilities/ReflectionUtils.cs index e569401bc..230b30312 100644 --- a/src/Discord.Net.Commands/Utilities/ReflectionUtils.cs +++ b/src/Discord.Net.Commands/Utilities/ReflectionUtils.cs @@ -20,7 +20,7 @@ namespace Discord.Commands var constructor = constructors[0]; System.Reflection.ParameterInfo[] parameters = constructor.GetParameters(); System.Reflection.PropertyInfo[] properties = typeInfo.DeclaredProperties - .Where(p => p.CanWrite && p.GetCustomAttribute() == null) + .Where(p => p.SetMethod?.IsPublic == true && p.GetCustomAttribute() == null) .ToArray(); return (map) =>