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>
|
2017-05-29 04:13:22 +00:00
|
|
|
|
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>
|
2017-06-19 13:42:10 +00:00
|
|
|
|
Task<bool> TryExecuteEarly(DiscordSocketClient client, IGuild guild, IUserMessage msg);
|
2017-05-25 02:24:43 +00:00
|
|
|
|
}
|
|
|
|
|
}
|