Cleaned up command attributes
This commit is contained in:
@@ -7,20 +7,10 @@ namespace Discord.Commands
|
||||
public class DescriptionAttribute : Attribute
|
||||
{
|
||||
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)
|
||||
{
|
||||
Text = text;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ namespace Discord.Commands
|
||||
public class GroupAttribute : Attribute
|
||||
{
|
||||
public string Prefix { get; }
|
||||
|
||||
public GroupAttribute()
|
||||
{
|
||||
Prefix = null;
|
||||
|
||||
@@ -6,7 +6,8 @@ namespace Discord.Commands
|
||||
public class ModuleAttribute : Attribute
|
||||
{
|
||||
public string Prefix { get; }
|
||||
public bool AutoLoad { get; set; }
|
||||
public bool AutoLoad { get; }
|
||||
|
||||
public ModuleAttribute()
|
||||
{
|
||||
Prefix = null;
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Discord.Commands
|
||||
|
||||
16
src/Discord.Net.Commands/Attributes/SummaryAttribute.cs
Normal file
16
src/Discord.Net.Commands/Attributes/SummaryAttribute.cs
Normal file
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user