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
AddMessageCommand(IHost, string, Delegate, Permissions?, bool?, bool, IEnumerable<ApplicationIntegrationType>?, IEnumerable<InteractionContextType>?, bool, ulong?)
public static IHost AddMessageCommand(this IHost host, string name, Delegate handler, Permissions? defaultGuildUserPermissions = null, bool? dMPermission = null, bool defaultPermission = true, IEnumerable<ApplicationIntegrationType>? integrationTypes = null, IEnumerable<InteractionContextType>? contexts = null, bool nsfw = false, ulong? guildId = null)
Parameters
host
IHost
name
string
handler
Delegate
defaultGuildUserPermissions
Permissions?
dMPermission
bool?
defaultPermission
bool
integrationTypes
IEnumerable<ApplicationIntegrationType>
contexts
IEnumerable<InteractionContextType>
nsfw
bool
guildId
ulong?
Returns
- IHost
AddMessageCommand<TContext>(IHost, string, Delegate, Permissions?, bool?, bool, IEnumerable<ApplicationIntegrationType>?, IEnumerable<InteractionContextType>?, bool, ulong?)
public static IHost AddMessageCommand<TContext>(this IHost host, string name, Delegate handler, Permissions? defaultGuildUserPermissions = null, bool? dMPermission = null, bool defaultPermission = true, IEnumerable<ApplicationIntegrationType>? integrationTypes = null, IEnumerable<InteractionContextType>? contexts = null, bool nsfw = false, ulong? guildId = null) where TContext : IApplicationCommandContext
Parameters
host
IHost
name
string
handler
Delegate
defaultGuildUserPermissions
Permissions?
dMPermission
bool?
defaultPermission
bool
integrationTypes
IEnumerable<ApplicationIntegrationType>
contexts
IEnumerable<InteractionContextType>
nsfw
bool
guildId
ulong?
Returns
- IHost
Type Parameters
TContext
AddSlashCommand(IHost, string, string, Delegate, Permissions?, bool?, bool, IEnumerable<ApplicationIntegrationType>?, IEnumerable<InteractionContextType>?, bool, ulong?)
public static IHost AddSlashCommand(this IHost host, string name, string description, Delegate handler, Permissions? defaultGuildUserPermissions = null, bool? dMPermission = null, bool defaultPermission = true, IEnumerable<ApplicationIntegrationType>? integrationTypes = null, IEnumerable<InteractionContextType>? contexts = null, bool nsfw = false, ulong? guildId = null)
Parameters
host
IHost
name
string
description
string
handler
Delegate
defaultGuildUserPermissions
Permissions?
dMPermission
bool?
defaultPermission
bool
integrationTypes
IEnumerable<ApplicationIntegrationType>
contexts
IEnumerable<InteractionContextType>
nsfw
bool
guildId
ulong?
Returns
- IHost
AddSlashCommand<TContext>(IHost, string, string, Delegate, Permissions?, bool?, bool, IEnumerable<ApplicationIntegrationType>?, IEnumerable<InteractionContextType>?, bool, ulong?)
public static IHost AddSlashCommand<TContext>(this IHost host, string name, string description, Delegate handler, Permissions? defaultGuildUserPermissions = null, bool? dMPermission = null, bool defaultPermission = true, IEnumerable<ApplicationIntegrationType>? integrationTypes = null, IEnumerable<InteractionContextType>? contexts = null, bool nsfw = false, ulong? guildId = null) where TContext : IApplicationCommandContext
Parameters
host
IHost
name
string
description
string
handler
Delegate
defaultGuildUserPermissions
Permissions?
dMPermission
bool?
defaultPermission
bool
integrationTypes
IEnumerable<ApplicationIntegrationType>
contexts
IEnumerable<InteractionContextType>
nsfw
bool
guildId
ulong?
Returns
- IHost
Type Parameters
TContext
AddUserCommand(IHost, string, Delegate, Permissions?, bool?, bool, IEnumerable<ApplicationIntegrationType>?, IEnumerable<InteractionContextType>?, bool, ulong?)
public static IHost AddUserCommand(this IHost host, string name, Delegate handler, Permissions? defaultGuildUserPermissions = null, bool? dMPermission = null, bool defaultPermission = true, IEnumerable<ApplicationIntegrationType>? integrationTypes = null, IEnumerable<InteractionContextType>? contexts = null, bool nsfw = false, ulong? guildId = null)
Parameters
host
IHost
name
string
handler
Delegate
defaultGuildUserPermissions
Permissions?
dMPermission
bool?
defaultPermission
bool
integrationTypes
IEnumerable<ApplicationIntegrationType>
contexts
IEnumerable<InteractionContextType>
nsfw
bool
guildId
ulong?
Returns
- IHost
AddUserCommand<TContext>(IHost, string, Delegate, Permissions?, bool?, bool, IEnumerable<ApplicationIntegrationType>?, IEnumerable<InteractionContextType>?, bool, ulong?)
public static IHost AddUserCommand<TContext>(this IHost host, string name, Delegate handler, Permissions? defaultGuildUserPermissions = null, bool? dMPermission = null, bool defaultPermission = true, IEnumerable<ApplicationIntegrationType>? integrationTypes = null, IEnumerable<InteractionContextType>? contexts = null, bool nsfw = false, ulong? guildId = null) where TContext : IApplicationCommandContext
Parameters
host
IHost
name
string
handler
Delegate
defaultGuildUserPermissions
Permissions?
dMPermission
bool?
defaultPermission
bool
integrationTypes
IEnumerable<ApplicationIntegrationType>
contexts
IEnumerable<InteractionContextType>
nsfw
bool
guildId
ulong?
Returns
- IHost
Type Parameters
TContext