@wilcosp/rex
Version:
Rex is an automated command manager for discord js
21 lines (20 loc) • 1.05 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 { APIInteractionGuildMember } from "discord-api-types/v10";
import { CacheType, CacheTypeReducer, GuildMember, UserContextMenuCommandInteraction } from "discord.js";
import { ExtraCommandReplyInteractionOptions } from "../../types/types.js";
import { RexContextMenuInteraction } from "./contextBase.js";
export declare class RexUserContextmenuInteraction extends RexContextMenuInteraction {
inter: UserContextMenuCommandInteraction;
constructor(inter: UserContextMenuCommandInteraction, opt?: ExtraCommandReplyInteractionOptions);
get targetUser(): import("discord.js").User;
get targetMember(): CacheTypeReducer<CacheType, GuildMember, APIInteractionGuildMember>;
/**
* whether this interaction is from a user menu
* @returns
*/
isUserContextMenu(): this is RexUserContextmenuInteraction;
}