Table of Contents

Method EditGlobalApplicationCommandAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.dll

EditGlobalApplicationCommandAsync(ulong, Action<ApplicationCommandEditModel>)

Edits a global application command.

public Task<DiscordApplicationCommand> EditGlobalApplicationCommandAsync(ulong commandId, Action<ApplicationCommandEditModel> action)

Parameters

commandId ulong

The ID of the command to edit.

action Action<ApplicationCommandEditModel>

Action to perform.

Returns

Task<DiscordApplicationCommand>

The edited command.