Browse Source

Fix properties not being set properly on injection

tags/1.0-rc
james7132 8 years ago
parent
commit
145ae1518b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Commands/Utilities/ReflectionUtils.cs

+ 1
- 1
src/Discord.Net.Commands/Utilities/ReflectionUtils.cs 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;
};


Loading…
Cancel
Save