commandbot
Version:
A framework that helps you create your own Discord bot easier.
42 lines (41 loc) • 1.37 kB
TypeScript
import { CommandManager } from "../structures/CommandManager.js";
import { PermissionGuildCommand, PermissionGuildCommandInit } from "./base/PermissionGuildCommand.js";
import { ContextType } from "./commandsTypes.js";
import { ContextMenuCommandObject } from "../structures/apiTypes.js";
/**
* Initialization options of context menu interactions
* @interface
* @extends {PermissionGuildCommandInit}
*/
export interface ContextMenuCommandInit extends PermissionGuildCommandInit {
/**
* Context menu target type
* @type {ContextType}
*/
contextType: ContextType;
}
/**
* Representation of all context menu Discord interactions
* @class
*/
export declare class ContextMenuCommand extends PermissionGuildCommand {
/**
* Type of context menu interaction
* @type {ContextType}
* @public
* @readonly
*/
readonly contextType: ContextType;
/**
* Context menu command constructor
* @constructor
* @param {CommandManager} manager - manager that this command belongs to
* @param {ContextMenuCommandInit} options - initialization options
*/
constructor(manager: CommandManager, options: ContextMenuCommandInit);
/**
* @returns {ContextMenuCommandObject} Discord API object
* @public
*/
toObject(): ContextMenuCommandObject;
}