Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/natico/examples/deps.ts>batchEditApplicationCommandPermissions

A powerful and customizable framework for Discordeno
Latest
function batchEditApplicationCommandPermissions
import { batchEditApplicationCommandPermissions } from "https://deno.land/x/natico@4.0.0-pre.4/examples/deps.ts";

Batch edits permissions for all commands in a guild. Takes an array of partial GuildApplicationCommandPermissions objects including id and permissions.

Parameters

bot: Bot
guildId: bigint
options: { id: string; permissions: ApplicationCommandPermissions[]; }[]