Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -58,7 +58,7 @@ namespace Discord.Commands
|
||||
{
|
||||
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);
|
||||
}
|
||||
ownerType = ownerType.BaseType.GetTypeInfo();
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
Video,
|
||||
Image,
|
||||
Gifv,
|
||||
Article
|
||||
Article,
|
||||
Tweet
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user