/
docs
/
packages
/
rest
/
2.4.0
/
MakeURLOptions%3AInterface
Search...
K
rest
discord.js
brokers
builders
collection
core
formatters
next
proxy
rest
util
voice
ws
2.4.0
main
Classes
CDN
DiscordAPIError
HTTPError
RateLimitError
REST
Functions
calculateUserDefaultAvatarIndex
makeURLSearchParams
parseResponse
Enums
RequestMethod
RESTEvents
Interfaces
APIRequest
BaseImageURLOptions
DiscordErrorData
ImageURLOptions
InvalidRequestWarningData
MakeURLOptions
OAuthErrorData
RateLimitData
RawFile
RequestBody
RequestData
RequestHeaders
ResponseLike
RestEvents
RestEventsMap
RESTOptions
Types
GetRateLimitOffsetFunction
HandlerRequestData
ImageExtension
ImageSize
RateLimitQueueFilter
RouteLike
StickerExtension
Variables
ALLOWED_EXTENSIONS
ALLOWED_SIZES
ALLOWED_STICKER_EXTENSIONS
BurstHandlerMajorIdKey
DefaultRestOptions
DefaultUserAgent
DefaultUserAgentAppendix
OverwrittenMimeTypes
version
MakeURLOptions
export interface
MakeURLOptions
export interface
MakeURLOptions
Summary
The options to use when making a CDN URL
Properties
allowedExtensions?
:
readonly
string
[]
The allowed extensions that can be used
base?
:
string
The base URL.
Default value
DefaultRestOptions.cdn
extension?
:
string
|
undefined
The extension to use for the image URL
Default value
'webp'
size?
:
ImageSize
The size specified in the image URL