Table of Contents

Interface IApplicationCommandsBuilder

Namespace
NetCord.Hosting.Services.ApplicationCommands
Assembly
NetCord.Hosting.Services.dll
public interface IApplicationCommandsBuilder

Methods

AddEntryPointCommand(string, string)

EntryPointCommandBuilder AddEntryPointCommand(string name, string description)

Parameters

name string
description string

Returns

EntryPointCommandBuilder

AddMessageCommand(string, Delegate)

MessageCommandBuilder AddMessageCommand(string name, Delegate handler)

Parameters

name string
handler Delegate

Returns

MessageCommandBuilder

AddSlashCommand(string, string, Delegate)

SlashCommandBuilder AddSlashCommand(string name, string description, Delegate handler)

Parameters

name string
description string
handler Delegate

Returns

SlashCommandBuilder

AddSlashCommandGroup(string, string)

SlashCommandGroupBuilder AddSlashCommandGroup(string name, string description)

Parameters

name string
description string

Returns

SlashCommandGroupBuilder

AddSlashCommandGroup(string, string, Action<SlashCommandGroupBuilder>)

SlashCommandGroupBuilder AddSlashCommandGroup(string name, string description, Action<SlashCommandGroupBuilder> builder)

Parameters

name string
description string
builder Action<SlashCommandGroupBuilder>

Returns

SlashCommandGroupBuilder

AddUserCommand(string, Delegate)

UserCommandBuilder AddUserCommand(string name, Delegate handler)

Parameters

name string
handler Delegate

Returns

UserCommandBuilder

Build()

void Build()