import { TextBasedChannels } from 'discord.js'; import { CommandContext } from '../contexts'; import { Command } from './'; /** * The options for setting an image in an embed. */ export interface ImageEmbedOptions { /** * Channel where to send the image. */ channel: TextBasedChannels; /** * Description of the embed. */ description: string; /** * Link of the image. */ link?: string; /** * Local path of the image. */ path?: string; /** * Title of the embed. */ title: string; } /** * The options for setting an image in an embed to send in a context. */ export interface ImageEmbedContextOptions extends Omit { /** * The context where to send the image. */ ctx: CommandContext; } /** *The options for setting a local image in a message. */ export interface ImageLocalOptions { /** * Channel where to send the image. */ channel: TextBasedChannels; /** * Content of the message. */ content: string; /** * Local path of the image. */ path: string; } /** *The options for setting a local image in a message from a context. */ export interface ImageLocalContextOptions extends Omit { /** * The context where to send the image. */ ctx: CommandContext; } /** * @see {@link https://ayfri.gitbook.io/advanced-command-handler/concepts/commands/templates} */ export declare abstract class ImageCommand extends Command { /** * Send a local image in an embed from your files. * * @param options - The options. * @returns - The message with the embed sent. */ sendImageEmbed(options: ImageEmbedOptions | ImageEmbedContextOptions): Promise; /** * Send a local image from your files. * * @param options - The options. * @returns - The message with the image sent. */ sendLocalImage(options: ImageLocalOptions | ImageLocalContextOptions): Promise; }