Browse Source

Add RunMode documentation

pull/988/head
Hsu Still 7 years ago
parent
commit
e6b00979f9
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      src/Discord.Net.Commands/RunMode.cs

+ 10
- 1
src/Discord.Net.Commands/RunMode.cs View File

@@ -1,9 +1,18 @@
namespace Discord.Commands
namespace Discord.Commands
{
public enum RunMode
{
/// <summary>
/// Default <see cref="RunMode"/> behaviour set in <see cref="CommandServiceConfig"/>.
/// </summary>
Default,
/// <summary>
/// Executes the command on the same thread as gateway.
/// </summary>
Sync,
/// <summary>
/// Executes the command on a different thread from the gateway one.
/// </summary>
Async
}
}

Loading…
Cancel
Save