Add a source type to not command hooks

This commit is contained in:
Zontreck 2020-06-02 08:32:33 -07:00
parent a50237304d
commit fe628b0a9d
3 changed files with 23 additions and 7 deletions

View file

@ -7,6 +7,10 @@ namespace Bot.NonCommands
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public class NotCommand : Attribute
{
/// <summary>
/// Defaults to all except action
/// </summary>
public MessageHandler.Destinations SourceType = MessageHandler.Destinations.DEST_AGENT | MessageHandler.Destinations.DEST_CONSOLE_INFO | MessageHandler.Destinations.DEST_DISCORD | MessageHandler.Destinations.DEST_GROUP | MessageHandler.Destinations.DEST_LOCAL;
public NotCommand()
{
// Not Command, this just marks a class