-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCommandExecutionStep.cs
More file actions
42 lines (36 loc) · 1.32 KB
/
CommandExecutionStep.cs
File metadata and controls
42 lines (36 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using Ultz.Extensions.Commands.ModuleBases;
using Ultz.Extensions.Commands.Parsing.ArgumentParsers;
namespace Ultz.Extensions.Commands.Results.Failed.Execution
{
/// <summary>
/// Represents the execution step at which the <see cref="ExecutionFailedResult" /> was returned.
/// </summary>
public enum CommandExecutionStep
{
/// <summary>
/// An exception occurred while handling the <see cref="Built.Command" />'s checks.
/// </summary>
Checks,
/// <summary>
/// An exception occurred in <see cref="IArgumentParser.ParseAsync" /> during raw argument parsing.
/// </summary>
ArgumentParsing,
/// <summary>
/// An exception occurred during type parsing.
/// </summary>
TypeParsing,
/// <summary>
/// An exception occurred during generating the cooldown bucket key using
/// <see cref="CommandService.CooldownBucketKeyGenerator" />.
/// </summary>
CooldownBucketKeyGenerating,
/// <summary>
/// An exception occcured in <see cref="ModuleBase{TContext}.BeforeExecutedAsync" />.
/// </summary>
BeforeExecuted,
/// <summary>
/// An execution occurred when executing the <see cref="Built.Command" />.
/// </summary>
Command
}
}