Table of Contents

Method UseSlashCommands

Namespace
DSharpPlus.SlashCommands
Assembly
DSharpPlus.SlashCommands.dll

UseSlashCommands(DiscordClient, SlashCommandsConfiguration)

Enables slash commands on this DiscordClient.

public static SlashCommandsExtension UseSlashCommands(this DiscordClient client, SlashCommandsConfiguration config = null)

Parameters

client DiscordClient

Client to enable slash commands for.

config SlashCommandsConfiguration

Configuration to use.

Returns

SlashCommandsExtension

Created SlashCommandsExtension.