Table of Contents

Class SlashCommandGroupBuilder

Namespace
NetCord.Services.ApplicationCommands
Assembly
NetCord.Services.dll
public class SlashCommandGroupBuilder : ApplicationCommandBuilder
Inheritance
SlashCommandGroupBuilder
Inherited Members

Constructors

SlashCommandGroupBuilder(string, string)

public SlashCommandGroupBuilder(string name, string description)

Parameters

name string
description string

Properties

Description

public string Description { get; }

Property Value

string

Methods

AddContexts(params IEnumerable<InteractionContextType>)

public SlashCommandGroupBuilder AddContexts(params IEnumerable<InteractionContextType> contexts)

Parameters

contexts IEnumerable<InteractionContextType>

Returns

SlashCommandGroupBuilder

AddIntegrationTypes(params IEnumerable<ApplicationIntegrationType>)

public SlashCommandGroupBuilder AddIntegrationTypes(params IEnumerable<ApplicationIntegrationType> integrationTypes)

Parameters

integrationTypes IEnumerable<ApplicationIntegrationType>

Returns

SlashCommandGroupBuilder

AddSubCommand(string, string, Delegate)

public SubSlashCommandBuilder AddSubCommand(string name, string description, Delegate handler)

Parameters

name string
description string
handler Delegate

Returns

SubSlashCommandBuilder

AddSubCommandGroup(string, string)

public SubSlashCommandGroupBuilder AddSubCommandGroup(string name, string description)

Parameters

name string
description string

Returns

SubSlashCommandGroupBuilder

AddSubCommandGroup(string, string, Action<SubSlashCommandGroupBuilder>)

public SubSlashCommandGroupBuilder AddSubCommandGroup(string name, string description, Action<SubSlashCommandGroupBuilder> builder)

Parameters

name string
description string
builder Action<SubSlashCommandGroupBuilder>

Returns

SubSlashCommandGroupBuilder

WithContexts(IEnumerable<InteractionContextType>?)

public SlashCommandGroupBuilder WithContexts(IEnumerable<InteractionContextType>? contexts)

Parameters

contexts IEnumerable<InteractionContextType>

Returns

SlashCommandGroupBuilder

WithDefaultGuildPermissions(Permissions?)

public SlashCommandGroupBuilder WithDefaultGuildPermissions(Permissions? defaultGuildPermissions)

Parameters

defaultGuildPermissions Permissions?

Returns

SlashCommandGroupBuilder

WithIntegrationTypes(IEnumerable<ApplicationIntegrationType>?)

public SlashCommandGroupBuilder WithIntegrationTypes(IEnumerable<ApplicationIntegrationType>? integrationTypes)

Parameters

integrationTypes IEnumerable<ApplicationIntegrationType>

Returns

SlashCommandGroupBuilder

WithNsfw(bool)

public SlashCommandGroupBuilder WithNsfw(bool nsfw = true)

Parameters

nsfw bool

Returns

SlashCommandGroupBuilder

WithRegister(bool)

public SlashCommandGroupBuilder WithRegister(bool register = true)

Parameters

register bool

Returns

SlashCommandGroupBuilder