@wilcosp/rex
Version:
Rex is an automated command manager for discord js
26 lines (25 loc) • 1.13 kB
TypeScript
/*!
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import { ContextMenuCommandInteraction } from "discord.js";
import { ExtraCommandReplyInteractionOptions } from "../../types/types.js";
import { RexReplyOptionsInteractionBase } from "../replyOptionsBase.js";
import { RexMessageContextmenuInteraction } from "./message.js";
import { RexUserContextmenuInteraction } from "./user.js";
export declare abstract class RexContextMenuInteraction extends RexReplyOptionsInteractionBase {
inter: ContextMenuCommandInteraction;
constructor(inter: ContextMenuCommandInteraction, opt?: ExtraCommandReplyInteractionOptions);
/**
* whether this interaction is from a message context menu
* @returns boolean
*/
isMessageContextMenu(): this is RexMessageContextmenuInteraction;
/**
* whether this interaction is from a user menu
* @returns
*/
isUserContextMenu(): this is RexUserContextmenuInteraction;
get targetId(): string;
}