Added initial commands project
This commit is contained in:
14
src/Discord.Net.Commands/Attributes/CommandAttribute.cs
Normal file
14
src/Discord.Net.Commands/Attributes/CommandAttribute.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
|
||||
namespace Discord.Commands
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Method)]
|
||||
public class CommandAttribute : Attribute
|
||||
{
|
||||
public string Name { get; }
|
||||
public CommandAttribute(string name)
|
||||
{
|
||||
Name = name;
|
||||
}
|
||||
}
|
||||
}
|
||||
14
src/Discord.Net.Commands/Attributes/DescriptionAttribute.cs
Normal file
14
src/Discord.Net.Commands/Attributes/DescriptionAttribute.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
|
||||
namespace Discord.Commands
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Parameter)]
|
||||
public class DescriptionAttribute : Attribute
|
||||
{
|
||||
public string Text { get; }
|
||||
public DescriptionAttribute(string text)
|
||||
{
|
||||
Text = text;
|
||||
}
|
||||
}
|
||||
}
|
||||
14
src/Discord.Net.Commands/Attributes/GroupAttribute.cs
Normal file
14
src/Discord.Net.Commands/Attributes/GroupAttribute.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
|
||||
namespace Discord.Commands
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class)]
|
||||
public class GroupAttribute : Attribute
|
||||
{
|
||||
public string Name { get; }
|
||||
public GroupAttribute(string name)
|
||||
{
|
||||
Name = name;
|
||||
}
|
||||
}
|
||||
}
|
||||
9
src/Discord.Net.Commands/Attributes/ModuleAttribute.cs
Normal file
9
src/Discord.Net.Commands/Attributes/ModuleAttribute.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using System;
|
||||
|
||||
namespace Discord.Commands
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class)]
|
||||
public class ModuleAttribute : Attribute
|
||||
{
|
||||
}
|
||||
}
|
||||
9
src/Discord.Net.Commands/Attributes/UnparsedAttribute.cs
Normal file
9
src/Discord.Net.Commands/Attributes/UnparsedAttribute.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using System;
|
||||
|
||||
namespace Discord.Commands
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Parameter)]
|
||||
public class UnparsedAttribute : Attribute
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user