@@ -7,18 +7,8 @@ namespace Discord.Commands | |||||
public class DescriptionAttribute : Attribute | public class DescriptionAttribute : Attribute | ||||
{ | { | ||||
public string Text { get; } | public string Text { get; } | ||||
public DescriptionAttribute(string text) | |||||
{ | |||||
Text = text; | |||||
} | |||||
} | |||||
// Brief summary of method/module/parameter | |||||
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Parameter)] | |||||
public class SummaryAttribute : Attribute | |||||
{ | |||||
public string Text { get; } | |||||
public SummaryAttribute(string text) | |||||
public DescriptionAttribute(string text) | |||||
{ | { | ||||
Text = text; | Text = text; | ||||
} | } | ||||
@@ -6,6 +6,7 @@ namespace Discord.Commands | |||||
public class GroupAttribute : Attribute | public class GroupAttribute : Attribute | ||||
{ | { | ||||
public string Prefix { get; } | public string Prefix { get; } | ||||
public GroupAttribute() | public GroupAttribute() | ||||
{ | { | ||||
Prefix = null; | Prefix = null; | ||||
@@ -6,7 +6,8 @@ namespace Discord.Commands | |||||
public class ModuleAttribute : Attribute | public class ModuleAttribute : Attribute | ||||
{ | { | ||||
public string Prefix { get; } | public string Prefix { get; } | ||||
public bool AutoLoad { get; set; } | |||||
public bool AutoLoad { get; } | |||||
public ModuleAttribute() | public ModuleAttribute() | ||||
{ | { | ||||
Prefix = null; | Prefix = null; | ||||
@@ -1,6 +1,4 @@ | |||||
using System; | using System; | ||||
using System.Collections.Generic; | |||||
using System.Linq; | |||||
using System.Threading.Tasks; | using System.Threading.Tasks; | ||||
namespace Discord.Commands | namespace Discord.Commands | ||||
@@ -0,0 +1,16 @@ | |||||
using System; | |||||
namespace Discord.Commands | |||||
{ | |||||
// Brief summary of method/module/parameter | |||||
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Parameter)] | |||||
public class SummaryAttribute : Attribute | |||||
{ | |||||
public string Text { get; } | |||||
public SummaryAttribute(string text) | |||||
{ | |||||
Text = text; | |||||
} | |||||
} | |||||
} |