UNPKG

discord-authorize

Version:

A node module for easy authentication with Discord

15 lines 783 B
import { snowflake } from "../global"; import { Image } from "../types"; /** * Format a user's avatar image URLs in various formats. * * @template I - The type of the imageString parameter. * @param {snowflake} userId - The user's unique identifier (snowflake). * @param {I} imageString - The image string used to create the avatar URLs. * @returns {Image} An object containing URLs in different image formats (jpg, png, webp, gif). * @throws {TypeError} If the userId's type is not 'snowflake'. */ declare const formatUserAvatar: <I extends string>(userId: snowflake, imageString: I) => Image; declare const formatServerIcon: <I extends string>(guildId: snowflake, imageString: I) => Image; export { formatUserAvatar, formatServerIcon }; //# sourceMappingURL=Format.d.ts.map