Clean all the things!
This commit is contained in:
21
src/Discord.Net.Commands/Command.cs
Normal file
21
src/Discord.Net.Commands/Command.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Discord.Commands
|
||||
{
|
||||
public sealed class Command
|
||||
{
|
||||
public string Text { get; }
|
||||
public int? MinArgs { get; internal set; }
|
||||
public int? MaxArgs { get; internal set; }
|
||||
public int MinPerms { get; internal set; }
|
||||
internal readonly string[] Parts;
|
||||
internal Func<DiscordBotClient.CommandEventArgs, Task> Handler;
|
||||
|
||||
internal Command(string text)
|
||||
{
|
||||
Text = text;
|
||||
Parts = text.ToLowerInvariant().Split(' ');
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user