Class EntryPointCommandBuilder
- Namespace
- NetCord.Services.ApplicationCommands
- Assembly
- NetCord.Services.dll
public class EntryPointCommandBuilder : ApplicationCommandBuilder
- Inheritance
-
EntryPointCommandBuilder
- Inherited Members
-
Constructors
EntryPointCommandBuilder(string, string)
public EntryPointCommandBuilder(string name, string description)
Parameters
name
string
description
string
Properties
Description
public string Description { get; }
Property Value
- string
Handler
public Delegate? Handler { get; set; }
Property Value
- Delegate
Methods
AddContexts(params IEnumerable<InteractionContextType>)
public EntryPointCommandBuilder AddContexts(params IEnumerable<InteractionContextType> contexts)
Parameters
contexts
IEnumerable<InteractionContextType>
Returns
- EntryPointCommandBuilder
AddIntegrationTypes(params IEnumerable<ApplicationIntegrationType>)
public EntryPointCommandBuilder AddIntegrationTypes(params IEnumerable<ApplicationIntegrationType> integrationTypes)
Parameters
integrationTypes
IEnumerable<ApplicationIntegrationType>
Returns
- EntryPointCommandBuilder
WithContexts(IEnumerable<InteractionContextType>?)
public EntryPointCommandBuilder WithContexts(IEnumerable<InteractionContextType>? contexts)
Parameters
contexts
IEnumerable<InteractionContextType>
Returns
- EntryPointCommandBuilder
WithDefaultGuildPermissions(Permissions?)
public EntryPointCommandBuilder WithDefaultGuildPermissions(Permissions? defaultGuildPermissions)
Parameters
defaultGuildPermissions
Permissions?
Returns
- EntryPointCommandBuilder
WithHandler(Delegate?)
public EntryPointCommandBuilder WithHandler(Delegate? handler)
Parameters
handler
Delegate
Returns
- EntryPointCommandBuilder
WithIntegrationTypes(IEnumerable<ApplicationIntegrationType>?)
public EntryPointCommandBuilder WithIntegrationTypes(IEnumerable<ApplicationIntegrationType>? integrationTypes)
Parameters
integrationTypes
IEnumerable<ApplicationIntegrationType>
Returns
- EntryPointCommandBuilder
WithNsfw(bool)
public EntryPointCommandBuilder WithNsfw(bool nsfw = true)
Parameters
nsfw
bool
Returns
- EntryPointCommandBuilder
WithRegister(bool)
public EntryPointCommandBuilder WithRegister(bool register = true)
Parameters
register
bool
Returns
- EntryPointCommandBuilder