NadekoBot/NadekoBot.Core/Common/ModuleBehaviors/IEarlyBlockingExecutor.cs

19 lines
622 B
C#
Raw Normal View History

2017-07-17 19:42:36 +00:00
using System.Threading.Tasks;
using Discord;
2017-05-25 02:24:43 +00:00
using Discord.WebSocket;
2017-07-17 19:42:36 +00:00
namespace NadekoBot.Common.ModuleBehaviors
2017-05-25 02:24:43 +00:00
{
/// <summary>
/// Implemented by modules which can execute something and prevent further commands from being executed.
/// </summary>
public interface IEarlyBlockingExecutor
2017-05-25 02:24:43 +00:00
{
/// <summary>
/// Try to execute some logic within some module's service.
/// </summary>
/// <returns>Whether it should block other command executions after it.</returns>
Task<bool> TryExecuteEarly(DiscordSocketClient client, IGuild guild, IUserMessage msg);
2017-05-25 02:24:43 +00:00
}
}