Class ApplicationCommandServiceHostExtensions
- Namespace
- NetCord.Hosting.Services.ApplicationCommands
- Assembly
- NetCord.Hosting.Services.dll
public static class ApplicationCommandServiceHostExtensions
- Inheritance
-
ApplicationCommandServiceHostExtensions
- Inherited Members
-
Methods
AddApplicationCommandModule(IHost, Type)
public static IHost AddApplicationCommandModule(this IHost host, Type type)
Parameters
host
IHost
type
Type
Returns
- IHost
AddApplicationCommandModule<T>(IHost)
public static IHost AddApplicationCommandModule<T>(this IHost host)
Parameters
host
IHost
Returns
- IHost
Type Parameters
T
AddApplicationCommandModule<TContext>(IHost, Type)
public static IHost AddApplicationCommandModule<TContext>(this IHost host, Type type) where TContext : IApplicationCommandContext
Parameters
host
IHost
type
Type
Returns
- IHost
Type Parameters
TContext
AddApplicationCommandModule<TContext, T>(IHost)
public static IHost AddApplicationCommandModule<TContext, T>(this IHost host) where TContext : IApplicationCommandContext
Parameters
host
IHost
Returns
- IHost
Type Parameters
TContext
T
AddEntryPointCommand(IHost, string, string)
public static EntryPointCommandBuilder AddEntryPointCommand(this IHost host, string name, string description)
Parameters
host
IHost
name
string
description
string
Returns
- EntryPointCommandBuilder
AddEntryPointCommand<TContext>(IHost, string, string)
public static EntryPointCommandBuilder AddEntryPointCommand<TContext>(this IHost host, string name, string description) where TContext : IApplicationCommandContext
Parameters
host
IHost
name
string
description
string
Returns
- EntryPointCommandBuilder
Type Parameters
TContext
AddMessageCommand(IHost, string, Delegate)
public static MessageCommandBuilder AddMessageCommand(this IHost host, string name, Delegate handler)
Parameters
host
IHost
name
string
handler
Delegate
Returns
- MessageCommandBuilder
AddMessageCommand<TContext>(IHost, string, Delegate)
public static MessageCommandBuilder AddMessageCommand<TContext>(this IHost host, string name, Delegate handler) where TContext : IApplicationCommandContext
Parameters
host
IHost
name
string
handler
Delegate
Returns
- MessageCommandBuilder
Type Parameters
TContext
AddSlashCommand(IHost, string, string, Delegate)
public static SlashCommandBuilder AddSlashCommand(this IHost host, string name, string description, Delegate handler)
Parameters
host
IHost
name
string
description
string
handler
Delegate
Returns
- SlashCommandBuilder
AddSlashCommandGroup(IHost, string, string)
public static SlashCommandGroupBuilder AddSlashCommandGroup(this IHost host, string name, string description)
Parameters
host
IHost
name
string
description
string
Returns
- SlashCommandGroupBuilder
AddSlashCommandGroup(IHost, string, string, Action<SlashCommandGroupBuilder>)
public static SlashCommandGroupBuilder AddSlashCommandGroup(this IHost host, string name, string description, Action<SlashCommandGroupBuilder> builder)
Parameters
host
IHost
name
string
description
string
builder
Action<SlashCommandGroupBuilder>
Returns
- SlashCommandGroupBuilder
AddSlashCommandGroup<TContext>(IHost, string, string)
public static SlashCommandGroupBuilder AddSlashCommandGroup<TContext>(this IHost host, string name, string description) where TContext : IApplicationCommandContext
Parameters
host
IHost
name
string
description
string
Returns
- SlashCommandGroupBuilder
Type Parameters
TContext
AddSlashCommandGroup<TContext>(IHost, string, string, Action<SlashCommandGroupBuilder>)
public static SlashCommandGroupBuilder AddSlashCommandGroup<TContext>(this IHost host, string name, string description, Action<SlashCommandGroupBuilder> builder) where TContext : IApplicationCommandContext
Parameters
host
IHost
name
string
description
string
builder
Action<SlashCommandGroupBuilder>
Returns
- SlashCommandGroupBuilder
Type Parameters
TContext
AddSlashCommand<TContext>(IHost, string, string, Delegate)
public static SlashCommandBuilder AddSlashCommand<TContext>(this IHost host, string name, string description, Delegate handler) where TContext : IApplicationCommandContext
Parameters
host
IHost
name
string
description
string
handler
Delegate
Returns
- SlashCommandBuilder
Type Parameters
TContext
AddUserCommand(IHost, string, Delegate)
public static UserCommandBuilder AddUserCommand(this IHost host, string name, Delegate handler)
Parameters
host
IHost
name
string
handler
Delegate
Returns
- UserCommandBuilder
AddUserCommand<TContext>(IHost, string, Delegate)
public static UserCommandBuilder AddUserCommand<TContext>(this IHost host, string name, Delegate handler) where TContext : IApplicationCommandContext
Parameters
host
IHost
name
string
handler
Delegate
Returns
- UserCommandBuilder
Type Parameters
TContext