Method GetGuildApplicationCommandsAsync
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
GetGuildApplicationCommandsAsync(ulong, bool, CancellationToken)
Gets all the application commands for a guild.
public Task<IReadOnlyList<DiscordApplicationCommand>> GetGuildApplicationCommandsAsync(ulong guildId, bool withLocalizations = false, CancellationToken cancellationToken = default)
Parameters
guildIdulongThe id of the guild to get application commands for.
withLocalizationsboolWhether to get the full localization dict.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<IReadOnlyList<DiscordApplicationCommand>>
A list of application commands in the guild.