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, int)
public static IHost AddCommand(this IHost host, IEnumerable<string> aliases, Delegate handler, int priority = 0)
Parameters
host
IHost
aliases
IEnumerable<string>
handler
Delegate
priority
int
Returns
- IHost
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, int)
public static IHost AddCommand<TContext>(this IHost host, IEnumerable<string> aliases, Delegate handler, int priority = 0) where TContext : ICommandContext
Parameters
host
IHost
aliases
IEnumerable<string>
handler
Delegate
priority
int
Returns
- IHost
Type Parameters
TContext