Skip to main content
Module

x/harmony/deploy.ts>SlashCommandPermissionsManager

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

Constructors

new
SlashCommandPermissionsManager(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