Table of Contents
API reference

Method UseApplicationCommands

Namespace
DisCatSharp.ApplicationCommands
Assembly
DisCatSharp.ApplicationCommands.dll

UseApplicationCommands(DiscordClient, ApplicationCommandsConfiguration?)

Enables application commands on this DiscordClient. Registration is started from the gateway ready lifecycle and is not triggered by HTTP ingress alone.

public static ApplicationCommandsExtension UseApplicationCommands(this DiscordClient client, ApplicationCommandsConfiguration? config = null)

Parameters

client DiscordClient

Client to enable application commands for.

config ApplicationCommandsConfiguration

Configuration to use.

Returns

ApplicationCommandsExtension

Created ApplicationCommandsExtension.