Features
- No-de-no-de, now with extra buns (#9683) (386f206)
- BREAKING CHANGE: The REST and RequestManager classes now extend AsyncEventEmitter
from@vladfrangu/async_event_emitter
, which aids in cross-compatibility
between Node, Deno, Bun, CF Workers, Vercel Functions, etc. - BREAKING CHANGE: DefaultUserAgentAppendix has been adapted to support multiple
different platforms (previously mentioned Deno, Bun, CF Workers, etc) - BREAKING CHANGE: the entry point for
@discordjs/rest
will now differ
in non-node-like environments (CF Workers, etc.)
- BREAKING CHANGE: The REST and RequestManager classes now extend AsyncEventEmitter
- User avatar decorations (#8914) (8d97017)
- Support new username system (#9512) (1ab60f9)
Refactor
- REST: Remove double classing (#9722) (8f4256d)
- BREAKING CHANGE:
REST
andRequestManager
have been combined, most of the properties, methods, and events from both classes can now be found onREST
- BREAKING CHANGE:
REST#raw
has been removed in favor ofREST#queueRequest
- BREAKING CHANGE:
REST#getAgent
has been removed in favor ofREST#agent
- BREAKING CHANGE:
- chore: update for /rest changes
- rest: Switch api to fetch-like and provide strategies (#9416) (cdaa0a3)
- BREAKING CHANGE: NodeJS v18+ is required when using node due to the use of global
fetch
- BREAKING CHANGE: The raw method of REST now returns a web compatible
Respone
object. - BREAKING CHANGE: The
parseResponse
utility method has been updated to operate on a web compatibleResponse
object. - BREAKING CHANGE: Many underlying internals have changed, some of which were exported.
- BREAKING CHANGE:
DefaultRestOptions
used to contain a defaultagent
, which is now set tonull
instead.
- BREAKING CHANGE: NodeJS v18+ is required when using node due to the use of global