Table of Contents

Method BatchEditApplicationCommandPermissionsAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.Rest.dll

BatchEditApplicationCommandPermissionsAsync(ulong, IEnumerable<DiscordGuildApplicationCommandPermissions>)

Batch edits permissions for a application command in a guild.

public Task<IReadOnlyList<DiscordGuildApplicationCommandPermissions>> BatchEditApplicationCommandPermissionsAsync(ulong guildId, IEnumerable<DiscordGuildApplicationCommandPermissions> permissions)

Parameters

guildId ulong

The guild ID.

permissions IEnumerable<DiscordGuildApplicationCommandPermissions>

The list of permissions to use.

Returns

Task<IReadOnlyList<DiscordGuildApplicationCommandPermissions>>

A list of edited permissions.