feat: add workers for discord cdn

This commit is contained in:
skinmaker1345 2024-12-30 00:38:19 +09:00
parent 79a8238048
commit d95c3102e5

View File

@ -334,12 +334,12 @@ export const KoreanbotsEndPoints = {
}
},
CDN: class {
static root = '/api/image'
static root = '//cdn.koreanbots.dev'
static avatar(id: string, options: KoreanbotsImageOptions) {
return makeImageURL(`${this.root}/discord/avatars/${id}`, options)
return makeImageURL(`${this.root}/avatars/${id}`, options)
}
static icon(id: string, options: KoreanbotsImageOptions) {
return makeImageURL(`${this.root}/discord/icons/${id}`, options)
return makeImageURL(`${this.root}/icons/${id}`, options)
}
},
URL: class {