UNPKG

@wilcosp/rex

Version:

Rex is an automated command manager for discord js

19 lines (18 loc) 958 B
/*! * 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 { CacheType, CommandInteractionOption, MessageContextMenuCommandInteraction } from "discord.js"; import { ExtraCommandReplyInteractionOptions } from "../../types/types.js"; import { RexContextMenuInteraction } from "./contextBase.js"; export declare class RexMessageContextmenuInteraction extends RexContextMenuInteraction { inter: MessageContextMenuCommandInteraction; constructor(inter: MessageContextMenuCommandInteraction, opt?: ExtraCommandReplyInteractionOptions); get targetMessage(): NonNullable<CommandInteractionOption<CacheType>["message"]>; /** * whether this interaction is from a message context menu * @returns boolean */ isMessageContextMenu(): this is RexMessageContextmenuInteraction; }