mirror of
https://gitlab.com/Deukhoofd/DeukBot4.git
synced 2026-04-04 11:40:05 +00:00
More work
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
|
||||
namespace DeukBot4.MessageHandlers
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Method)]
|
||||
public class BlockUsageInPmAttribute : Attribute
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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};
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user