mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 09:48:26 -04:00
- 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
15 lines
356 B
C#
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);
|
|
}
|
|
}
|