mirror of
https://github.com/koreanbots/core.git
synced 2025-12-18 15:10:24 +00:00
feat: add workers for discord cdn
This commit is contained in:
parent
79a8238048
commit
d95c3102e5
@ -334,12 +334,12 @@ export const KoreanbotsEndPoints = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
CDN: class {
|
CDN: class {
|
||||||
static root = '/api/image'
|
static root = '//cdn.koreanbots.dev'
|
||||||
static avatar(id: string, options: KoreanbotsImageOptions) {
|
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) {
|
static icon(id: string, options: KoreanbotsImageOptions) {
|
||||||
return makeImageURL(`${this.root}/discord/icons/${id}`, options)
|
return makeImageURL(`${this.root}/icons/${id}`, options)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
URL: class {
|
URL: class {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user