mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 09:20:08 +00:00
6 lines
240 B
TypeScript
6 lines
240 B
TypeScript
import { ImageSize, ImageFormats } from "../structures/guild"
|
|
|
|
export const formatImageURL = (url: string, size: ImageSize = 128, format?: ImageFormats) => {
|
|
return `${url}.${format || url.includes("/a_") ? "gif" : 'jpg'}/?size=${size}`
|
|
}
|