Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
class ApplicationCommandPermissionsManager
import { ApplicationCommandPermissionsManager } from "https://deno.land/x/harmony@v2.8.0/src/interactions/applicationCommand.ts";

Constructors

new
ApplicationCommandPermissionsManager(client: InteractionsClient, guildID?: string)

Properties

readonly
rest: RESTManager
readonly
slash: InteractionsClient

Methods

all(guild?: Guild | string): Promise<GuildApplicationCommandPermissions[]>

Get an array of all Slash Commands (of current Client) Permissions in a Guild

Sets permissions of multiple Slash Commands in a Guild with just one call

get(cmd: string | ApplicationCommand, guild: Guild | string): Promise<GuildApplicationCommandPermissions>

Get slash command permissions for a specific command

set(
cmd: string | ApplicationCommand,
guild: Guild | string,
): Promise<GuildApplicationCommandPermissions>

Sets permissions of a Slash Command in a Guild