Class CommandServiceHostExtensions
- Namespace
- NetCord.Hosting.Services.Commands
- Assembly
- NetCord.Hosting.Services.dll
public static class CommandServiceHostExtensions
- Inheritance
-
CommandServiceHostExtensions
- Inherited Members
-
Methods
AddCommand(IHost, IEnumerable<string>, Delegate)
public static CommandBuilder AddCommand(this IHost host, IEnumerable<string> aliases, Delegate handler)
Parameters
host
IHost
aliases
IEnumerable<string>
handler
Delegate
Returns
- CommandBuilder
AddCommandModule(IHost, Type)
public static IHost AddCommandModule(this IHost host, Type type)
Parameters
host
IHost
type
Type
Returns
- IHost
AddCommandModule<T>(IHost)
public static IHost AddCommandModule<T>(this IHost host)
Parameters
host
IHost
Returns
- IHost
Type Parameters
T
AddCommandModule<TContext>(IHost, Type)
public static IHost AddCommandModule<TContext>(this IHost host, Type type) where TContext : ICommandContext
Parameters
host
IHost
type
Type
Returns
- IHost
Type Parameters
TContext
AddCommandModule<TContext, T>(IHost)
public static IHost AddCommandModule<TContext, T>(this IHost host) where TContext : ICommandContext
Parameters
host
IHost
Returns
- IHost
Type Parameters
TContext
T
AddCommand<TContext>(IHost, IEnumerable<string>, Delegate)
public static CommandBuilder AddCommand<TContext>(this IHost host, IEnumerable<string> aliases, Delegate handler) where TContext : ICommandContext
Parameters
host
IHost
aliases
IEnumerable<string>
handler
Delegate
Returns
- CommandBuilder
Type Parameters
TContext