Table of Contents

Class MessageCommandBuilder

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

Constructors

MessageCommandBuilder(string, Delegate)

public MessageCommandBuilder(string name, Delegate handler)

Parameters

name string
handler Delegate

Properties

Handler

public Delegate Handler { get; }

Property Value

Delegate

Methods

AddContexts(params IEnumerable<InteractionContextType>)

public MessageCommandBuilder AddContexts(params IEnumerable<InteractionContextType> contexts)

Parameters

contexts IEnumerable<InteractionContextType>

Returns

MessageCommandBuilder

AddIntegrationTypes(params IEnumerable<ApplicationIntegrationType>)

public MessageCommandBuilder AddIntegrationTypes(params IEnumerable<ApplicationIntegrationType> integrationTypes)

Parameters

integrationTypes IEnumerable<ApplicationIntegrationType>

Returns

MessageCommandBuilder

WithContexts(IEnumerable<InteractionContextType>?)

public MessageCommandBuilder WithContexts(IEnumerable<InteractionContextType>? contexts)

Parameters

contexts IEnumerable<InteractionContextType>

Returns

MessageCommandBuilder

WithDefaultGuildPermissions(Permissions?)

public MessageCommandBuilder WithDefaultGuildPermissions(Permissions? defaultGuildPermissions)

Parameters

defaultGuildPermissions Permissions?

Returns

MessageCommandBuilder

WithIntegrationTypes(IEnumerable<ApplicationIntegrationType>?)

public MessageCommandBuilder WithIntegrationTypes(IEnumerable<ApplicationIntegrationType>? integrationTypes)

Parameters

integrationTypes IEnumerable<ApplicationIntegrationType>

Returns

MessageCommandBuilder

WithNsfw(bool)

public MessageCommandBuilder WithNsfw(bool nsfw = true)

Parameters

nsfw bool

Returns

MessageCommandBuilder

WithRegister(bool)

public MessageCommandBuilder WithRegister(bool register = true)

Parameters

register bool

Returns

MessageCommandBuilder