1
0
mirror of https://gitlab.com/Deukhoofd/DeukBot4.git synced 2026-04-04 11:40:05 +00:00

More work

This commit is contained in:
2018-03-29 21:57:16 +02:00
parent 64776e18eb
commit ba1096be6d
12 changed files with 126 additions and 12 deletions

View File

@@ -0,0 +1,10 @@
using System;
namespace DeukBot4.MessageHandlers
{
[AttributeUsage(AttributeTargets.Method)]
public class BlockUsageInPmAttribute : Attribute
{
}
}

View File

@@ -12,5 +12,20 @@ namespace DeukBot4.MessageHandlers
{
Types = types;
}
public CommandParametersAttribute(ParameterMatcher.ParameterType type)
{
Types = new []{type};
}
public CommandParametersAttribute(ParameterMatcher.ParameterType type, ParameterMatcher.ParameterType type2)
{
Types = new []{type, type2};
}
public CommandParametersAttribute(ParameterMatcher.ParameterType type, ParameterMatcher.ParameterType type2,
ParameterMatcher.ParameterType type3)
{
Types = new []{type, type2, type3};
}
}
}