Merge pull request #178 from DigiTechs/command_tweaks

Command tweaks
This commit is contained in:
RogueException
2016-08-09 17:31:10 -03:00
committed by GitHub
4 changed files with 25 additions and 13 deletions

View File

@@ -2,7 +2,8 @@
namespace Discord.Commands
{
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Parameter)]
// Full summary of method
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class)]
public class DescriptionAttribute : Attribute
{
public string Text { get; }
@@ -12,11 +13,12 @@ namespace Discord.Commands
}
}
[AttributeUsage(AttributeTargets.Method)]
public class SynopsisAttribute : Attribute
// Brief summary of method/module/parameter
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Parameter)]
public class SummaryAttribute : Attribute
{
public string Text { get; }
public SynopsisAttribute(string text)
public SummaryAttribute(string text)
{
Text = text;
}