NadekoBot/src/NadekoBot/Common/ModuleBehaviors/IEarlyBlockingExecutor.cs

19 lines
630 B
C#
Raw Normal View History

2017-05-25 02:24:43 +00:00
using Discord;
using Discord.WebSocket;
using System.Threading.Tasks;
namespace NadekoBot.DataStructures.ModuleBehaviors
{
/// <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
}
}