mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-01 16:30:08 +00:00
6 lines
241 B
TypeScript
6 lines
241 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}`
|
|
}
|