mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 06:20:24 +00:00
types: fixed size type
This commit is contained in:
parent
2cb83c499c
commit
92c7bb4bef
@ -6,7 +6,6 @@ import { DiscordEnpoints } from '@utils/Constants'
|
||||
import { get, ratelimit } from '@utils/Query'
|
||||
import RateLimitHandler from '@utils/RateLimitHandler'
|
||||
import { ImageOptionsSchema } from '@utils/Yup'
|
||||
import { ImageSize } from '@types'
|
||||
|
||||
const Avatar = nc<ApiRequest, NextApiResponse>()
|
||||
.get(async(req, res) => {
|
||||
@ -49,10 +48,8 @@ const Avatar = nc<ApiRequest, NextApiResponse>()
|
||||
interface ApiRequest extends NextApiRequest {
|
||||
query: {
|
||||
id: string
|
||||
size?: ImageSize
|
||||
size?: '128' | '256' | '512'
|
||||
}
|
||||
}
|
||||
|
||||
type Ext = 'webp' | 'png' | 'gif'
|
||||
|
||||
export default Avatar
|
||||
Loading…
x
Reference in New Issue
Block a user