Browse Source

Added ParentModule Type to reference other module as parent.

pull/1399/head
LtLi0n 5 years ago
parent
commit
f98f800fec
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/Discord.Net.Commands/Attributes/GroupAttribute.cs

+ 5
- 0
src/Discord.Net.Commands/Attributes/GroupAttribute.cs View File

@@ -13,6 +13,11 @@ namespace Discord.Commands
/// </summary>
public string Prefix { get; }

/// <summary>
/// Uses this module as parent instead. Allows creation of group modules outside of parent class.
/// </summary>
public Type ParentModule { get; set; }

/// <inheritdoc />
public GroupAttribute()
{


Loading…
Cancel
Save