mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
feat(rest): use undici (#7747)
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com> Co-authored-by: ckohen <chaikohen@gmail.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { DefaultRestOptions } from '../src';
|
||||
|
||||
export function genPath(path: string) {
|
||||
return `/api/v${DefaultRestOptions.version}${path}`;
|
||||
export function genPath(path: `/${string}`) {
|
||||
return `/api/v${DefaultRestOptions.version}${path}` as const;
|
||||
}
|
||||
|
||||
export function jsonHeaders(headers: Record<string, string> = {}) {
|
||||
|
||||
Reference in New Issue
Block a user