Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Christopher F
2017-06-27 08:49:53 -04:00
2 changed files with 3 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ namespace Discord.Commands
{ {
foreach (var prop in ownerType.DeclaredProperties) foreach (var prop in ownerType.DeclaredProperties)
{ {
if (prop.SetMethod?.IsPublic == true && prop.GetCustomAttribute<DontInjectAttribute>() == null) if (prop.GetMethod?.IsStatic == false && prop.SetMethod?.IsPublic == true && prop.GetCustomAttribute<DontInjectAttribute>() == null)
result.Add(prop); result.Add(prop);
} }
ownerType = ownerType.BaseType.GetTypeInfo(); ownerType = ownerType.BaseType.GetTypeInfo();

View File

@@ -7,6 +7,7 @@
Video, Video,
Image, Image,
Gifv, Gifv,
Article Article,
Tweet
} }
} }