Table of Contents

Method CreateGuildApplicationCommandAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.dll

CreateGuildApplicationCommandAsync(ulong, DiscordApplicationCommand)

Creates or overwrites a guild application command.

public Task<DiscordApplicationCommand> CreateGuildApplicationCommandAsync(ulong guildId, DiscordApplicationCommand command)

Parameters

guildId ulong

The ID of the guild to create the application command in.

command DiscordApplicationCommand

The command to create.

Returns

Task<DiscordApplicationCommand>

The created command.