/** * An image format, here are the possible values: * * png * * jpg * * webp * * gif * @typedef {string} ImageFormat */ /** * An image size, here are the possible values: * 16, 32, 56, 96, 128, 256, 512, 600, 1024, 2048, 4096 * @typedef {number} ImageSize */ /** * Options for Image URLs. * @typedef {Object} ImageURLOptions * @property {ImageFormat} [format='webp'] - An image format. * @property {ImageSize} [size=2048] - An image format. * @property {boolean} [forceStatic=false] - If true, the format will be as specified. If false, format may be a gif if animated. */ import type { Client } from '../client/Client'; import type { MessageOptions } from './Channel'; import { DataManager } from './DataManager'; import { Message } from './Message'; export declare type ImageFormat = 'png' | 'jpg' | 'gif' | 'webp'; export declare type ImageSize = 16 | 32 | 56 | 64 | 96 | 128 | 256 | 300 | 512 | 600 | 1024 | 2048 | 4096; export interface ImageURLOptions { format?: ImageFormat; size?: ImageSize; forceStatic?: true | false; } /** * Represents a User on Discord */ declare class User extends DataManager { id: string; avatar: string | null; banner: string | null; username: string; bot: boolean; discriminator: number; createdTimestamp: number; constructor(client: Client, userData: any); /** * Sends a message to this user * @param {string|MessagePayload} content * @example * message.reply(`Hello, ${message.author}!`); * @example * message.reply({ content: `Hello, ${message.author}!` }); * @returns {Promise} */ send(content: MessageOptions): Promise; /** * Display the user's avatar URL * @param {ImageURLOptions} options - Options for the Image URL * @returns {string} */ displayAvatarURL({ format, size, forceStatic }: ImageURLOptions): string; /** * Display the user's banner URL * @param {ImageURLOptions} options - Options for the Image URL * @returns {?string} */ displayBannerURL({ format, size, forceStatic }: ImageURLOptions): string | null; /** * The time the user was created at * @type {Date} */ get createdAt(): Date; /** * The Discord "tag" (e.g. Veric#2799) for this user * @type {?string} */ get tag(): string; /** * When concatenated with a string, this automatically returns the user's mention instead of the User object * @returns {string} */ toString(): string; parseData(data: any): any; _update(data: any): User; } export { User }; //# sourceMappingURL=User.d.ts.map