UNPKG

discord-image-utils

Version:

A powerful library for generating and modifying images with Discord.js - includes meme generation, filters, effects and animations

13 lines (12 loc) 445 B
/** @format */ import { ImageInput } from "../types"; export default class Circle { /** * Converts an image into a circular shape. * * @param image - The image URL or Buffer to process. * @returns A Promise that resolves with a Buffer containing the processed PNG image. * @throws Will throw an error if the image is invalid or if processing fails. */ getImage(image: ImageInput): Promise<Buffer | null>; }