Skip to main content
Module

x/harmony/deploy.ts>SlashCommandPermissionsManager#set

An easy to use Discord API Library for Deno.
Latest
method SlashCommandPermissionsManager.prototype.set
import { SlashCommandPermissionsManager } from "https://deno.land/x/harmony@v2.9.1/deploy.ts";

Sets permissions of a Slash Command in a Guild

Parameters

cmd: string | ApplicationCommand
permissions: ApplicationCommandPermission[]
guild: Guild | string

Returns

Promise<GuildApplicationCommandPermissions>