Fix properties not being set properly on injection

This commit is contained in:
james7132
2017-02-11 05:48:45 +00:00
parent bb95686078
commit 145ae1518b

View File

@@ -65,7 +65,7 @@ namespace Discord.Commands
else
throw new InvalidOperationException($"Failed to create \"{typeInfo.FullName}\", dependency \"{property.PropertyType.Name}\" was not found.");
}
property.SetValue(prop, null);
property.SetValue(obj, prop);
}
return obj;
};