mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-31 16:00:07 +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}`
|
|
}
|