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