mirror of
https://github.com/discordjs/discord-api-types.git
synced 2026-05-29 23:00:08 +00:00
chore: try to fix CI
This commit is contained in:
@@ -1054,8 +1054,8 @@ export const Routes = {
|
||||
};
|
||||
|
||||
for (const [key, fn] of Object.entries(Routes)) {
|
||||
Routes[key] = (...args: string[]) => {
|
||||
const escaped = args.map((arg) => encodeURIComponent(arg));
|
||||
Routes[key as keyof typeof Routes] = (...args: (boolean | number | string | undefined)[]) => {
|
||||
const escaped = args.map((arg) => arg && encodeURIComponent(arg));
|
||||
// eslint-disable-next-line no-useless-call
|
||||
return fn.call(null, ...escaped);
|
||||
};
|
||||
@@ -1362,8 +1362,8 @@ export const CDNRoutes = {
|
||||
};
|
||||
|
||||
for (const [key, fn] of Object.entries(CDNRoutes)) {
|
||||
CDNRoutes[key] = (...args: string[]) => {
|
||||
const escaped = args.map((arg) => encodeURIComponent(arg));
|
||||
CDNRoutes[key as keyof typeof CDNRoutes] = (...args: (number | string | undefined)[]) => {
|
||||
const escaped = args.map((arg) => arg && encodeURIComponent(arg));
|
||||
// eslint-disable-next-line no-useless-call
|
||||
return fn.call(null, ...escaped);
|
||||
};
|
||||
|
||||
@@ -1063,8 +1063,8 @@ export const Routes = {
|
||||
};
|
||||
|
||||
for (const [key, fn] of Object.entries(Routes)) {
|
||||
Routes[key] = (...args: string[]) => {
|
||||
const escaped = args.map((arg) => encodeURIComponent(arg));
|
||||
Routes[key as keyof typeof Routes] = (...args: (boolean | number | string | undefined)[]) => {
|
||||
const escaped = args.map((arg) => arg && encodeURIComponent(arg));
|
||||
// eslint-disable-next-line no-useless-call
|
||||
return fn.call(null, ...escaped);
|
||||
};
|
||||
@@ -1371,8 +1371,8 @@ export const CDNRoutes = {
|
||||
};
|
||||
|
||||
for (const [key, fn] of Object.entries(CDNRoutes)) {
|
||||
CDNRoutes[key] = (...args: string[]) => {
|
||||
const escaped = args.map((arg) => encodeURIComponent(arg));
|
||||
CDNRoutes[key as keyof typeof CDNRoutes] = (...args: (number | string | undefined)[]) => {
|
||||
const escaped = args.map((arg) => arg && encodeURIComponent(arg));
|
||||
// eslint-disable-next-line no-useless-call
|
||||
return fn.call(null, ...escaped);
|
||||
};
|
||||
|
||||
@@ -1054,8 +1054,8 @@ export const Routes = {
|
||||
};
|
||||
|
||||
for (const [key, fn] of Object.entries(Routes)) {
|
||||
Routes[key] = (...args: string[]) => {
|
||||
const escaped = args.map((arg) => encodeURIComponent(arg));
|
||||
Routes[key as keyof typeof Routes] = (...args: (boolean | number | string | undefined)[]) => {
|
||||
const escaped = args.map((arg) => arg && encodeURIComponent(arg));
|
||||
// eslint-disable-next-line no-useless-call
|
||||
return fn.call(null, ...escaped);
|
||||
};
|
||||
@@ -1362,8 +1362,8 @@ export const CDNRoutes = {
|
||||
};
|
||||
|
||||
for (const [key, fn] of Object.entries(CDNRoutes)) {
|
||||
CDNRoutes[key] = (...args: string[]) => {
|
||||
const escaped = args.map((arg) => encodeURIComponent(arg));
|
||||
CDNRoutes[key as keyof typeof CDNRoutes] = (...args: (number | string | undefined)[]) => {
|
||||
const escaped = args.map((arg) => arg && encodeURIComponent(arg));
|
||||
// eslint-disable-next-line no-useless-call
|
||||
return fn.call(null, ...escaped);
|
||||
};
|
||||
|
||||
@@ -1063,8 +1063,8 @@ export const Routes = {
|
||||
};
|
||||
|
||||
for (const [key, fn] of Object.entries(Routes)) {
|
||||
Routes[key] = (...args: string[]) => {
|
||||
const escaped = args.map((arg) => encodeURIComponent(arg));
|
||||
Routes[key as keyof typeof Routes] = (...args: (boolean | number | string | undefined)[]) => {
|
||||
const escaped = args.map((arg) => arg && encodeURIComponent(arg));
|
||||
// eslint-disable-next-line no-useless-call
|
||||
return fn.call(null, ...escaped);
|
||||
};
|
||||
@@ -1371,8 +1371,8 @@ export const CDNRoutes = {
|
||||
};
|
||||
|
||||
for (const [key, fn] of Object.entries(CDNRoutes)) {
|
||||
CDNRoutes[key] = (...args: string[]) => {
|
||||
const escaped = args.map((arg) => encodeURIComponent(arg));
|
||||
CDNRoutes[key as keyof typeof CDNRoutes] = (...args: (number | string | undefined)[]) => {
|
||||
const escaped = args.map((arg) => arg && encodeURIComponent(arg));
|
||||
// eslint-disable-next-line no-useless-call
|
||||
return fn.call(null, ...escaped);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user