Table of Contents

Interface IApplicationCommandService

Namespace
NetCord.Services.ApplicationCommands
Assembly
NetCord.Services.dll
public interface IApplicationCommandService : IService
Inherited Members

Methods

AddMessageCommand(string, Delegate, Permissions?, bool?, bool, IEnumerable<ApplicationIntegrationType>?, IEnumerable<InteractionContextType>?, bool, ulong?)

void AddMessageCommand(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

name string
handler Delegate
defaultGuildUserPermissions Permissions?
dMPermission bool?
defaultPermission bool
integrationTypes IEnumerable<ApplicationIntegrationType>
contexts IEnumerable<InteractionContextType>
nsfw bool
guildId ulong?

AddModule(Type)

void AddModule(Type type)

Parameters

type Type

AddModule<T>()

void AddModule<T>()

Type Parameters

T

AddSlashCommand(string, string, Delegate, Permissions?, bool?, bool, IEnumerable<ApplicationIntegrationType>?, IEnumerable<InteractionContextType>?, bool, ulong?)

void AddSlashCommand(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

name string
description string
handler Delegate
defaultGuildUserPermissions Permissions?
dMPermission bool?
defaultPermission bool
integrationTypes IEnumerable<ApplicationIntegrationType>
contexts IEnumerable<InteractionContextType>
nsfw bool
guildId ulong?

AddUserCommand(string, Delegate, Permissions?, bool?, bool, IEnumerable<ApplicationIntegrationType>?, IEnumerable<InteractionContextType>?, bool, ulong?)

void AddUserCommand(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

name string
handler Delegate
defaultGuildUserPermissions Permissions?
dMPermission bool?
defaultPermission bool
integrationTypes IEnumerable<ApplicationIntegrationType>
contexts IEnumerable<InteractionContextType>
nsfw bool
guildId ulong?