Table of Contents

Method EditGuildApplicationCommandAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.Rest.dll

EditGuildApplicationCommandAsync(ulong, ulong, Action<ApplicationCommandEditModel>)

Edits a application command in a guild.

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

Parameters

guildId ulong

The ID of the guild the application command is in.

commandId ulong

The ID of the command to edit.

action Action<ApplicationCommandEditModel>

Action to perform.

Returns

Task<DiscordApplicationCommand>

The edited command.