Table of Contents

Method GetGuildApplicationCommandsAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.dll

GetGuildApplicationCommandsAsync(ulong, bool)

Gets all the application commands for a guild.

public Task<IReadOnlyList<DiscordApplicationCommand>> GetGuildApplicationCommandsAsync(ulong guildId, bool withLocalizations = false)

Parameters

guildId ulong

The ID of the guild to get application commands for.

withLocalizations bool

Whether to include localizations in the response.

Returns

Task<IReadOnlyList<DiscordApplicationCommand>>

A list of application commands in the guild.