Files
nadekobot/src/NadekoBot/Common/ModuleBehaviors/IEarlyBehavior.cs
Kwoth aeb6f8662c Early behavior fixups:
- Priorities are now higher number -> higher priority
- Priorities are now actually respected
- Early behaviors now print custom messages when they perform an action (Filter trigger, blacklist, poll vote, etc)
- small cleanup
2021-09-06 21:34:50 +02:00

15 lines
356 B
C#

using System.Threading.Tasks;
using Discord;
namespace NadekoBot.Common.ModuleBehaviors
{
/// <summary>
/// Implemented by modules which block execution before anything is executed
/// </summary>
public interface IEarlyBehavior
{
int Priority { get; }
Task<bool> RunBehavior(IGuild guild, IUserMessage msg);
}
}