feat: initial Papo bot scaffold
This commit is contained in:
7
.env.example
Normal file
7
.env.example
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
DISCORD_TOKEN=
|
||||||
|
DISCORD_CLIENT_ID=
|
||||||
|
DISCORD_GUILD_ID=
|
||||||
|
DISCORD_GUILD_IDS=
|
||||||
|
DATABASE_URL=
|
||||||
|
PORT=3000
|
||||||
|
SESSION_SECRET=change_me
|
||||||
1
node_modules/.bin/acorn
generated
vendored
Symbolic link
1
node_modules/.bin/acorn
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../acorn/bin/acorn
|
||||||
1
node_modules/.bin/mime
generated
vendored
Symbolic link
1
node_modules/.bin/mime
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../mime/cli.js
|
||||||
1
node_modules/.bin/mkdirp
generated
vendored
Symbolic link
1
node_modules/.bin/mkdirp
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../mkdirp/bin/cmd.js
|
||||||
1
node_modules/.bin/prisma
generated
vendored
Symbolic link
1
node_modules/.bin/prisma
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../prisma/build/index.js
|
||||||
1
node_modules/.bin/resolve
generated
vendored
Symbolic link
1
node_modules/.bin/resolve
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../resolve/bin/resolve
|
||||||
1
node_modules/.bin/rimraf
generated
vendored
Symbolic link
1
node_modules/.bin/rimraf
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../rimraf/bin.js
|
||||||
1
node_modules/.bin/tree-kill
generated
vendored
Symbolic link
1
node_modules/.bin/tree-kill
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../tree-kill/cli.js
|
||||||
1
node_modules/.bin/ts-node
generated
vendored
Symbolic link
1
node_modules/.bin/ts-node
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../ts-node/dist/bin.js
|
||||||
1
node_modules/.bin/ts-node-cwd
generated
vendored
Symbolic link
1
node_modules/.bin/ts-node-cwd
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../ts-node/dist/bin-cwd.js
|
||||||
1
node_modules/.bin/ts-node-dev
generated
vendored
Symbolic link
1
node_modules/.bin/ts-node-dev
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../ts-node-dev/lib/bin.js
|
||||||
1
node_modules/.bin/ts-node-esm
generated
vendored
Symbolic link
1
node_modules/.bin/ts-node-esm
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../ts-node/dist/bin-esm.js
|
||||||
1
node_modules/.bin/ts-node-script
generated
vendored
Symbolic link
1
node_modules/.bin/ts-node-script
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../ts-node/dist/bin-script.js
|
||||||
1
node_modules/.bin/ts-node-transpile-only
generated
vendored
Symbolic link
1
node_modules/.bin/ts-node-transpile-only
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../ts-node/dist/bin-transpile.js
|
||||||
1
node_modules/.bin/ts-script
generated
vendored
Symbolic link
1
node_modules/.bin/ts-script
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../ts-node/dist/bin-script-deprecated.js
|
||||||
1
node_modules/.bin/tsc
generated
vendored
Symbolic link
1
node_modules/.bin/tsc
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../typescript/bin/tsc
|
||||||
1
node_modules/.bin/tsnd
generated
vendored
Symbolic link
1
node_modules/.bin/tsnd
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../ts-node-dev/lib/bin.js
|
||||||
1
node_modules/.bin/tsserver
generated
vendored
Symbolic link
1
node_modules/.bin/tsserver
generated
vendored
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../typescript/bin/tsserver
|
||||||
2275
node_modules/.package-lock.json
generated
vendored
Normal file
2275
node_modules/.package-lock.json
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
110
node_modules/.prisma/client/default.d.ts
generated
vendored
Normal file
110
node_modules/.prisma/client/default.d.ts
generated
vendored
Normal file
@@ -0,0 +1,110 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||||
|
|
||||||
|
import * as runtime from '@prisma/client/runtime/library'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ## Prisma Client ʲˢ
|
||||||
|
*
|
||||||
|
* Type-safe database client for TypeScript & Node.js
|
||||||
|
* @example
|
||||||
|
* ```
|
||||||
|
* const prisma = new Prisma()
|
||||||
|
* // Fetch zero or more Users
|
||||||
|
* const users = await prisma.user.findMany()
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client).
|
||||||
|
*/
|
||||||
|
export declare const PrismaClient: any
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ## Prisma Client ʲˢ
|
||||||
|
*
|
||||||
|
* Type-safe database client for TypeScript & Node.js
|
||||||
|
* @example
|
||||||
|
* ```
|
||||||
|
* const prisma = new Prisma()
|
||||||
|
* // Fetch zero or more Users
|
||||||
|
* const users = await prisma.user.findMany()
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client).
|
||||||
|
*/
|
||||||
|
export declare type PrismaClient = any
|
||||||
|
|
||||||
|
export declare class PrismaClientExtends<
|
||||||
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||||||
|
> {
|
||||||
|
$extends: { extArgs: ExtArgs } & (<
|
||||||
|
R extends runtime.Types.Extensions.UserArgs['result'] = {},
|
||||||
|
M extends runtime.Types.Extensions.UserArgs['model'] = {},
|
||||||
|
Q extends runtime.Types.Extensions.UserArgs['query'] = {},
|
||||||
|
C extends runtime.Types.Extensions.UserArgs['client'] = {},
|
||||||
|
Args extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.InternalArgs<R, M, {}, C>,
|
||||||
|
>(
|
||||||
|
args:
|
||||||
|
| ((client: PrismaClientExtends<ExtArgs>) => { $extends: { extArgs: Args } })
|
||||||
|
| { name?: string }
|
||||||
|
| { result?: R & runtime.Types.Extensions.UserArgs['result'] }
|
||||||
|
| { model?: M & runtime.Types.Extensions.UserArgs['model'] }
|
||||||
|
| { query?: Q & runtime.Types.Extensions.UserArgs['query'] }
|
||||||
|
| { client?: C & runtime.Types.Extensions.UserArgs['client'] },
|
||||||
|
) => PrismaClientExtends<Args & ExtArgs> & Args['client'])
|
||||||
|
|
||||||
|
$transaction<R>(
|
||||||
|
fn: (prisma: Omit<this, runtime.ITXClientDenyList>) => Promise<R>,
|
||||||
|
options?: { maxWait?: number; timeout?: number; isolationLevel?: string },
|
||||||
|
): Promise<R>
|
||||||
|
$transaction<P extends Prisma.PrismaPromise<any>[]>(
|
||||||
|
arg: [...P],
|
||||||
|
options?: { isolationLevel?: string },
|
||||||
|
): Promise<runtime.Types.Utils.UnwrapTuple<P>>
|
||||||
|
}
|
||||||
|
|
||||||
|
export declare const dmmf: any
|
||||||
|
export declare type dmmf = any
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the type of the value, that the Promise holds.
|
||||||
|
*/
|
||||||
|
export declare type PromiseType<T extends PromiseLike<any>> = T extends PromiseLike<infer U> ? U : T
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the return type of a function which returns a Promise.
|
||||||
|
*/
|
||||||
|
export declare type PromiseReturnType<T extends (...args: any) => Promise<any>> = PromiseType<ReturnType<T>>
|
||||||
|
|
||||||
|
export namespace Prisma {
|
||||||
|
export type TransactionClient = any
|
||||||
|
|
||||||
|
export function defineExtension<
|
||||||
|
R extends runtime.Types.Extensions.UserArgs['result'] = {},
|
||||||
|
M extends runtime.Types.Extensions.UserArgs['model'] = {},
|
||||||
|
Q extends runtime.Types.Extensions.UserArgs['query'] = {},
|
||||||
|
C extends runtime.Types.Extensions.UserArgs['client'] = {},
|
||||||
|
Args extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.InternalArgs<R, M, {}, C>,
|
||||||
|
>(
|
||||||
|
args:
|
||||||
|
| ((client: PrismaClientExtends) => { $extends: { extArgs: Args } })
|
||||||
|
| { name?: string }
|
||||||
|
| { result?: R & runtime.Types.Extensions.UserArgs['result'] }
|
||||||
|
| { model?: M & runtime.Types.Extensions.UserArgs['model'] }
|
||||||
|
| { query?: Q & runtime.Types.Extensions.UserArgs['query'] }
|
||||||
|
| { client?: C & runtime.Types.Extensions.UserArgs['client'] },
|
||||||
|
): (client: any) => PrismaClientExtends<Args>
|
||||||
|
|
||||||
|
export type Extension = runtime.Types.Extensions.UserArgs
|
||||||
|
export import getExtensionContext = runtime.Extensions.getExtensionContext
|
||||||
|
export import Args = runtime.Types.Public.Args
|
||||||
|
export import Payload = runtime.Types.Public.Payload
|
||||||
|
export import Result = runtime.Types.Public.Result
|
||||||
|
export import Exact = runtime.Types.Public.Exact
|
||||||
|
export import PrismaPromise = runtime.Types.Public.PrismaPromise
|
||||||
|
|
||||||
|
export const prismaVersion: {
|
||||||
|
client: string
|
||||||
|
engine: string
|
||||||
|
}
|
||||||
|
}
|
||||||
65
node_modules/.prisma/client/default.js
generated
vendored
Normal file
65
node_modules/.prisma/client/default.js
generated
vendored
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
"use strict";
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __copyProps = (to, from, except, desc) => {
|
||||||
|
if (from && typeof from === "object" || typeof from === "function") {
|
||||||
|
for (let key of __getOwnPropNames(from))
|
||||||
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||||
|
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return to;
|
||||||
|
};
|
||||||
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||||
|
|
||||||
|
// src/scripts/default-index.ts
|
||||||
|
var default_index_exports = {};
|
||||||
|
__export(default_index_exports, {
|
||||||
|
Prisma: () => Prisma,
|
||||||
|
PrismaClient: () => PrismaClient,
|
||||||
|
default: () => default_index_default
|
||||||
|
});
|
||||||
|
module.exports = __toCommonJS(default_index_exports);
|
||||||
|
|
||||||
|
// ../../node_modules/.pnpm/@prisma+engines-version@5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2/node_modules/@prisma/engines-version/package.json
|
||||||
|
var prisma = {
|
||||||
|
enginesVersion: "605197351a3c8bdd595af2d2a9bc3025bca48ea2"
|
||||||
|
};
|
||||||
|
|
||||||
|
// package.json
|
||||||
|
var version = "5.22.0";
|
||||||
|
|
||||||
|
// src/runtime/utils/clientVersion.ts
|
||||||
|
var clientVersion = version;
|
||||||
|
|
||||||
|
// src/scripts/default-index.ts
|
||||||
|
var PrismaClient = class {
|
||||||
|
constructor() {
|
||||||
|
throw new Error('@prisma/client did not initialize yet. Please run "prisma generate" and try to import it again.');
|
||||||
|
}
|
||||||
|
};
|
||||||
|
function defineExtension(ext) {
|
||||||
|
if (typeof ext === "function") {
|
||||||
|
return ext;
|
||||||
|
}
|
||||||
|
return (client) => client.$extends(ext);
|
||||||
|
}
|
||||||
|
function getExtensionContext(that) {
|
||||||
|
return that;
|
||||||
|
}
|
||||||
|
var Prisma = {
|
||||||
|
defineExtension,
|
||||||
|
getExtensionContext,
|
||||||
|
prismaVersion: { client: clientVersion, engine: prisma.enginesVersion }
|
||||||
|
};
|
||||||
|
var default_index_default = { Prisma };
|
||||||
|
// Annotate the CommonJS export names for ESM import in node:
|
||||||
|
0 && (module.exports = {
|
||||||
|
Prisma,
|
||||||
|
PrismaClient
|
||||||
|
});
|
||||||
9
node_modules/.prisma/client/deno/edge.d.ts
generated
vendored
Normal file
9
node_modules/.prisma/client/deno/edge.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
class PrismaClient {
|
||||||
|
constructor() {
|
||||||
|
throw new Error(
|
||||||
|
'@prisma/client/deno/edge did not initialize yet. Please run "prisma generate" and try to import it again.',
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export { PrismaClient }
|
||||||
110
node_modules/.prisma/client/edge.d.ts
generated
vendored
Normal file
110
node_modules/.prisma/client/edge.d.ts
generated
vendored
Normal file
@@ -0,0 +1,110 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||||
|
|
||||||
|
import * as runtime from '@prisma/client/runtime/library'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ## Prisma Client ʲˢ
|
||||||
|
*
|
||||||
|
* Type-safe database client for TypeScript & Node.js
|
||||||
|
* @example
|
||||||
|
* ```
|
||||||
|
* const prisma = new Prisma()
|
||||||
|
* // Fetch zero or more Users
|
||||||
|
* const users = await prisma.user.findMany()
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client).
|
||||||
|
*/
|
||||||
|
export declare const PrismaClient: any
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ## Prisma Client ʲˢ
|
||||||
|
*
|
||||||
|
* Type-safe database client for TypeScript & Node.js
|
||||||
|
* @example
|
||||||
|
* ```
|
||||||
|
* const prisma = new Prisma()
|
||||||
|
* // Fetch zero or more Users
|
||||||
|
* const users = await prisma.user.findMany()
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client).
|
||||||
|
*/
|
||||||
|
export declare type PrismaClient = any
|
||||||
|
|
||||||
|
export declare class PrismaClientExtends<
|
||||||
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||||||
|
> {
|
||||||
|
$extends: { extArgs: ExtArgs } & (<
|
||||||
|
R extends runtime.Types.Extensions.UserArgs['result'] = {},
|
||||||
|
M extends runtime.Types.Extensions.UserArgs['model'] = {},
|
||||||
|
Q extends runtime.Types.Extensions.UserArgs['query'] = {},
|
||||||
|
C extends runtime.Types.Extensions.UserArgs['client'] = {},
|
||||||
|
Args extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.InternalArgs<R, M, {}, C>,
|
||||||
|
>(
|
||||||
|
args:
|
||||||
|
| ((client: PrismaClientExtends<ExtArgs>) => { $extends: { extArgs: Args } })
|
||||||
|
| { name?: string }
|
||||||
|
| { result?: R & runtime.Types.Extensions.UserArgs['result'] }
|
||||||
|
| { model?: M & runtime.Types.Extensions.UserArgs['model'] }
|
||||||
|
| { query?: Q & runtime.Types.Extensions.UserArgs['query'] }
|
||||||
|
| { client?: C & runtime.Types.Extensions.UserArgs['client'] },
|
||||||
|
) => PrismaClientExtends<Args & ExtArgs> & Args['client'])
|
||||||
|
|
||||||
|
$transaction<R>(
|
||||||
|
fn: (prisma: Omit<this, runtime.ITXClientDenyList>) => Promise<R>,
|
||||||
|
options?: { maxWait?: number; timeout?: number; isolationLevel?: string },
|
||||||
|
): Promise<R>
|
||||||
|
$transaction<P extends Prisma.PrismaPromise<any>[]>(
|
||||||
|
arg: [...P],
|
||||||
|
options?: { isolationLevel?: string },
|
||||||
|
): Promise<runtime.Types.Utils.UnwrapTuple<P>>
|
||||||
|
}
|
||||||
|
|
||||||
|
export declare const dmmf: any
|
||||||
|
export declare type dmmf = any
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the type of the value, that the Promise holds.
|
||||||
|
*/
|
||||||
|
export declare type PromiseType<T extends PromiseLike<any>> = T extends PromiseLike<infer U> ? U : T
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the return type of a function which returns a Promise.
|
||||||
|
*/
|
||||||
|
export declare type PromiseReturnType<T extends (...args: any) => Promise<any>> = PromiseType<ReturnType<T>>
|
||||||
|
|
||||||
|
export namespace Prisma {
|
||||||
|
export type TransactionClient = any
|
||||||
|
|
||||||
|
export function defineExtension<
|
||||||
|
R extends runtime.Types.Extensions.UserArgs['result'] = {},
|
||||||
|
M extends runtime.Types.Extensions.UserArgs['model'] = {},
|
||||||
|
Q extends runtime.Types.Extensions.UserArgs['query'] = {},
|
||||||
|
C extends runtime.Types.Extensions.UserArgs['client'] = {},
|
||||||
|
Args extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.InternalArgs<R, M, {}, C>,
|
||||||
|
>(
|
||||||
|
args:
|
||||||
|
| ((client: PrismaClientExtends) => { $extends: { extArgs: Args } })
|
||||||
|
| { name?: string }
|
||||||
|
| { result?: R & runtime.Types.Extensions.UserArgs['result'] }
|
||||||
|
| { model?: M & runtime.Types.Extensions.UserArgs['model'] }
|
||||||
|
| { query?: Q & runtime.Types.Extensions.UserArgs['query'] }
|
||||||
|
| { client?: C & runtime.Types.Extensions.UserArgs['client'] },
|
||||||
|
): (client: any) => PrismaClientExtends<Args>
|
||||||
|
|
||||||
|
export type Extension = runtime.Types.Extensions.UserArgs
|
||||||
|
export import getExtensionContext = runtime.Extensions.getExtensionContext
|
||||||
|
export import Args = runtime.Types.Public.Args
|
||||||
|
export import Payload = runtime.Types.Public.Payload
|
||||||
|
export import Result = runtime.Types.Public.Result
|
||||||
|
export import Exact = runtime.Types.Public.Exact
|
||||||
|
export import PrismaPromise = runtime.Types.Public.PrismaPromise
|
||||||
|
|
||||||
|
export const prismaVersion: {
|
||||||
|
client: string
|
||||||
|
engine: string
|
||||||
|
}
|
||||||
|
}
|
||||||
65
node_modules/.prisma/client/edge.js
generated
vendored
Normal file
65
node_modules/.prisma/client/edge.js
generated
vendored
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
"use strict";
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __copyProps = (to, from, except, desc) => {
|
||||||
|
if (from && typeof from === "object" || typeof from === "function") {
|
||||||
|
for (let key of __getOwnPropNames(from))
|
||||||
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||||
|
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return to;
|
||||||
|
};
|
||||||
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||||
|
|
||||||
|
// src/scripts/default-index.ts
|
||||||
|
var default_index_exports = {};
|
||||||
|
__export(default_index_exports, {
|
||||||
|
Prisma: () => Prisma,
|
||||||
|
PrismaClient: () => PrismaClient,
|
||||||
|
default: () => default_index_default
|
||||||
|
});
|
||||||
|
module.exports = __toCommonJS(default_index_exports);
|
||||||
|
|
||||||
|
// ../../node_modules/.pnpm/@prisma+engines-version@5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2/node_modules/@prisma/engines-version/package.json
|
||||||
|
var prisma = {
|
||||||
|
enginesVersion: "605197351a3c8bdd595af2d2a9bc3025bca48ea2"
|
||||||
|
};
|
||||||
|
|
||||||
|
// package.json
|
||||||
|
var version = "5.22.0";
|
||||||
|
|
||||||
|
// src/runtime/utils/clientVersion.ts
|
||||||
|
var clientVersion = version;
|
||||||
|
|
||||||
|
// src/scripts/default-index.ts
|
||||||
|
var PrismaClient = class {
|
||||||
|
constructor() {
|
||||||
|
throw new Error('@prisma/client did not initialize yet. Please run "prisma generate" and try to import it again.');
|
||||||
|
}
|
||||||
|
};
|
||||||
|
function defineExtension(ext) {
|
||||||
|
if (typeof ext === "function") {
|
||||||
|
return ext;
|
||||||
|
}
|
||||||
|
return (client) => client.$extends(ext);
|
||||||
|
}
|
||||||
|
function getExtensionContext(that) {
|
||||||
|
return that;
|
||||||
|
}
|
||||||
|
var Prisma = {
|
||||||
|
defineExtension,
|
||||||
|
getExtensionContext,
|
||||||
|
prismaVersion: { client: clientVersion, engine: prisma.enginesVersion }
|
||||||
|
};
|
||||||
|
var default_index_default = { Prisma };
|
||||||
|
// Annotate the CommonJS export names for ESM import in node:
|
||||||
|
0 && (module.exports = {
|
||||||
|
Prisma,
|
||||||
|
PrismaClient
|
||||||
|
});
|
||||||
65
node_modules/.prisma/client/index-browser.js
generated
vendored
Normal file
65
node_modules/.prisma/client/index-browser.js
generated
vendored
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
"use strict";
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __copyProps = (to, from, except, desc) => {
|
||||||
|
if (from && typeof from === "object" || typeof from === "function") {
|
||||||
|
for (let key of __getOwnPropNames(from))
|
||||||
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||||
|
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return to;
|
||||||
|
};
|
||||||
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||||
|
|
||||||
|
// src/scripts/default-index.ts
|
||||||
|
var default_index_exports = {};
|
||||||
|
__export(default_index_exports, {
|
||||||
|
Prisma: () => Prisma,
|
||||||
|
PrismaClient: () => PrismaClient,
|
||||||
|
default: () => default_index_default
|
||||||
|
});
|
||||||
|
module.exports = __toCommonJS(default_index_exports);
|
||||||
|
|
||||||
|
// ../../node_modules/.pnpm/@prisma+engines-version@5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2/node_modules/@prisma/engines-version/package.json
|
||||||
|
var prisma = {
|
||||||
|
enginesVersion: "605197351a3c8bdd595af2d2a9bc3025bca48ea2"
|
||||||
|
};
|
||||||
|
|
||||||
|
// package.json
|
||||||
|
var version = "5.22.0";
|
||||||
|
|
||||||
|
// src/runtime/utils/clientVersion.ts
|
||||||
|
var clientVersion = version;
|
||||||
|
|
||||||
|
// src/scripts/default-index.ts
|
||||||
|
var PrismaClient = class {
|
||||||
|
constructor() {
|
||||||
|
throw new Error('@prisma/client did not initialize yet. Please run "prisma generate" and try to import it again.');
|
||||||
|
}
|
||||||
|
};
|
||||||
|
function defineExtension(ext) {
|
||||||
|
if (typeof ext === "function") {
|
||||||
|
return ext;
|
||||||
|
}
|
||||||
|
return (client) => client.$extends(ext);
|
||||||
|
}
|
||||||
|
function getExtensionContext(that) {
|
||||||
|
return that;
|
||||||
|
}
|
||||||
|
var Prisma = {
|
||||||
|
defineExtension,
|
||||||
|
getExtensionContext,
|
||||||
|
prismaVersion: { client: clientVersion, engine: prisma.enginesVersion }
|
||||||
|
};
|
||||||
|
var default_index_default = { Prisma };
|
||||||
|
// Annotate the CommonJS export names for ESM import in node:
|
||||||
|
0 && (module.exports = {
|
||||||
|
Prisma,
|
||||||
|
PrismaClient
|
||||||
|
});
|
||||||
110
node_modules/.prisma/client/index.d.ts
generated
vendored
Normal file
110
node_modules/.prisma/client/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,110 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||||
|
|
||||||
|
import * as runtime from '@prisma/client/runtime/library'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ## Prisma Client ʲˢ
|
||||||
|
*
|
||||||
|
* Type-safe database client for TypeScript & Node.js
|
||||||
|
* @example
|
||||||
|
* ```
|
||||||
|
* const prisma = new Prisma()
|
||||||
|
* // Fetch zero or more Users
|
||||||
|
* const users = await prisma.user.findMany()
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client).
|
||||||
|
*/
|
||||||
|
export declare const PrismaClient: any
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ## Prisma Client ʲˢ
|
||||||
|
*
|
||||||
|
* Type-safe database client for TypeScript & Node.js
|
||||||
|
* @example
|
||||||
|
* ```
|
||||||
|
* const prisma = new Prisma()
|
||||||
|
* // Fetch zero or more Users
|
||||||
|
* const users = await prisma.user.findMany()
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client).
|
||||||
|
*/
|
||||||
|
export declare type PrismaClient = any
|
||||||
|
|
||||||
|
export declare class PrismaClientExtends<
|
||||||
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||||||
|
> {
|
||||||
|
$extends: { extArgs: ExtArgs } & (<
|
||||||
|
R extends runtime.Types.Extensions.UserArgs['result'] = {},
|
||||||
|
M extends runtime.Types.Extensions.UserArgs['model'] = {},
|
||||||
|
Q extends runtime.Types.Extensions.UserArgs['query'] = {},
|
||||||
|
C extends runtime.Types.Extensions.UserArgs['client'] = {},
|
||||||
|
Args extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.InternalArgs<R, M, {}, C>,
|
||||||
|
>(
|
||||||
|
args:
|
||||||
|
| ((client: PrismaClientExtends<ExtArgs>) => { $extends: { extArgs: Args } })
|
||||||
|
| { name?: string }
|
||||||
|
| { result?: R & runtime.Types.Extensions.UserArgs['result'] }
|
||||||
|
| { model?: M & runtime.Types.Extensions.UserArgs['model'] }
|
||||||
|
| { query?: Q & runtime.Types.Extensions.UserArgs['query'] }
|
||||||
|
| { client?: C & runtime.Types.Extensions.UserArgs['client'] },
|
||||||
|
) => PrismaClientExtends<Args & ExtArgs> & Args['client'])
|
||||||
|
|
||||||
|
$transaction<R>(
|
||||||
|
fn: (prisma: Omit<this, runtime.ITXClientDenyList>) => Promise<R>,
|
||||||
|
options?: { maxWait?: number; timeout?: number; isolationLevel?: string },
|
||||||
|
): Promise<R>
|
||||||
|
$transaction<P extends Prisma.PrismaPromise<any>[]>(
|
||||||
|
arg: [...P],
|
||||||
|
options?: { isolationLevel?: string },
|
||||||
|
): Promise<runtime.Types.Utils.UnwrapTuple<P>>
|
||||||
|
}
|
||||||
|
|
||||||
|
export declare const dmmf: any
|
||||||
|
export declare type dmmf = any
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the type of the value, that the Promise holds.
|
||||||
|
*/
|
||||||
|
export declare type PromiseType<T extends PromiseLike<any>> = T extends PromiseLike<infer U> ? U : T
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the return type of a function which returns a Promise.
|
||||||
|
*/
|
||||||
|
export declare type PromiseReturnType<T extends (...args: any) => Promise<any>> = PromiseType<ReturnType<T>>
|
||||||
|
|
||||||
|
export namespace Prisma {
|
||||||
|
export type TransactionClient = any
|
||||||
|
|
||||||
|
export function defineExtension<
|
||||||
|
R extends runtime.Types.Extensions.UserArgs['result'] = {},
|
||||||
|
M extends runtime.Types.Extensions.UserArgs['model'] = {},
|
||||||
|
Q extends runtime.Types.Extensions.UserArgs['query'] = {},
|
||||||
|
C extends runtime.Types.Extensions.UserArgs['client'] = {},
|
||||||
|
Args extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.InternalArgs<R, M, {}, C>,
|
||||||
|
>(
|
||||||
|
args:
|
||||||
|
| ((client: PrismaClientExtends) => { $extends: { extArgs: Args } })
|
||||||
|
| { name?: string }
|
||||||
|
| { result?: R & runtime.Types.Extensions.UserArgs['result'] }
|
||||||
|
| { model?: M & runtime.Types.Extensions.UserArgs['model'] }
|
||||||
|
| { query?: Q & runtime.Types.Extensions.UserArgs['query'] }
|
||||||
|
| { client?: C & runtime.Types.Extensions.UserArgs['client'] },
|
||||||
|
): (client: any) => PrismaClientExtends<Args>
|
||||||
|
|
||||||
|
export type Extension = runtime.Types.Extensions.UserArgs
|
||||||
|
export import getExtensionContext = runtime.Extensions.getExtensionContext
|
||||||
|
export import Args = runtime.Types.Public.Args
|
||||||
|
export import Payload = runtime.Types.Public.Payload
|
||||||
|
export import Result = runtime.Types.Public.Result
|
||||||
|
export import Exact = runtime.Types.Public.Exact
|
||||||
|
export import PrismaPromise = runtime.Types.Public.PrismaPromise
|
||||||
|
|
||||||
|
export const prismaVersion: {
|
||||||
|
client: string
|
||||||
|
engine: string
|
||||||
|
}
|
||||||
|
}
|
||||||
65
node_modules/.prisma/client/index.js
generated
vendored
Normal file
65
node_modules/.prisma/client/index.js
generated
vendored
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
"use strict";
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __copyProps = (to, from, except, desc) => {
|
||||||
|
if (from && typeof from === "object" || typeof from === "function") {
|
||||||
|
for (let key of __getOwnPropNames(from))
|
||||||
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||||
|
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return to;
|
||||||
|
};
|
||||||
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||||
|
|
||||||
|
// src/scripts/default-index.ts
|
||||||
|
var default_index_exports = {};
|
||||||
|
__export(default_index_exports, {
|
||||||
|
Prisma: () => Prisma,
|
||||||
|
PrismaClient: () => PrismaClient,
|
||||||
|
default: () => default_index_default
|
||||||
|
});
|
||||||
|
module.exports = __toCommonJS(default_index_exports);
|
||||||
|
|
||||||
|
// ../../node_modules/.pnpm/@prisma+engines-version@5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2/node_modules/@prisma/engines-version/package.json
|
||||||
|
var prisma = {
|
||||||
|
enginesVersion: "605197351a3c8bdd595af2d2a9bc3025bca48ea2"
|
||||||
|
};
|
||||||
|
|
||||||
|
// package.json
|
||||||
|
var version = "5.22.0";
|
||||||
|
|
||||||
|
// src/runtime/utils/clientVersion.ts
|
||||||
|
var clientVersion = version;
|
||||||
|
|
||||||
|
// src/scripts/default-index.ts
|
||||||
|
var PrismaClient = class {
|
||||||
|
constructor() {
|
||||||
|
throw new Error('@prisma/client did not initialize yet. Please run "prisma generate" and try to import it again.');
|
||||||
|
}
|
||||||
|
};
|
||||||
|
function defineExtension(ext) {
|
||||||
|
if (typeof ext === "function") {
|
||||||
|
return ext;
|
||||||
|
}
|
||||||
|
return (client) => client.$extends(ext);
|
||||||
|
}
|
||||||
|
function getExtensionContext(that) {
|
||||||
|
return that;
|
||||||
|
}
|
||||||
|
var Prisma = {
|
||||||
|
defineExtension,
|
||||||
|
getExtensionContext,
|
||||||
|
prismaVersion: { client: clientVersion, engine: prisma.enginesVersion }
|
||||||
|
};
|
||||||
|
var default_index_default = { Prisma };
|
||||||
|
// Annotate the CommonJS export names for ESM import in node:
|
||||||
|
0 && (module.exports = {
|
||||||
|
Prisma,
|
||||||
|
PrismaClient
|
||||||
|
});
|
||||||
110
node_modules/.prisma/client/wasm.d.ts
generated
vendored
Normal file
110
node_modules/.prisma/client/wasm.d.ts
generated
vendored
Normal file
@@ -0,0 +1,110 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||||
|
|
||||||
|
import * as runtime from '@prisma/client/runtime/library'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ## Prisma Client ʲˢ
|
||||||
|
*
|
||||||
|
* Type-safe database client for TypeScript & Node.js
|
||||||
|
* @example
|
||||||
|
* ```
|
||||||
|
* const prisma = new Prisma()
|
||||||
|
* // Fetch zero or more Users
|
||||||
|
* const users = await prisma.user.findMany()
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client).
|
||||||
|
*/
|
||||||
|
export declare const PrismaClient: any
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ## Prisma Client ʲˢ
|
||||||
|
*
|
||||||
|
* Type-safe database client for TypeScript & Node.js
|
||||||
|
* @example
|
||||||
|
* ```
|
||||||
|
* const prisma = new Prisma()
|
||||||
|
* // Fetch zero or more Users
|
||||||
|
* const users = await prisma.user.findMany()
|
||||||
|
* ```
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client).
|
||||||
|
*/
|
||||||
|
export declare type PrismaClient = any
|
||||||
|
|
||||||
|
export declare class PrismaClientExtends<
|
||||||
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||||||
|
> {
|
||||||
|
$extends: { extArgs: ExtArgs } & (<
|
||||||
|
R extends runtime.Types.Extensions.UserArgs['result'] = {},
|
||||||
|
M extends runtime.Types.Extensions.UserArgs['model'] = {},
|
||||||
|
Q extends runtime.Types.Extensions.UserArgs['query'] = {},
|
||||||
|
C extends runtime.Types.Extensions.UserArgs['client'] = {},
|
||||||
|
Args extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.InternalArgs<R, M, {}, C>,
|
||||||
|
>(
|
||||||
|
args:
|
||||||
|
| ((client: PrismaClientExtends<ExtArgs>) => { $extends: { extArgs: Args } })
|
||||||
|
| { name?: string }
|
||||||
|
| { result?: R & runtime.Types.Extensions.UserArgs['result'] }
|
||||||
|
| { model?: M & runtime.Types.Extensions.UserArgs['model'] }
|
||||||
|
| { query?: Q & runtime.Types.Extensions.UserArgs['query'] }
|
||||||
|
| { client?: C & runtime.Types.Extensions.UserArgs['client'] },
|
||||||
|
) => PrismaClientExtends<Args & ExtArgs> & Args['client'])
|
||||||
|
|
||||||
|
$transaction<R>(
|
||||||
|
fn: (prisma: Omit<this, runtime.ITXClientDenyList>) => Promise<R>,
|
||||||
|
options?: { maxWait?: number; timeout?: number; isolationLevel?: string },
|
||||||
|
): Promise<R>
|
||||||
|
$transaction<P extends Prisma.PrismaPromise<any>[]>(
|
||||||
|
arg: [...P],
|
||||||
|
options?: { isolationLevel?: string },
|
||||||
|
): Promise<runtime.Types.Utils.UnwrapTuple<P>>
|
||||||
|
}
|
||||||
|
|
||||||
|
export declare const dmmf: any
|
||||||
|
export declare type dmmf = any
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the type of the value, that the Promise holds.
|
||||||
|
*/
|
||||||
|
export declare type PromiseType<T extends PromiseLike<any>> = T extends PromiseLike<infer U> ? U : T
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the return type of a function which returns a Promise.
|
||||||
|
*/
|
||||||
|
export declare type PromiseReturnType<T extends (...args: any) => Promise<any>> = PromiseType<ReturnType<T>>
|
||||||
|
|
||||||
|
export namespace Prisma {
|
||||||
|
export type TransactionClient = any
|
||||||
|
|
||||||
|
export function defineExtension<
|
||||||
|
R extends runtime.Types.Extensions.UserArgs['result'] = {},
|
||||||
|
M extends runtime.Types.Extensions.UserArgs['model'] = {},
|
||||||
|
Q extends runtime.Types.Extensions.UserArgs['query'] = {},
|
||||||
|
C extends runtime.Types.Extensions.UserArgs['client'] = {},
|
||||||
|
Args extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.InternalArgs<R, M, {}, C>,
|
||||||
|
>(
|
||||||
|
args:
|
||||||
|
| ((client: PrismaClientExtends) => { $extends: { extArgs: Args } })
|
||||||
|
| { name?: string }
|
||||||
|
| { result?: R & runtime.Types.Extensions.UserArgs['result'] }
|
||||||
|
| { model?: M & runtime.Types.Extensions.UserArgs['model'] }
|
||||||
|
| { query?: Q & runtime.Types.Extensions.UserArgs['query'] }
|
||||||
|
| { client?: C & runtime.Types.Extensions.UserArgs['client'] },
|
||||||
|
): (client: any) => PrismaClientExtends<Args>
|
||||||
|
|
||||||
|
export type Extension = runtime.Types.Extensions.UserArgs
|
||||||
|
export import getExtensionContext = runtime.Extensions.getExtensionContext
|
||||||
|
export import Args = runtime.Types.Public.Args
|
||||||
|
export import Payload = runtime.Types.Public.Payload
|
||||||
|
export import Result = runtime.Types.Public.Result
|
||||||
|
export import Exact = runtime.Types.Public.Exact
|
||||||
|
export import PrismaPromise = runtime.Types.Public.PrismaPromise
|
||||||
|
|
||||||
|
export const prismaVersion: {
|
||||||
|
client: string
|
||||||
|
engine: string
|
||||||
|
}
|
||||||
|
}
|
||||||
65
node_modules/.prisma/client/wasm.js
generated
vendored
Normal file
65
node_modules/.prisma/client/wasm.js
generated
vendored
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
"use strict";
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __copyProps = (to, from, except, desc) => {
|
||||||
|
if (from && typeof from === "object" || typeof from === "function") {
|
||||||
|
for (let key of __getOwnPropNames(from))
|
||||||
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||||
|
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return to;
|
||||||
|
};
|
||||||
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||||
|
|
||||||
|
// src/scripts/default-index.ts
|
||||||
|
var default_index_exports = {};
|
||||||
|
__export(default_index_exports, {
|
||||||
|
Prisma: () => Prisma,
|
||||||
|
PrismaClient: () => PrismaClient,
|
||||||
|
default: () => default_index_default
|
||||||
|
});
|
||||||
|
module.exports = __toCommonJS(default_index_exports);
|
||||||
|
|
||||||
|
// ../../node_modules/.pnpm/@prisma+engines-version@5.22.0-44.605197351a3c8bdd595af2d2a9bc3025bca48ea2/node_modules/@prisma/engines-version/package.json
|
||||||
|
var prisma = {
|
||||||
|
enginesVersion: "605197351a3c8bdd595af2d2a9bc3025bca48ea2"
|
||||||
|
};
|
||||||
|
|
||||||
|
// package.json
|
||||||
|
var version = "5.22.0";
|
||||||
|
|
||||||
|
// src/runtime/utils/clientVersion.ts
|
||||||
|
var clientVersion = version;
|
||||||
|
|
||||||
|
// src/scripts/default-index.ts
|
||||||
|
var PrismaClient = class {
|
||||||
|
constructor() {
|
||||||
|
throw new Error('@prisma/client did not initialize yet. Please run "prisma generate" and try to import it again.');
|
||||||
|
}
|
||||||
|
};
|
||||||
|
function defineExtension(ext) {
|
||||||
|
if (typeof ext === "function") {
|
||||||
|
return ext;
|
||||||
|
}
|
||||||
|
return (client) => client.$extends(ext);
|
||||||
|
}
|
||||||
|
function getExtensionContext(that) {
|
||||||
|
return that;
|
||||||
|
}
|
||||||
|
var Prisma = {
|
||||||
|
defineExtension,
|
||||||
|
getExtensionContext,
|
||||||
|
prismaVersion: { client: clientVersion, engine: prisma.enginesVersion }
|
||||||
|
};
|
||||||
|
var default_index_default = { Prisma };
|
||||||
|
// Annotate the CommonJS export names for ESM import in node:
|
||||||
|
0 && (module.exports = {
|
||||||
|
Prisma,
|
||||||
|
PrismaClient
|
||||||
|
});
|
||||||
21
node_modules/@cspotcode/source-map-support/LICENSE.md
generated
vendored
Normal file
21
node_modules/@cspotcode/source-map-support/LICENSE.md
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2014 Evan Wallace
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
289
node_modules/@cspotcode/source-map-support/README.md
generated
vendored
Normal file
289
node_modules/@cspotcode/source-map-support/README.md
generated
vendored
Normal file
@@ -0,0 +1,289 @@
|
|||||||
|
# Source Map Support
|
||||||
|
|
||||||
|
[](https://npmjs.org/package/@cspotcode/source-map-support)
|
||||||
|
[](https://npmjs.org/package/@cspotcode/source-map-support)
|
||||||
|
[](https://github.com/cspotcode/node-source-map-support/actions?query=workflow%3A%22Continuous+Integration%22)
|
||||||
|
|
||||||
|
This module provides source map support for stack traces in node via the [V8 stack trace API](https://github.com/v8/v8/wiki/Stack-Trace-API). It uses the [source-map](https://github.com/mozilla/source-map) module to replace the paths and line numbers of source-mapped files with their original paths and line numbers. The output mimics node's stack trace format with the goal of making every compile-to-JS language more of a first-class citizen. Source maps are completely general (not specific to any one language) so you can use source maps with multiple compile-to-JS languages in the same node process.
|
||||||
|
|
||||||
|
## Installation and Usage
|
||||||
|
|
||||||
|
#### Node support
|
||||||
|
|
||||||
|
```
|
||||||
|
$ npm install @cspotcode/source-map-support
|
||||||
|
```
|
||||||
|
|
||||||
|
Source maps can be generated using libraries such as [source-map-index-generator](https://github.com/twolfson/source-map-index-generator). Once you have a valid source map, place a source mapping comment somewhere in the file (usually done automatically or with an option by your transpiler):
|
||||||
|
|
||||||
|
```
|
||||||
|
//# sourceMappingURL=path/to/source.map
|
||||||
|
```
|
||||||
|
|
||||||
|
If multiple sourceMappingURL comments exist in one file, the last sourceMappingURL comment will be
|
||||||
|
respected (e.g. if a file mentions the comment in code, or went through multiple transpilers).
|
||||||
|
The path should either be absolute or relative to the compiled file.
|
||||||
|
|
||||||
|
From here you have two options.
|
||||||
|
|
||||||
|
##### CLI Usage
|
||||||
|
|
||||||
|
```bash
|
||||||
|
node -r @cspotcode/source-map-support/register compiled.js
|
||||||
|
# Or to enable hookRequire
|
||||||
|
node -r @cspotcode/source-map-support/register-hook-require compiled.js
|
||||||
|
```
|
||||||
|
|
||||||
|
##### Programmatic Usage
|
||||||
|
|
||||||
|
Put the following line at the top of the compiled file.
|
||||||
|
|
||||||
|
```js
|
||||||
|
require('@cspotcode/source-map-support').install();
|
||||||
|
```
|
||||||
|
|
||||||
|
It is also possible to install the source map support directly by
|
||||||
|
requiring the `register` module which can be handy with ES6:
|
||||||
|
|
||||||
|
```js
|
||||||
|
import '@cspotcode/source-map-support/register'
|
||||||
|
|
||||||
|
// Instead of:
|
||||||
|
import sourceMapSupport from '@cspotcode/source-map-support'
|
||||||
|
sourceMapSupport.install()
|
||||||
|
```
|
||||||
|
Note: if you're using babel-register, it includes source-map-support already.
|
||||||
|
|
||||||
|
It is also very useful with Mocha:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ mocha --require @cspotcode/source-map-support/register tests/
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Browser support
|
||||||
|
|
||||||
|
This library also works in Chrome. While the DevTools console already supports source maps, the V8 engine doesn't and `Error.prototype.stack` will be incorrect without this library. Everything will just work if you deploy your source files using [browserify](http://browserify.org/). Just make sure to pass the `--debug` flag to the browserify command so your source maps are included in the bundled code.
|
||||||
|
|
||||||
|
This library also works if you use another build process or just include the source files directly. In this case, include the file `browser-source-map-support.js` in your page and call `sourceMapSupport.install()`. It contains the whole library already bundled for the browser using browserify.
|
||||||
|
|
||||||
|
```html
|
||||||
|
<script src="browser-source-map-support.js"></script>
|
||||||
|
<script>sourceMapSupport.install();</script>
|
||||||
|
```
|
||||||
|
|
||||||
|
This library also works if you use AMD (Asynchronous Module Definition), which is used in tools like [RequireJS](http://requirejs.org/). Just list `browser-source-map-support` as a dependency:
|
||||||
|
|
||||||
|
```html
|
||||||
|
<script>
|
||||||
|
define(['browser-source-map-support'], function(sourceMapSupport) {
|
||||||
|
sourceMapSupport.install();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Options
|
||||||
|
|
||||||
|
This module installs two things: a change to the `stack` property on `Error` objects and a handler for uncaught exceptions that mimics node's default exception handler (the handler can be seen in the demos below). You may want to disable the handler if you have your own uncaught exception handler. This can be done by passing an argument to the installer:
|
||||||
|
|
||||||
|
```js
|
||||||
|
require('@cspotcode/source-map-support').install({
|
||||||
|
handleUncaughtExceptions: false
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
This module loads source maps from the filesystem by default. You can provide alternate loading behavior through a callback as shown below. For example, [Meteor](https://github.com/meteor) keeps all source maps cached in memory to avoid disk access.
|
||||||
|
|
||||||
|
```js
|
||||||
|
require('@cspotcode/source-map-support').install({
|
||||||
|
retrieveSourceMap: function(source) {
|
||||||
|
if (source === 'compiled.js') {
|
||||||
|
return {
|
||||||
|
url: 'original.js',
|
||||||
|
map: fs.readFileSync('compiled.js.map', 'utf8')
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
The module will by default assume a browser environment if XMLHttpRequest and window are defined. If either of these do not exist it will instead assume a node environment.
|
||||||
|
In some rare cases, e.g. when running a browser emulation and where both variables are also set, you can explictly specify the environment to be either 'browser' or 'node'.
|
||||||
|
|
||||||
|
```js
|
||||||
|
require('@cspotcode/source-map-support').install({
|
||||||
|
environment: 'node'
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
To support files with inline source maps, the `hookRequire` options can be specified, which will monitor all source files for inline source maps.
|
||||||
|
|
||||||
|
|
||||||
|
```js
|
||||||
|
require('@cspotcode/source-map-support').install({
|
||||||
|
hookRequire: true
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
This monkey patches the `require` module loading chain, so is not enabled by default and is not recommended for any sort of production usage.
|
||||||
|
|
||||||
|
## Demos
|
||||||
|
|
||||||
|
#### Basic Demo
|
||||||
|
|
||||||
|
original.js:
|
||||||
|
|
||||||
|
```js
|
||||||
|
throw new Error('test'); // This is the original code
|
||||||
|
```
|
||||||
|
|
||||||
|
compiled.js:
|
||||||
|
|
||||||
|
```js
|
||||||
|
require('@cspotcode/source-map-support').install();
|
||||||
|
|
||||||
|
throw new Error('test'); // This is the compiled code
|
||||||
|
// The next line defines the sourceMapping.
|
||||||
|
//# sourceMappingURL=compiled.js.map
|
||||||
|
```
|
||||||
|
|
||||||
|
compiled.js.map:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"file": "compiled.js",
|
||||||
|
"sources": ["original.js"],
|
||||||
|
"names": [],
|
||||||
|
"mappings": ";;AAAA,MAAM,IAAI"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Run compiled.js using node (notice how the stack trace uses original.js instead of compiled.js):
|
||||||
|
|
||||||
|
```
|
||||||
|
$ node compiled.js
|
||||||
|
|
||||||
|
original.js:1
|
||||||
|
throw new Error('test'); // This is the original code
|
||||||
|
^
|
||||||
|
Error: test
|
||||||
|
at Object.<anonymous> (original.js:1:7)
|
||||||
|
at Module._compile (module.js:456:26)
|
||||||
|
at Object.Module._extensions..js (module.js:474:10)
|
||||||
|
at Module.load (module.js:356:32)
|
||||||
|
at Function.Module._load (module.js:312:12)
|
||||||
|
at Function.Module.runMain (module.js:497:10)
|
||||||
|
at startup (node.js:119:16)
|
||||||
|
at node.js:901:3
|
||||||
|
```
|
||||||
|
|
||||||
|
#### TypeScript Demo
|
||||||
|
|
||||||
|
demo.ts:
|
||||||
|
|
||||||
|
```typescript
|
||||||
|
declare function require(name: string);
|
||||||
|
require('@cspotcode/source-map-support').install();
|
||||||
|
class Foo {
|
||||||
|
constructor() { this.bar(); }
|
||||||
|
bar() { throw new Error('this is a demo'); }
|
||||||
|
}
|
||||||
|
new Foo();
|
||||||
|
```
|
||||||
|
|
||||||
|
Compile and run the file using the TypeScript compiler from the terminal:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ npm install source-map-support typescript
|
||||||
|
$ node_modules/typescript/bin/tsc -sourcemap demo.ts
|
||||||
|
$ node demo.js
|
||||||
|
|
||||||
|
demo.ts:5
|
||||||
|
bar() { throw new Error('this is a demo'); }
|
||||||
|
^
|
||||||
|
Error: this is a demo
|
||||||
|
at Foo.bar (demo.ts:5:17)
|
||||||
|
at new Foo (demo.ts:4:24)
|
||||||
|
at Object.<anonymous> (demo.ts:7:1)
|
||||||
|
at Module._compile (module.js:456:26)
|
||||||
|
at Object.Module._extensions..js (module.js:474:10)
|
||||||
|
at Module.load (module.js:356:32)
|
||||||
|
at Function.Module._load (module.js:312:12)
|
||||||
|
at Function.Module.runMain (module.js:497:10)
|
||||||
|
at startup (node.js:119:16)
|
||||||
|
at node.js:901:3
|
||||||
|
```
|
||||||
|
|
||||||
|
There is also the option to use `-r source-map-support/register` with typescript, without the need add the `require('@cspotcode/source-map-support').install()` in the code base:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ npm install source-map-support typescript
|
||||||
|
$ node_modules/typescript/bin/tsc -sourcemap demo.ts
|
||||||
|
$ node -r source-map-support/register demo.js
|
||||||
|
|
||||||
|
demo.ts:5
|
||||||
|
bar() { throw new Error('this is a demo'); }
|
||||||
|
^
|
||||||
|
Error: this is a demo
|
||||||
|
at Foo.bar (demo.ts:5:17)
|
||||||
|
at new Foo (demo.ts:4:24)
|
||||||
|
at Object.<anonymous> (demo.ts:7:1)
|
||||||
|
at Module._compile (module.js:456:26)
|
||||||
|
at Object.Module._extensions..js (module.js:474:10)
|
||||||
|
at Module.load (module.js:356:32)
|
||||||
|
at Function.Module._load (module.js:312:12)
|
||||||
|
at Function.Module.runMain (module.js:497:10)
|
||||||
|
at startup (node.js:119:16)
|
||||||
|
at node.js:901:3
|
||||||
|
```
|
||||||
|
|
||||||
|
#### CoffeeScript Demo
|
||||||
|
|
||||||
|
demo.coffee:
|
||||||
|
|
||||||
|
```coffee
|
||||||
|
require('@cspotcode/source-map-support').install()
|
||||||
|
foo = ->
|
||||||
|
bar = -> throw new Error 'this is a demo'
|
||||||
|
bar()
|
||||||
|
foo()
|
||||||
|
```
|
||||||
|
|
||||||
|
Compile and run the file using the CoffeeScript compiler from the terminal:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ npm install @cspotcode/source-map-support coffeescript
|
||||||
|
$ node_modules/.bin/coffee --map --compile demo.coffee
|
||||||
|
$ node demo.js
|
||||||
|
|
||||||
|
demo.coffee:3
|
||||||
|
bar = -> throw new Error 'this is a demo'
|
||||||
|
^
|
||||||
|
Error: this is a demo
|
||||||
|
at bar (demo.coffee:3:22)
|
||||||
|
at foo (demo.coffee:4:3)
|
||||||
|
at Object.<anonymous> (demo.coffee:5:1)
|
||||||
|
at Object.<anonymous> (demo.coffee:1:1)
|
||||||
|
at Module._compile (module.js:456:26)
|
||||||
|
at Object.Module._extensions..js (module.js:474:10)
|
||||||
|
at Module.load (module.js:356:32)
|
||||||
|
at Function.Module._load (module.js:312:12)
|
||||||
|
at Function.Module.runMain (module.js:497:10)
|
||||||
|
at startup (node.js:119:16)
|
||||||
|
```
|
||||||
|
|
||||||
|
## Tests
|
||||||
|
|
||||||
|
This repo contains both automated tests for node and manual tests for the browser. The automated tests can be run using mocha (type `mocha` in the root directory). To run the manual tests:
|
||||||
|
|
||||||
|
* Build the tests using `build.js`
|
||||||
|
* Launch the HTTP server (`npm run serve-tests`) and visit
|
||||||
|
* http://127.0.0.1:1336/amd-test
|
||||||
|
* http://127.0.0.1:1336/browser-test
|
||||||
|
* http://127.0.0.1:1336/browserify-test - **Currently not working** due to a bug with browserify (see [pull request #66](https://github.com/evanw/node-source-map-support/pull/66) for details).
|
||||||
|
* For `header-test`, run `server.js` inside that directory and visit http://127.0.0.1:1337/
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
This code is available under the [MIT license](http://opensource.org/licenses/MIT).
|
||||||
114
node_modules/@cspotcode/source-map-support/browser-source-map-support.js
generated
vendored
Normal file
114
node_modules/@cspotcode/source-map-support/browser-source-map-support.js
generated
vendored
Normal file
@@ -0,0 +1,114 @@
|
|||||||
|
/*
|
||||||
|
* Support for source maps in V8 stack traces
|
||||||
|
* https://github.com/evanw/node-source-map-support
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
The buffer module from node.js, for the browser.
|
||||||
|
|
||||||
|
@author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
||||||
|
license MIT
|
||||||
|
*/
|
||||||
|
(this.define||function(R,U){this.sourceMapSupport=U()})("browser-source-map-support",function(R){(function e(C,J,A){function p(f,c){if(!J[f]){if(!C[f]){var l="function"==typeof require&&require;if(!c&&l)return l(f,!0);if(t)return t(f,!0);throw Error("Cannot find module '"+f+"'");}l=J[f]={exports:{}};C[f][0].call(l.exports,function(q){var r=C[f][1][q];return p(r?r:q)},l,l.exports,e,C,J,A)}return J[f].exports}for(var t="function"==typeof require&&require,m=0;m<A.length;m++)p(A[m]);return p})({1:[function(C,
|
||||||
|
J,A){R=C("./source-map-support")},{"./source-map-support":21}],2:[function(C,J,A){(function(e){function p(m){m=m.charCodeAt(0);if(43===m)return 62;if(47===m)return 63;if(48>m)return-1;if(58>m)return m-48+52;if(91>m)return m-65;if(123>m)return m-97+26}var t="undefined"!==typeof Uint8Array?Uint8Array:Array;e.toByteArray=function(m){function f(d){q[k++]=d}if(0<m.length%4)throw Error("Invalid string. Length must be a multiple of 4");var c=m.length;var l="="===m.charAt(c-2)?2:"="===m.charAt(c-1)?1:0;var q=
|
||||||
|
new t(3*m.length/4-l);var r=0<l?m.length-4:m.length;var k=0;for(c=0;c<r;c+=4){var u=p(m.charAt(c))<<18|p(m.charAt(c+1))<<12|p(m.charAt(c+2))<<6|p(m.charAt(c+3));f((u&16711680)>>16);f((u&65280)>>8);f(u&255)}2===l?(u=p(m.charAt(c))<<2|p(m.charAt(c+1))>>4,f(u&255)):1===l&&(u=p(m.charAt(c))<<10|p(m.charAt(c+1))<<4|p(m.charAt(c+2))>>2,f(u>>8&255),f(u&255));return q};e.fromByteArray=function(m){var f=m.length%3,c="",l;var q=0;for(l=m.length-f;q<l;q+=3){var r=(m[q]<<16)+(m[q+1]<<8)+m[q+2];r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>
|
||||||
|
18&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>12&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r&63);c+=r}switch(f){case 1:r=m[m.length-1];c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>2);c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r<<4&63);c+="==";break;case 2:r=(m[m.length-2]<<8)+
|
||||||
|
m[m.length-1],c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>10),c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>4&63),c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r<<2&63),c+="="}return c}})("undefined"===typeof A?this.base64js={}:A)},{}],3:[function(C,J,A){},{}],4:[function(C,J,A){(function(e){var p=Object.prototype.toString,t="function"===typeof e.alloc&&"function"===typeof e.allocUnsafe&&"function"===
|
||||||
|
typeof e.from;J.exports=function(m,f,c){if("number"===typeof m)throw new TypeError('"value" argument must not be a number');if("ArrayBuffer"===p.call(m).slice(8,-1)){f>>>=0;var l=m.byteLength-f;if(0>l)throw new RangeError("'offset' is out of bounds");if(void 0===c)c=l;else if(c>>>=0,c>l)throw new RangeError("'length' is out of bounds");return t?e.from(m.slice(f,f+c)):new e(new Uint8Array(m.slice(f,f+c)))}if("string"===typeof m){c=f;if("string"!==typeof c||""===c)c="utf8";if(!e.isEncoding(c))throw new TypeError('"encoding" must be a valid string encoding');
|
||||||
|
return t?e.from(m,c):new e(m,c)}return t?e.from(m):new e(m)}}).call(this,C("buffer").Buffer)},{buffer:5}],5:[function(C,J,A){function e(a,b,h){if(!(this instanceof e))return new e(a,b,h);var w=typeof a;if("number"===w)var y=0<a?a>>>0:0;else if("string"===w){if("base64"===b)for(a=(a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")).replace(L,"");0!==a.length%4;)a+="=";y=e.byteLength(a,b)}else if("object"===w&&null!==a)"Buffer"===a.type&&z(a.data)&&(a=a.data),y=0<+a.length?Math.floor(+a.length):0;else throw new TypeError("must start with number, buffer, array or string");
|
||||||
|
if(this.length>G)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+G.toString(16)+" bytes");if(e.TYPED_ARRAY_SUPPORT)var I=e._augment(new Uint8Array(y));else I=this,I.length=y,I._isBuffer=!0;if(e.TYPED_ARRAY_SUPPORT&&"number"===typeof a.byteLength)I._set(a);else{var K=a;if(z(K)||e.isBuffer(K)||K&&"object"===typeof K&&"number"===typeof K.length)if(e.isBuffer(a))for(b=0;b<y;b++)I[b]=a.readUInt8(b);else for(b=0;b<y;b++)I[b]=(a[b]%256+256)%256;else if("string"===w)I.write(a,
|
||||||
|
0,b);else if("number"===w&&!e.TYPED_ARRAY_SUPPORT&&!h)for(b=0;b<y;b++)I[b]=0}return I}function p(a,b,h){var w="";for(h=Math.min(a.length,h);b<h;b++)w+=String.fromCharCode(a[b]);return w}function t(a,b,h){if(0!==a%1||0>a)throw new RangeError("offset is not uint");if(a+b>h)throw new RangeError("Trying to access beyond buffer length");}function m(a,b,h,w,y,I){if(!e.isBuffer(a))throw new TypeError("buffer must be a Buffer instance");if(b>y||b<I)throw new TypeError("value is out of bounds");if(h+w>a.length)throw new TypeError("index out of range");
|
||||||
|
}function f(a,b,h,w){0>b&&(b=65535+b+1);for(var y=0,I=Math.min(a.length-h,2);y<I;y++)a[h+y]=(b&255<<8*(w?y:1-y))>>>8*(w?y:1-y)}function c(a,b,h,w){0>b&&(b=4294967295+b+1);for(var y=0,I=Math.min(a.length-h,4);y<I;y++)a[h+y]=b>>>8*(w?y:3-y)&255}function l(a,b,h,w,y,I){if(b>y||b<I)throw new TypeError("value is out of bounds");if(h+w>a.length)throw new TypeError("index out of range");}function q(a,b,h,w,y){y||l(a,b,h,4,3.4028234663852886E38,-3.4028234663852886E38);v.write(a,b,h,w,23,4);return h+4}function r(a,
|
||||||
|
b,h,w,y){y||l(a,b,h,8,1.7976931348623157E308,-1.7976931348623157E308);v.write(a,b,h,w,52,8);return h+8}function k(a){for(var b=[],h=0;h<a.length;h++){var w=a.charCodeAt(h);if(127>=w)b.push(w);else{var y=h;55296<=w&&57343>=w&&h++;w=encodeURIComponent(a.slice(y,h+1)).substr(1).split("%");for(y=0;y<w.length;y++)b.push(parseInt(w[y],16))}}return b}function u(a){for(var b=[],h=0;h<a.length;h++)b.push(a.charCodeAt(h)&255);return b}function d(a,b,h,w,y){y&&(w-=w%y);for(y=0;y<w&&!(y+h>=b.length||y>=a.length);y++)b[y+
|
||||||
|
h]=a[y];return y}function g(a){try{return decodeURIComponent(a)}catch(b){return String.fromCharCode(65533)}}var n=C("base64-js"),v=C("ieee754"),z=C("is-array");A.Buffer=e;A.SlowBuffer=e;A.INSPECT_MAX_BYTES=50;e.poolSize=8192;var G=1073741823;e.TYPED_ARRAY_SUPPORT=function(){try{var a=new ArrayBuffer(0),b=new Uint8Array(a);b.foo=function(){return 42};return 42===b.foo()&&"function"===typeof b.subarray&&0===(new Uint8Array(1)).subarray(1,1).byteLength}catch(h){return!1}}();e.isBuffer=function(a){return!(null==
|
||||||
|
a||!a._isBuffer)};e.compare=function(a,b){if(!e.isBuffer(a)||!e.isBuffer(b))throw new TypeError("Arguments must be Buffers");for(var h=a.length,w=b.length,y=0,I=Math.min(h,w);y<I&&a[y]===b[y];y++);y!==I&&(h=a[y],w=b[y]);return h<w?-1:w<h?1:0};e.isEncoding=function(a){switch(String(a).toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "binary":case "base64":case "raw":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return!0;default:return!1}};e.concat=function(a,b){if(!z(a))throw new TypeError("Usage: Buffer.concat(list[, length])");
|
||||||
|
if(0===a.length)return new e(0);if(1===a.length)return a[0];var h;if(void 0===b)for(h=b=0;h<a.length;h++)b+=a[h].length;var w=new e(b),y=0;for(h=0;h<a.length;h++){var I=a[h];I.copy(w,y);y+=I.length}return w};e.byteLength=function(a,b){a+="";switch(b||"utf8"){case "ascii":case "binary":case "raw":var h=a.length;break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":h=2*a.length;break;case "hex":h=a.length>>>1;break;case "utf8":case "utf-8":h=k(a).length;break;case "base64":h=n.toByteArray(a).length;
|
||||||
|
break;default:h=a.length}return h};e.prototype.length=void 0;e.prototype.parent=void 0;e.prototype.toString=function(a,b,h){var w=!1;b>>>=0;h=void 0===h||Infinity===h?this.length:h>>>0;a||(a="utf8");0>b&&(b=0);h>this.length&&(h=this.length);if(h<=b)return"";for(;;)switch(a){case "hex":a=b;b=h;h=this.length;if(!a||0>a)a=0;if(!b||0>b||b>h)b=h;w="";for(h=a;h<b;h++)a=w,w=this[h],w=16>w?"0"+w.toString(16):w.toString(16),w=a+w;return w;case "utf8":case "utf-8":w=a="";for(h=Math.min(this.length,h);b<h;b++)127>=
|
||||||
|
this[b]?(a+=g(w)+String.fromCharCode(this[b]),w=""):w+="%"+this[b].toString(16);return a+g(w);case "ascii":return p(this,b,h);case "binary":return p(this,b,h);case "base64":return b=0===b&&h===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(b,h)),b;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":b=this.slice(b,h);h="";for(a=0;a<b.length;a+=2)h+=String.fromCharCode(b[a]+256*b[a+1]);return h;default:if(w)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase();w=!0}};
|
||||||
|
e.prototype.equals=function(a){if(!e.isBuffer(a))throw new TypeError("Argument must be a Buffer");return 0===e.compare(this,a)};e.prototype.inspect=function(){var a="",b=A.INSPECT_MAX_BYTES;0<this.length&&(a=this.toString("hex",0,b).match(/.{2}/g).join(" "),this.length>b&&(a+=" ... "));return"<Buffer "+a+">"};e.prototype.compare=function(a){if(!e.isBuffer(a))throw new TypeError("Argument must be a Buffer");return e.compare(this,a)};e.prototype.get=function(a){console.log(".get() is deprecated. Access using array indexes instead.");
|
||||||
|
return this.readUInt8(a)};e.prototype.set=function(a,b){console.log(".set() is deprecated. Access using array indexes instead.");return this.writeUInt8(a,b)};e.prototype.write=function(a,b,h,w){if(isFinite(b))isFinite(h)||(w=h,h=void 0);else{var y=w;w=b;b=h;h=y}b=Number(b)||0;y=this.length-b;h?(h=Number(h),h>y&&(h=y)):h=y;w=String(w||"utf8").toLowerCase();switch(w){case "hex":b=Number(b)||0;w=this.length-b;h?(h=Number(h),h>w&&(h=w)):h=w;w=a.length;if(0!==w%2)throw Error("Invalid hex string");h>w/
|
||||||
|
2&&(h=w/2);for(w=0;w<h;w++){y=parseInt(a.substr(2*w,2),16);if(isNaN(y))throw Error("Invalid hex string");this[b+w]=y}a=w;break;case "utf8":case "utf-8":a=d(k(a),this,b,h);break;case "ascii":a=d(u(a),this,b,h);break;case "binary":a=d(u(a),this,b,h);break;case "base64":a=d(n.toByteArray(a),this,b,h);break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":y=[];for(var I=0;I<a.length;I++){var K=a.charCodeAt(I);w=K>>8;K%=256;y.push(K);y.push(w)}a=d(y,this,b,h,2);break;default:throw new TypeError("Unknown encoding: "+
|
||||||
|
w);}return a};e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};e.prototype.slice=function(a,b){var h=this.length;a=~~a;b=void 0===b?h:~~b;0>a?(a+=h,0>a&&(a=0)):a>h&&(a=h);0>b?(b+=h,0>b&&(b=0)):b>h&&(b=h);b<a&&(b=a);if(e.TYPED_ARRAY_SUPPORT)return e._augment(this.subarray(a,b));h=b-a;for(var w=new e(h,void 0,!0),y=0;y<h;y++)w[y]=this[y+a];return w};e.prototype.readUInt8=function(a,b){b||t(a,1,this.length);return this[a]};e.prototype.readUInt16LE=
|
||||||
|
function(a,b){b||t(a,2,this.length);return this[a]|this[a+1]<<8};e.prototype.readUInt16BE=function(a,b){b||t(a,2,this.length);return this[a]<<8|this[a+1]};e.prototype.readUInt32LE=function(a,b){b||t(a,4,this.length);return(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]};e.prototype.readUInt32BE=function(a,b){b||t(a,4,this.length);return 16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])};e.prototype.readInt8=function(a,b){b||t(a,1,this.length);return this[a]&128?-1*(255-this[a]+1):this[a]};
|
||||||
|
e.prototype.readInt16LE=function(a,b){b||t(a,2,this.length);var h=this[a]|this[a+1]<<8;return h&32768?h|4294901760:h};e.prototype.readInt16BE=function(a,b){b||t(a,2,this.length);var h=this[a+1]|this[a]<<8;return h&32768?h|4294901760:h};e.prototype.readInt32LE=function(a,b){b||t(a,4,this.length);return this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24};e.prototype.readInt32BE=function(a,b){b||t(a,4,this.length);return this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]};e.prototype.readFloatLE=function(a,
|
||||||
|
b){b||t(a,4,this.length);return v.read(this,a,!0,23,4)};e.prototype.readFloatBE=function(a,b){b||t(a,4,this.length);return v.read(this,a,!1,23,4)};e.prototype.readDoubleLE=function(a,b){b||t(a,8,this.length);return v.read(this,a,!0,52,8)};e.prototype.readDoubleBE=function(a,b){b||t(a,8,this.length);return v.read(this,a,!1,52,8)};e.prototype.writeUInt8=function(a,b,h){a=+a;b>>>=0;h||m(this,a,b,1,255,0);e.TYPED_ARRAY_SUPPORT||(a=Math.floor(a));this[b]=a;return b+1};e.prototype.writeUInt16LE=function(a,
|
||||||
|
b,h){a=+a;b>>>=0;h||m(this,a,b,2,65535,0);e.TYPED_ARRAY_SUPPORT?(this[b]=a,this[b+1]=a>>>8):f(this,a,b,!0);return b+2};e.prototype.writeUInt16BE=function(a,b,h){a=+a;b>>>=0;h||m(this,a,b,2,65535,0);e.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=a):f(this,a,b,!1);return b+2};e.prototype.writeUInt32LE=function(a,b,h){a=+a;b>>>=0;h||m(this,a,b,4,4294967295,0);e.TYPED_ARRAY_SUPPORT?(this[b+3]=a>>>24,this[b+2]=a>>>16,this[b+1]=a>>>8,this[b]=a):c(this,a,b,!0);return b+4};e.prototype.writeUInt32BE=function(a,
|
||||||
|
b,h){a=+a;b>>>=0;h||m(this,a,b,4,4294967295,0);e.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=a):c(this,a,b,!1);return b+4};e.prototype.writeInt8=function(a,b,h){a=+a;b>>>=0;h||m(this,a,b,1,127,-128);e.TYPED_ARRAY_SUPPORT||(a=Math.floor(a));0>a&&(a=255+a+1);this[b]=a;return b+1};e.prototype.writeInt16LE=function(a,b,h){a=+a;b>>>=0;h||m(this,a,b,2,32767,-32768);e.TYPED_ARRAY_SUPPORT?(this[b]=a,this[b+1]=a>>>8):f(this,a,b,!0);return b+2};e.prototype.writeInt16BE=function(a,
|
||||||
|
b,h){a=+a;b>>>=0;h||m(this,a,b,2,32767,-32768);e.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=a):f(this,a,b,!1);return b+2};e.prototype.writeInt32LE=function(a,b,h){a=+a;b>>>=0;h||m(this,a,b,4,2147483647,-2147483648);e.TYPED_ARRAY_SUPPORT?(this[b]=a,this[b+1]=a>>>8,this[b+2]=a>>>16,this[b+3]=a>>>24):c(this,a,b,!0);return b+4};e.prototype.writeInt32BE=function(a,b,h){a=+a;b>>>=0;h||m(this,a,b,4,2147483647,-2147483648);0>a&&(a=4294967295+a+1);e.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+
|
||||||
|
2]=a>>>8,this[b+3]=a):c(this,a,b,!1);return b+4};e.prototype.writeFloatLE=function(a,b,h){return q(this,a,b,!0,h)};e.prototype.writeFloatBE=function(a,b,h){return q(this,a,b,!1,h)};e.prototype.writeDoubleLE=function(a,b,h){return r(this,a,b,!0,h)};e.prototype.writeDoubleBE=function(a,b,h){return r(this,a,b,!1,h)};e.prototype.copy=function(a,b,h,w){h||(h=0);w||0===w||(w=this.length);b||(b=0);if(w!==h&&0!==a.length&&0!==this.length){if(w<h)throw new TypeError("sourceEnd < sourceStart");if(0>b||b>=a.length)throw new TypeError("targetStart out of bounds");
|
||||||
|
if(0>h||h>=this.length)throw new TypeError("sourceStart out of bounds");if(0>w||w>this.length)throw new TypeError("sourceEnd out of bounds");w>this.length&&(w=this.length);a.length-b<w-h&&(w=a.length-b+h);w-=h;if(1E3>w||!e.TYPED_ARRAY_SUPPORT)for(var y=0;y<w;y++)a[y+b]=this[y+h];else a._set(this.subarray(h,h+w),b)}};e.prototype.fill=function(a,b,h){a||(a=0);b||(b=0);h||(h=this.length);if(h<b)throw new TypeError("end < start");if(h!==b&&0!==this.length){if(0>b||b>=this.length)throw new TypeError("start out of bounds");
|
||||||
|
if(0>h||h>this.length)throw new TypeError("end out of bounds");if("number"===typeof a)for(;b<h;b++)this[b]=a;else{a=k(a.toString());for(var w=a.length;b<h;b++)this[b]=a[b%w]}return this}};e.prototype.toArrayBuffer=function(){if("undefined"!==typeof Uint8Array){if(e.TYPED_ARRAY_SUPPORT)return(new e(this)).buffer;for(var a=new Uint8Array(this.length),b=0,h=a.length;b<h;b+=1)a[b]=this[b];return a.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser");};var D=e.prototype;e._augment=
|
||||||
|
function(a){a.constructor=e;a._isBuffer=!0;a._get=a.get;a._set=a.set;a.get=D.get;a.set=D.set;a.write=D.write;a.toString=D.toString;a.toLocaleString=D.toString;a.toJSON=D.toJSON;a.equals=D.equals;a.compare=D.compare;a.copy=D.copy;a.slice=D.slice;a.readUInt8=D.readUInt8;a.readUInt16LE=D.readUInt16LE;a.readUInt16BE=D.readUInt16BE;a.readUInt32LE=D.readUInt32LE;a.readUInt32BE=D.readUInt32BE;a.readInt8=D.readInt8;a.readInt16LE=D.readInt16LE;a.readInt16BE=D.readInt16BE;a.readInt32LE=D.readInt32LE;a.readInt32BE=
|
||||||
|
D.readInt32BE;a.readFloatLE=D.readFloatLE;a.readFloatBE=D.readFloatBE;a.readDoubleLE=D.readDoubleLE;a.readDoubleBE=D.readDoubleBE;a.writeUInt8=D.writeUInt8;a.writeUInt16LE=D.writeUInt16LE;a.writeUInt16BE=D.writeUInt16BE;a.writeUInt32LE=D.writeUInt32LE;a.writeUInt32BE=D.writeUInt32BE;a.writeInt8=D.writeInt8;a.writeInt16LE=D.writeInt16LE;a.writeInt16BE=D.writeInt16BE;a.writeInt32LE=D.writeInt32LE;a.writeInt32BE=D.writeInt32BE;a.writeFloatLE=D.writeFloatLE;a.writeFloatBE=D.writeFloatBE;a.writeDoubleLE=
|
||||||
|
D.writeDoubleLE;a.writeDoubleBE=D.writeDoubleBE;a.fill=D.fill;a.inspect=D.inspect;a.toArrayBuffer=D.toArrayBuffer;return a};var L=/[^+\/0-9A-z]/g},{"base64-js":2,ieee754:6,"is-array":7}],6:[function(C,J,A){A.read=function(e,p,t,m,f){var c=8*f-m-1;var l=(1<<c)-1,q=l>>1,r=-7;f=t?f-1:0;var k=t?-1:1,u=e[p+f];f+=k;t=u&(1<<-r)-1;u>>=-r;for(r+=c;0<r;t=256*t+e[p+f],f+=k,r-=8);c=t&(1<<-r)-1;t>>=-r;for(r+=m;0<r;c=256*c+e[p+f],f+=k,r-=8);if(0===t)t=1-q;else{if(t===l)return c?NaN:Infinity*(u?-1:1);c+=Math.pow(2,
|
||||||
|
m);t-=q}return(u?-1:1)*c*Math.pow(2,t-m)};A.write=function(e,p,t,m,f,c){var l,q=8*c-f-1,r=(1<<q)-1,k=r>>1,u=23===f?Math.pow(2,-24)-Math.pow(2,-77):0;c=m?0:c-1;var d=m?1:-1,g=0>p||0===p&&0>1/p?1:0;p=Math.abs(p);isNaN(p)||Infinity===p?(p=isNaN(p)?1:0,m=r):(m=Math.floor(Math.log(p)/Math.LN2),1>p*(l=Math.pow(2,-m))&&(m--,l*=2),p=1<=m+k?p+u/l:p+u*Math.pow(2,1-k),2<=p*l&&(m++,l/=2),m+k>=r?(p=0,m=r):1<=m+k?(p=(p*l-1)*Math.pow(2,f),m+=k):(p=p*Math.pow(2,k-1)*Math.pow(2,f),m=0));for(;8<=f;e[t+c]=p&255,c+=
|
||||||
|
d,p/=256,f-=8);m=m<<f|p;for(q+=f;0<q;e[t+c]=m&255,c+=d,m/=256,q-=8);e[t+c-d]|=128*g}},{}],7:[function(C,J,A){var e=Object.prototype.toString;J.exports=Array.isArray||function(p){return!!p&&"[object Array]"==e.call(p)}},{}],8:[function(C,J,A){(function(e){function p(c,l){for(var q=0,r=c.length-1;0<=r;r--){var k=c[r];"."===k?c.splice(r,1):".."===k?(c.splice(r,1),q++):q&&(c.splice(r,1),q--)}if(l)for(;q--;q)c.unshift("..");return c}function t(c,l){if(c.filter)return c.filter(l);for(var q=[],r=0;r<c.length;r++)l(c[r],
|
||||||
|
r,c)&&q.push(c[r]);return q}var m=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;A.resolve=function(){for(var c="",l=!1,q=arguments.length-1;-1<=q&&!l;q--){var r=0<=q?arguments[q]:e.cwd();if("string"!==typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(c=r+"/"+c,l="/"===r.charAt(0))}c=p(t(c.split("/"),function(k){return!!k}),!l).join("/");return(l?"/":"")+c||"."};A.normalize=function(c){var l=A.isAbsolute(c),q="/"===f(c,-1);(c=p(t(c.split("/"),function(r){return!!r}),
|
||||||
|
!l).join("/"))||l||(c=".");c&&q&&(c+="/");return(l?"/":"")+c};A.isAbsolute=function(c){return"/"===c.charAt(0)};A.join=function(){var c=Array.prototype.slice.call(arguments,0);return A.normalize(t(c,function(l,q){if("string"!==typeof l)throw new TypeError("Arguments to path.join must be strings");return l}).join("/"))};A.relative=function(c,l){function q(n){for(var v=0;v<n.length&&""===n[v];v++);for(var z=n.length-1;0<=z&&""===n[z];z--);return v>z?[]:n.slice(v,z-v+1)}c=A.resolve(c).substr(1);l=A.resolve(l).substr(1);
|
||||||
|
for(var r=q(c.split("/")),k=q(l.split("/")),u=Math.min(r.length,k.length),d=u,g=0;g<u;g++)if(r[g]!==k[g]){d=g;break}u=[];for(g=d;g<r.length;g++)u.push("..");u=u.concat(k.slice(d));return u.join("/")};A.sep="/";A.delimiter=":";A.dirname=function(c){var l=m.exec(c).slice(1);c=l[0];l=l[1];if(!c&&!l)return".";l&&(l=l.substr(0,l.length-1));return c+l};A.basename=function(c,l){var q=m.exec(c).slice(1)[2];l&&q.substr(-1*l.length)===l&&(q=q.substr(0,q.length-l.length));return q};A.extname=function(c){return m.exec(c).slice(1)[3]};
|
||||||
|
var f="b"==="ab".substr(-1)?function(c,l,q){return c.substr(l,q)}:function(c,l,q){0>l&&(l=c.length+l);return c.substr(l,q)}}).call(this,C("g5I+bs"))},{"g5I+bs":9}],9:[function(C,J,A){function e(){}C=J.exports={};C.nextTick=function(){if("undefined"!==typeof window&&window.setImmediate)return function(t){return window.setImmediate(t)};if("undefined"!==typeof window&&window.postMessage&&window.addEventListener){var p=[];window.addEventListener("message",function(t){var m=t.source;m!==window&&null!==
|
||||||
|
m||"process-tick"!==t.data||(t.stopPropagation(),0<p.length&&p.shift()())},!0);return function(t){p.push(t);window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}();C.title="browser";C.browser=!0;C.env={};C.argv=[];C.on=e;C.addListener=e;C.once=e;C.off=e;C.removeListener=e;C.removeAllListeners=e;C.emit=e;C.binding=function(p){throw Error("process.binding is not supported");};C.cwd=function(){return"/"};C.chdir=function(p){throw Error("process.chdir is not supported");}},{}],
|
||||||
|
10:[function(C,J,A){function e(){this._array=[];this._set=m?new Map:Object.create(null)}var p=C("./util"),t=Object.prototype.hasOwnProperty,m="undefined"!==typeof Map;e.fromArray=function(f,c){for(var l=new e,q=0,r=f.length;q<r;q++)l.add(f[q],c);return l};e.prototype.size=function(){return m?this._set.size:Object.getOwnPropertyNames(this._set).length};e.prototype.add=function(f,c){var l=m?f:p.toSetString(f),q=m?this.has(f):t.call(this._set,l),r=this._array.length;q&&!c||this._array.push(f);q||(m?
|
||||||
|
this._set.set(f,r):this._set[l]=r)};e.prototype.has=function(f){if(m)return this._set.has(f);f=p.toSetString(f);return t.call(this._set,f)};e.prototype.indexOf=function(f){if(m){var c=this._set.get(f);if(0<=c)return c}else if(c=p.toSetString(f),t.call(this._set,c))return this._set[c];throw Error('"'+f+'" is not in the set.');};e.prototype.at=function(f){if(0<=f&&f<this._array.length)return this._array[f];throw Error("No element indexed by "+f);};e.prototype.toArray=function(){return this._array.slice()};
|
||||||
|
A.ArraySet=e},{"./util":19}],11:[function(C,J,A){var e=C("./base64");A.encode=function(p){var t="",m=0>p?(-p<<1)+1:p<<1;do p=m&31,m>>>=5,0<m&&(p|=32),t+=e.encode(p);while(0<m);return t};A.decode=function(p,t,m){var f=p.length,c=0,l=0;do{if(t>=f)throw Error("Expected more digits in base 64 VLQ value.");var q=e.decode(p.charCodeAt(t++));if(-1===q)throw Error("Invalid base64 digit: "+p.charAt(t-1));var r=!!(q&32);q&=31;c+=q<<l;l+=5}while(r);p=c>>1;m.value=1===(c&1)?-p:p;m.rest=t}},{"./base64":12}],12:[function(C,
|
||||||
|
J,A){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");A.encode=function(p){if(0<=p&&p<e.length)return e[p];throw new TypeError("Must be between 0 and 63: "+p);};A.decode=function(p){return 65<=p&&90>=p?p-65:97<=p&&122>=p?p-97+26:48<=p&&57>=p?p-48+52:43==p?62:47==p?63:-1}},{}],13:[function(C,J,A){function e(p,t,m,f,c,l){var q=Math.floor((t-p)/2)+p,r=c(m,f[q],!0);return 0===r?q:0<r?1<t-q?e(q,t,m,f,c,l):l==A.LEAST_UPPER_BOUND?t<f.length?t:-1:q:1<q-p?e(p,q,m,f,c,l):l==
|
||||||
|
A.LEAST_UPPER_BOUND?q:0>p?-1:p}A.GREATEST_LOWER_BOUND=1;A.LEAST_UPPER_BOUND=2;A.search=function(p,t,m,f){if(0===t.length)return-1;p=e(-1,t.length,p,t,m,f||A.GREATEST_LOWER_BOUND);if(0>p)return-1;for(;0<=p-1&&0===m(t[p],t[p-1],!0);)--p;return p}},{}],14:[function(C,J,A){function e(){this._array=[];this._sorted=!0;this._last={generatedLine:-1,generatedColumn:0}}var p=C("./util");e.prototype.unsortedForEach=function(t,m){this._array.forEach(t,m)};e.prototype.add=function(t){var m=this._last,f=m.generatedLine,
|
||||||
|
c=t.generatedLine,l=m.generatedColumn,q=t.generatedColumn;c>f||c==f&&q>=l||0>=p.compareByGeneratedPositionsInflated(m,t)?this._last=t:this._sorted=!1;this._array.push(t)};e.prototype.toArray=function(){this._sorted||(this._array.sort(p.compareByGeneratedPositionsInflated),this._sorted=!0);return this._array};A.MappingList=e},{"./util":19}],15:[function(C,J,A){function e(t,m,f){var c=t[m];t[m]=t[f];t[f]=c}function p(t,m,f,c){if(f<c){var l=f-1;e(t,Math.round(f+Math.random()*(c-f)),c);for(var q=t[c],
|
||||||
|
r=f;r<c;r++)0>=m(t[r],q)&&(l+=1,e(t,l,r));e(t,l+1,r);l+=1;p(t,m,f,l-1);p(t,m,l+1,c)}}A.quickSort=function(t,m){p(t,m,0,t.length-1)}},{}],16:[function(C,J,A){function e(k,u){var d=k;"string"===typeof k&&(d=f.parseSourceMapInput(k));return null!=d.sections?new m(d,u):new p(d,u)}function p(k,u){var d=k;"string"===typeof k&&(d=f.parseSourceMapInput(k));var g=f.getArg(d,"version"),n=f.getArg(d,"sources"),v=f.getArg(d,"names",[]),z=f.getArg(d,"sourceRoot",null),G=f.getArg(d,"sourcesContent",null),D=f.getArg(d,
|
||||||
|
"mappings");d=f.getArg(d,"file",null);if(g!=this._version)throw Error("Unsupported version: "+g);z&&(z=f.normalize(z));n=n.map(String).map(f.normalize).map(function(L){return z&&f.isAbsolute(z)&&f.isAbsolute(L)?f.relative(z,L):L});this._names=l.fromArray(v.map(String),!0);this._sources=l.fromArray(n,!0);this.sourceRoot=z;this.sourcesContent=G;this._mappings=D;this._sourceMapURL=u;this.file=d}function t(){this.generatedColumn=this.generatedLine=0;this.name=this.originalColumn=this.originalLine=this.source=
|
||||||
|
null}function m(k,u){var d=k;"string"===typeof k&&(d=f.parseSourceMapInput(k));var g=f.getArg(d,"version");d=f.getArg(d,"sections");if(g!=this._version)throw Error("Unsupported version: "+g);this._sources=new l;this._names=new l;var n={line:-1,column:0};this._sections=d.map(function(v){if(v.url)throw Error("Support for url field in sections not implemented.");var z=f.getArg(v,"offset"),G=f.getArg(z,"line"),D=f.getArg(z,"column");if(G<n.line||G===n.line&&D<n.column)throw Error("Section offsets must be ordered and non-overlapping.");
|
||||||
|
n=z;return{generatedOffset:{generatedLine:G+1,generatedColumn:D+1},consumer:new e(f.getArg(v,"map"),u)}})}var f=C("./util"),c=C("./binary-search"),l=C("./array-set").ArraySet,q=C("./base64-vlq"),r=C("./quick-sort").quickSort;e.fromSourceMap=function(k){return p.fromSourceMap(k)};e.prototype._version=3;e.prototype.__generatedMappings=null;Object.defineProperty(e.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){this.__generatedMappings||this._parseMappings(this._mappings,
|
||||||
|
this.sourceRoot);return this.__generatedMappings}});e.prototype.__originalMappings=null;Object.defineProperty(e.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot);return this.__originalMappings}});e.prototype._charIsMappingSeparator=function(k,u){var d=k.charAt(u);return";"===d||","===d};e.prototype._parseMappings=function(k,u){throw Error("Subclasses must implement _parseMappings");};e.GENERATED_ORDER=
|
||||||
|
1;e.ORIGINAL_ORDER=2;e.GREATEST_LOWER_BOUND=1;e.LEAST_UPPER_BOUND=2;e.prototype.eachMapping=function(k,u,d){u=u||null;switch(d||e.GENERATED_ORDER){case e.GENERATED_ORDER:d=this._generatedMappings;break;case e.ORIGINAL_ORDER:d=this._originalMappings;break;default:throw Error("Unknown order of iteration.");}var g=this.sourceRoot;d.map(function(n){var v=null===n.source?null:this._sources.at(n.source);v=f.computeSourceURL(g,v,this._sourceMapURL);return{source:v,generatedLine:n.generatedLine,generatedColumn:n.generatedColumn,
|
||||||
|
originalLine:n.originalLine,originalColumn:n.originalColumn,name:null===n.name?null:this._names.at(n.name)}},this).forEach(k,u)};e.prototype.allGeneratedPositionsFor=function(k){var u=f.getArg(k,"line"),d={source:f.getArg(k,"source"),originalLine:u,originalColumn:f.getArg(k,"column",0)};null!=this.sourceRoot&&(d.source=f.relative(this.sourceRoot,d.source));if(!this._sources.has(d.source))return[];d.source=this._sources.indexOf(d.source);var g=[];d=this._findMapping(d,this._originalMappings,"originalLine",
|
||||||
|
"originalColumn",f.compareByOriginalPositions,c.LEAST_UPPER_BOUND);if(0<=d){var n=this._originalMappings[d];if(void 0===k.column)for(u=n.originalLine;n&&n.originalLine===u;)g.push({line:f.getArg(n,"generatedLine",null),column:f.getArg(n,"generatedColumn",null),lastColumn:f.getArg(n,"lastGeneratedColumn",null)}),n=this._originalMappings[++d];else for(k=n.originalColumn;n&&n.originalLine===u&&n.originalColumn==k;)g.push({line:f.getArg(n,"generatedLine",null),column:f.getArg(n,"generatedColumn",null),
|
||||||
|
lastColumn:f.getArg(n,"lastGeneratedColumn",null)}),n=this._originalMappings[++d]}return g};A.SourceMapConsumer=e;p.prototype=Object.create(e.prototype);p.prototype.consumer=e;p.fromSourceMap=function(k,u){var d=Object.create(p.prototype),g=d._names=l.fromArray(k._names.toArray(),!0),n=d._sources=l.fromArray(k._sources.toArray(),!0);d.sourceRoot=k._sourceRoot;d.sourcesContent=k._generateSourcesContent(d._sources.toArray(),d.sourceRoot);d.file=k._file;d._sourceMapURL=u;for(var v=k._mappings.toArray().slice(),
|
||||||
|
z=d.__generatedMappings=[],G=d.__originalMappings=[],D=0,L=v.length;D<L;D++){var a=v[D],b=new t;b.generatedLine=a.generatedLine;b.generatedColumn=a.generatedColumn;a.source&&(b.source=n.indexOf(a.source),b.originalLine=a.originalLine,b.originalColumn=a.originalColumn,a.name&&(b.name=g.indexOf(a.name)),G.push(b));z.push(b)}r(d.__originalMappings,f.compareByOriginalPositions);return d};p.prototype._version=3;Object.defineProperty(p.prototype,"sources",{get:function(){return this._sources.toArray().map(function(k){return f.computeSourceURL(this.sourceRoot,
|
||||||
|
k,this._sourceMapURL)},this)}});p.prototype._parseMappings=function(k,u){for(var d=1,g=0,n=0,v=0,z=0,G=0,D=k.length,L=0,a={},b={},h=[],w=[],y,I,K,N,P;L<D;)if(";"===k.charAt(L))d++,L++,g=0;else if(","===k.charAt(L))L++;else{y=new t;y.generatedLine=d;for(N=L;N<D&&!this._charIsMappingSeparator(k,N);N++);I=k.slice(L,N);if(K=a[I])L+=I.length;else{for(K=[];L<N;)q.decode(k,L,b),P=b.value,L=b.rest,K.push(P);if(2===K.length)throw Error("Found a source, but no line and column");if(3===K.length)throw Error("Found a source and line, but no column");
|
||||||
|
a[I]=K}y.generatedColumn=g+K[0];g=y.generatedColumn;1<K.length&&(y.source=z+K[1],z+=K[1],y.originalLine=n+K[2],n=y.originalLine,y.originalLine+=1,y.originalColumn=v+K[3],v=y.originalColumn,4<K.length&&(y.name=G+K[4],G+=K[4]));w.push(y);"number"===typeof y.originalLine&&h.push(y)}r(w,f.compareByGeneratedPositionsDeflated);this.__generatedMappings=w;r(h,f.compareByOriginalPositions);this.__originalMappings=h};p.prototype._findMapping=function(k,u,d,g,n,v){if(0>=k[d])throw new TypeError("Line must be greater than or equal to 1, got "+
|
||||||
|
k[d]);if(0>k[g])throw new TypeError("Column must be greater than or equal to 0, got "+k[g]);return c.search(k,u,n,v)};p.prototype.computeColumnSpans=function(){for(var k=0;k<this._generatedMappings.length;++k){var u=this._generatedMappings[k];if(k+1<this._generatedMappings.length){var d=this._generatedMappings[k+1];if(u.generatedLine===d.generatedLine){u.lastGeneratedColumn=d.generatedColumn-1;continue}}u.lastGeneratedColumn=Infinity}};p.prototype.originalPositionFor=function(k){var u={generatedLine:f.getArg(k,
|
||||||
|
"line"),generatedColumn:f.getArg(k,"column")};k=this._findMapping(u,this._generatedMappings,"generatedLine","generatedColumn",f.compareByGeneratedPositionsDeflated,f.getArg(k,"bias",e.GREATEST_LOWER_BOUND));if(0<=k&&(k=this._generatedMappings[k],k.generatedLine===u.generatedLine)){u=f.getArg(k,"source",null);null!==u&&(u=this._sources.at(u),u=f.computeSourceURL(this.sourceRoot,u,this._sourceMapURL));var d=f.getArg(k,"name",null);null!==d&&(d=this._names.at(d));return{source:u,line:f.getArg(k,"originalLine",
|
||||||
|
null),column:f.getArg(k,"originalColumn",null),name:d}}return{source:null,line:null,column:null,name:null}};p.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(k){return null==k}):!1};p.prototype.sourceContentFor=function(k,u){if(!this.sourcesContent)return null;var d=k;null!=this.sourceRoot&&(d=f.relative(this.sourceRoot,d));if(this._sources.has(d))return this.sourcesContent[this._sources.indexOf(d)];
|
||||||
|
var g=this.sources,n;for(n=0;n<g.length;++n)if(g[n]==k)return this.sourcesContent[n];var v;if(null!=this.sourceRoot&&(v=f.urlParse(this.sourceRoot))){g=d.replace(/^file:\/\//,"");if("file"==v.scheme&&this._sources.has(g))return this.sourcesContent[this._sources.indexOf(g)];if((!v.path||"/"==v.path)&&this._sources.has("/"+d))return this.sourcesContent[this._sources.indexOf("/"+d)]}if(u)return null;throw Error('"'+d+'" is not in the SourceMap.');};p.prototype.generatedPositionFor=function(k){var u=
|
||||||
|
f.getArg(k,"source");null!=this.sourceRoot&&(u=f.relative(this.sourceRoot,u));if(!this._sources.has(u))return{line:null,column:null,lastColumn:null};u=this._sources.indexOf(u);u={source:u,originalLine:f.getArg(k,"line"),originalColumn:f.getArg(k,"column")};k=this._findMapping(u,this._originalMappings,"originalLine","originalColumn",f.compareByOriginalPositions,f.getArg(k,"bias",e.GREATEST_LOWER_BOUND));return 0<=k&&(k=this._originalMappings[k],k.source===u.source)?{line:f.getArg(k,"generatedLine",
|
||||||
|
null),column:f.getArg(k,"generatedColumn",null),lastColumn:f.getArg(k,"lastGeneratedColumn",null)}:{line:null,column:null,lastColumn:null}};A.BasicSourceMapConsumer=p;m.prototype=Object.create(e.prototype);m.prototype.constructor=e;m.prototype._version=3;Object.defineProperty(m.prototype,"sources",{get:function(){for(var k=[],u=0;u<this._sections.length;u++)for(var d=0;d<this._sections[u].consumer.sources.length;d++)k.push(this._sections[u].consumer.sources[d]);return k}});m.prototype.originalPositionFor=
|
||||||
|
function(k){var u={generatedLine:f.getArg(k,"line"),generatedColumn:f.getArg(k,"column")},d=c.search(u,this._sections,function(g,n){var v=g.generatedLine-n.generatedOffset.generatedLine;return v?v:g.generatedColumn-n.generatedOffset.generatedColumn});return(d=this._sections[d])?d.consumer.originalPositionFor({line:u.generatedLine-(d.generatedOffset.generatedLine-1),column:u.generatedColumn-(d.generatedOffset.generatedLine===u.generatedLine?d.generatedOffset.generatedColumn-1:0),bias:k.bias}):{source:null,
|
||||||
|
line:null,column:null,name:null}};m.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(k){return k.consumer.hasContentsOfAllSources()})};m.prototype.sourceContentFor=function(k,u){for(var d=0;d<this._sections.length;d++){var g=this._sections[d].consumer.sourceContentFor(k,!0);if(g)return g}if(u)return null;throw Error('"'+k+'" is not in the SourceMap.');};m.prototype.generatedPositionFor=function(k){for(var u=0;u<this._sections.length;u++){var d=this._sections[u];if(-1!==
|
||||||
|
d.consumer.sources.indexOf(f.getArg(k,"source"))){var g=d.consumer.generatedPositionFor(k);if(g)return{line:g.line+(d.generatedOffset.generatedLine-1),column:g.column+(d.generatedOffset.generatedLine===g.line?d.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}};m.prototype._parseMappings=function(k,u){this.__generatedMappings=[];this.__originalMappings=[];for(var d=0;d<this._sections.length;d++)for(var g=this._sections[d],n=g.consumer._generatedMappings,v=0;v<n.length;v++){var z=
|
||||||
|
n[v],G=g.consumer._sources.at(z.source);G=f.computeSourceURL(g.consumer.sourceRoot,G,this._sourceMapURL);this._sources.add(G);G=this._sources.indexOf(G);var D=null;z.name&&(D=g.consumer._names.at(z.name),this._names.add(D),D=this._names.indexOf(D));z={source:G,generatedLine:z.generatedLine+(g.generatedOffset.generatedLine-1),generatedColumn:z.generatedColumn+(g.generatedOffset.generatedLine===z.generatedLine?g.generatedOffset.generatedColumn-1:0),originalLine:z.originalLine,originalColumn:z.originalColumn,
|
||||||
|
name:D};this.__generatedMappings.push(z);"number"===typeof z.originalLine&&this.__originalMappings.push(z)}r(this.__generatedMappings,f.compareByGeneratedPositionsDeflated);r(this.__originalMappings,f.compareByOriginalPositions)};A.IndexedSourceMapConsumer=m},{"./array-set":10,"./base64-vlq":11,"./binary-search":13,"./quick-sort":15,"./util":19}],17:[function(C,J,A){function e(c){c||(c={});this._file=t.getArg(c,"file",null);this._sourceRoot=t.getArg(c,"sourceRoot",null);this._skipValidation=t.getArg(c,
|
||||||
|
"skipValidation",!1);this._sources=new m;this._names=new m;this._mappings=new f;this._sourcesContents=null}var p=C("./base64-vlq"),t=C("./util"),m=C("./array-set").ArraySet,f=C("./mapping-list").MappingList;e.prototype._version=3;e.fromSourceMap=function(c){var l=c.sourceRoot,q=new e({file:c.file,sourceRoot:l});c.eachMapping(function(r){var k={generated:{line:r.generatedLine,column:r.generatedColumn}};null!=r.source&&(k.source=r.source,null!=l&&(k.source=t.relative(l,k.source)),k.original={line:r.originalLine,
|
||||||
|
column:r.originalColumn},null!=r.name&&(k.name=r.name));q.addMapping(k)});c.sources.forEach(function(r){var k=r;null!==l&&(k=t.relative(l,r));q._sources.has(k)||q._sources.add(k);k=c.sourceContentFor(r);null!=k&&q.setSourceContent(r,k)});return q};e.prototype.addMapping=function(c){var l=t.getArg(c,"generated"),q=t.getArg(c,"original",null),r=t.getArg(c,"source",null);c=t.getArg(c,"name",null);this._skipValidation||this._validateMapping(l,q,r,c);null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r));
|
||||||
|
null!=c&&(c=String(c),this._names.has(c)||this._names.add(c));this._mappings.add({generatedLine:l.line,generatedColumn:l.column,originalLine:null!=q&&q.line,originalColumn:null!=q&&q.column,source:r,name:c})};e.prototype.setSourceContent=function(c,l){var q=c;null!=this._sourceRoot&&(q=t.relative(this._sourceRoot,q));null!=l?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(q)]=l):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(q)],
|
||||||
|
0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))};e.prototype.applySourceMap=function(c,l,q){var r=l;if(null==l){if(null==c.file)throw Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=c.file}var k=this._sourceRoot;null!=k&&(r=t.relative(k,r));var u=new m,d=new m;this._mappings.unsortedForEach(function(g){if(g.source===r&&null!=g.originalLine){var n=c.originalPositionFor({line:g.originalLine,
|
||||||
|
column:g.originalColumn});null!=n.source&&(g.source=n.source,null!=q&&(g.source=t.join(q,g.source)),null!=k&&(g.source=t.relative(k,g.source)),g.originalLine=n.line,g.originalColumn=n.column,null!=n.name&&(g.name=n.name))}n=g.source;null==n||u.has(n)||u.add(n);g=g.name;null==g||d.has(g)||d.add(g)},this);this._sources=u;this._names=d;c.sources.forEach(function(g){var n=c.sourceContentFor(g);null!=n&&(null!=q&&(g=t.join(q,g)),null!=k&&(g=t.relative(k,g)),this.setSourceContent(g,n))},this)};e.prototype._validateMapping=
|
||||||
|
function(c,l,q,r){if(l&&"number"!==typeof l.line&&"number"!==typeof l.column)throw Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(c&&"line"in c&&"column"in c&&0<c.line&&0<=c.column&&!l&&!q&&!r||c&&"line"in c&&"column"in c&&l&&"line"in l&&"column"in l&&0<c.line&&0<=c.column&&0<l.line&&0<=l.column&&
|
||||||
|
q))throw Error("Invalid mapping: "+JSON.stringify({generated:c,source:q,original:l,name:r}));};e.prototype._serializeMappings=function(){for(var c=0,l=1,q=0,r=0,k=0,u=0,d="",g,n,v,z=this._mappings.toArray(),G=0,D=z.length;G<D;G++){n=z[G];g="";if(n.generatedLine!==l)for(c=0;n.generatedLine!==l;)g+=";",l++;else if(0<G){if(!t.compareByGeneratedPositionsInflated(n,z[G-1]))continue;g+=","}g+=p.encode(n.generatedColumn-c);c=n.generatedColumn;null!=n.source&&(v=this._sources.indexOf(n.source),g+=p.encode(v-
|
||||||
|
u),u=v,g+=p.encode(n.originalLine-1-r),r=n.originalLine-1,g+=p.encode(n.originalColumn-q),q=n.originalColumn,null!=n.name&&(n=this._names.indexOf(n.name),g+=p.encode(n-k),k=n));d+=g}return d};e.prototype._generateSourcesContent=function(c,l){return c.map(function(q){if(!this._sourcesContents)return null;null!=l&&(q=t.relative(l,q));q=t.toSetString(q);return Object.prototype.hasOwnProperty.call(this._sourcesContents,q)?this._sourcesContents[q]:null},this)};e.prototype.toJSON=function(){var c={version:this._version,
|
||||||
|
sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};null!=this._file&&(c.file=this._file);null!=this._sourceRoot&&(c.sourceRoot=this._sourceRoot);this._sourcesContents&&(c.sourcesContent=this._generateSourcesContent(c.sources,c.sourceRoot));return c};e.prototype.toString=function(){return JSON.stringify(this.toJSON())};A.SourceMapGenerator=e},{"./array-set":10,"./base64-vlq":11,"./mapping-list":14,"./util":19}],18:[function(C,J,A){function e(f,c,l,q,r){this.children=
|
||||||
|
[];this.sourceContents={};this.line=null==f?null:f;this.column=null==c?null:c;this.source=null==l?null:l;this.name=null==r?null:r;this.$$$isSourceNode$$$=!0;null!=q&&this.add(q)}var p=C("./source-map-generator").SourceMapGenerator,t=C("./util"),m=/(\r?\n)/;e.fromStringWithSourceMap=function(f,c,l){function q(z,G){if(null===z||void 0===z.source)r.add(G);else{var D=l?t.join(l,z.source):z.source;r.add(new e(z.originalLine,z.originalColumn,D,G,z.name))}}var r=new e,k=f.split(m),u=0,d=function(){var z=
|
||||||
|
u<k.length?k[u++]:void 0,G=(u<k.length?k[u++]:void 0)||"";return z+G},g=1,n=0,v=null;c.eachMapping(function(z){if(null!==v)if(g<z.generatedLine)q(v,d()),g++,n=0;else{var G=k[u]||"",D=G.substr(0,z.generatedColumn-n);k[u]=G.substr(z.generatedColumn-n);n=z.generatedColumn;q(v,D);v=z;return}for(;g<z.generatedLine;)r.add(d()),g++;n<z.generatedColumn&&(G=k[u]||"",r.add(G.substr(0,z.generatedColumn)),k[u]=G.substr(z.generatedColumn),n=z.generatedColumn);v=z},this);u<k.length&&(v&&q(v,d()),r.add(k.splice(u).join("")));
|
||||||
|
c.sources.forEach(function(z){var G=c.sourceContentFor(z);null!=G&&(null!=l&&(z=t.join(l,z)),r.setSourceContent(z,G))});return r};e.prototype.add=function(f){if(Array.isArray(f))f.forEach(function(c){this.add(c)},this);else if(f.$$$isSourceNode$$$||"string"===typeof f)f&&this.children.push(f);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+f);return this};e.prototype.prepend=function(f){if(Array.isArray(f))for(var c=f.length-1;0<=c;c--)this.prepend(f[c]);
|
||||||
|
else if(f.$$$isSourceNode$$$||"string"===typeof f)this.children.unshift(f);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+f);return this};e.prototype.walk=function(f){for(var c,l=0,q=this.children.length;l<q;l++)c=this.children[l],c.$$$isSourceNode$$$?c.walk(f):""!==c&&f(c,{source:this.source,line:this.line,column:this.column,name:this.name})};e.prototype.join=function(f){var c,l=this.children.length;if(0<l){var q=[];for(c=0;c<l-1;c++)q.push(this.children[c]),
|
||||||
|
q.push(f);q.push(this.children[c]);this.children=q}return this};e.prototype.replaceRight=function(f,c){var l=this.children[this.children.length-1];l.$$$isSourceNode$$$?l.replaceRight(f,c):"string"===typeof l?this.children[this.children.length-1]=l.replace(f,c):this.children.push("".replace(f,c));return this};e.prototype.setSourceContent=function(f,c){this.sourceContents[t.toSetString(f)]=c};e.prototype.walkSourceContents=function(f){for(var c=0,l=this.children.length;c<l;c++)this.children[c].$$$isSourceNode$$$&&
|
||||||
|
this.children[c].walkSourceContents(f);var q=Object.keys(this.sourceContents);c=0;for(l=q.length;c<l;c++)f(t.fromSetString(q[c]),this.sourceContents[q[c]])};e.prototype.toString=function(){var f="";this.walk(function(c){f+=c});return f};e.prototype.toStringWithSourceMap=function(f){var c="",l=1,q=0,r=new p(f),k=!1,u=null,d=null,g=null,n=null;this.walk(function(v,z){c+=v;null!==z.source&&null!==z.line&&null!==z.column?(u===z.source&&d===z.line&&g===z.column&&n===z.name||r.addMapping({source:z.source,
|
||||||
|
original:{line:z.line,column:z.column},generated:{line:l,column:q},name:z.name}),u=z.source,d=z.line,g=z.column,n=z.name,k=!0):k&&(r.addMapping({generated:{line:l,column:q}}),u=null,k=!1);for(var G=0,D=v.length;G<D;G++)10===v.charCodeAt(G)?(l++,q=0,G+1===D?(u=null,k=!1):k&&r.addMapping({source:z.source,original:{line:z.line,column:z.column},generated:{line:l,column:q},name:z.name})):q++});this.walkSourceContents(function(v,z){r.setSourceContent(v,z)});return{code:c,map:r}};A.SourceNode=e},{"./source-map-generator":17,
|
||||||
|
"./util":19}],19:[function(C,J,A){function e(d){return(d=d.match(k))?{scheme:d[1],auth:d[2],host:d[3],port:d[4],path:d[5]}:null}function p(d){var g="";d.scheme&&(g+=d.scheme+":");g+="//";d.auth&&(g+=d.auth+"@");d.host&&(g+=d.host);d.port&&(g+=":"+d.port);d.path&&(g+=d.path);return g}function t(d){var g=d,n=e(d);if(n){if(!n.path)return d;g=n.path}d=A.isAbsolute(g);g=g.split(/\/+/);for(var v,z=0,G=g.length-1;0<=G;G--)v=g[G],"."===v?g.splice(G,1):".."===v?z++:0<z&&(""===v?(g.splice(G+1,z),z=0):(g.splice(G,
|
||||||
|
2),z--));g=g.join("/");""===g&&(g=d?"/":".");return n?(n.path=g,p(n)):g}function m(d,g){""===d&&(d=".");""===g&&(g=".");var n=e(g),v=e(d);v&&(d=v.path||"/");if(n&&!n.scheme)return v&&(n.scheme=v.scheme),p(n);if(n||g.match(u))return g;if(v&&!v.host&&!v.path)return v.host=g,p(v);n="/"===g.charAt(0)?g:t(d.replace(/\/+$/,"")+"/"+g);return v?(v.path=n,p(v)):n}function f(d){return d}function c(d){return q(d)?"$"+d:d}function l(d){return q(d)?d.slice(1):d}function q(d){if(!d)return!1;var g=d.length;if(9>
|
||||||
|
g||95!==d.charCodeAt(g-1)||95!==d.charCodeAt(g-2)||111!==d.charCodeAt(g-3)||116!==d.charCodeAt(g-4)||111!==d.charCodeAt(g-5)||114!==d.charCodeAt(g-6)||112!==d.charCodeAt(g-7)||95!==d.charCodeAt(g-8)||95!==d.charCodeAt(g-9))return!1;for(g-=10;0<=g;g--)if(36!==d.charCodeAt(g))return!1;return!0}function r(d,g){return d===g?0:null===d?1:null===g?-1:d>g?1:-1}A.getArg=function(d,g,n){if(g in d)return d[g];if(3===arguments.length)return n;throw Error('"'+g+'" is a required argument.');};var k=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,
|
||||||
|
u=/^data:.+,.+$/;A.urlParse=e;A.urlGenerate=p;A.normalize=t;A.join=m;A.isAbsolute=function(d){return"/"===d.charAt(0)||k.test(d)};A.relative=function(d,g){""===d&&(d=".");d=d.replace(/\/$/,"");for(var n=0;0!==g.indexOf(d+"/");){var v=d.lastIndexOf("/");if(0>v)return g;d=d.slice(0,v);if(d.match(/^([^\/]+:\/)?\/*$/))return g;++n}return Array(n+1).join("../")+g.substr(d.length+1)};C=!("__proto__"in Object.create(null));A.toSetString=C?f:c;A.fromSetString=C?f:l;A.compareByOriginalPositions=function(d,
|
||||||
|
g,n){var v=r(d.source,g.source);if(0!==v)return v;v=d.originalLine-g.originalLine;if(0!==v)return v;v=d.originalColumn-g.originalColumn;if(0!==v||n)return v;v=d.generatedColumn-g.generatedColumn;if(0!==v)return v;v=d.generatedLine-g.generatedLine;return 0!==v?v:r(d.name,g.name)};A.compareByGeneratedPositionsDeflated=function(d,g,n){var v=d.generatedLine-g.generatedLine;if(0!==v)return v;v=d.generatedColumn-g.generatedColumn;if(0!==v||n)return v;v=r(d.source,g.source);if(0!==v)return v;v=d.originalLine-
|
||||||
|
g.originalLine;if(0!==v)return v;v=d.originalColumn-g.originalColumn;return 0!==v?v:r(d.name,g.name)};A.compareByGeneratedPositionsInflated=function(d,g){var n=d.generatedLine-g.generatedLine;if(0!==n)return n;n=d.generatedColumn-g.generatedColumn;if(0!==n)return n;n=r(d.source,g.source);if(0!==n)return n;n=d.originalLine-g.originalLine;if(0!==n)return n;n=d.originalColumn-g.originalColumn;return 0!==n?n:r(d.name,g.name)};A.parseSourceMapInput=function(d){return JSON.parse(d.replace(/^\)]}'[^\n]*\n/,
|
||||||
|
""))};A.computeSourceURL=function(d,g,n){g=g||"";d&&("/"!==d[d.length-1]&&"/"!==g[0]&&(d+="/"),g=d+g);if(n){d=e(n);if(!d)throw Error("sourceMapURL could not be parsed");d.path&&(n=d.path.lastIndexOf("/"),0<=n&&(d.path=d.path.substring(0,n+1)));g=m(p(d),g)}return t(g)}},{}],20:[function(C,J,A){A.SourceMapGenerator=C("./lib/source-map-generator").SourceMapGenerator;A.SourceMapConsumer=C("./lib/source-map-consumer").SourceMapConsumer;A.SourceNode=C("./lib/source-node").SourceNode},{"./lib/source-map-consumer":16,
|
||||||
|
"./lib/source-map-generator":17,"./lib/source-node":18}],21:[function(C,J,A){(function(e){function p(){return"browser"===a?!0:"node"===a?!1:"undefined"!==typeof window&&"function"===typeof XMLHttpRequest&&!(window.require&&window.module&&window.process&&"renderer"===window.process.type)}function t(x){return function(B){for(var F=0;F<x.length;F++){var E=x[F](B);if(E)return E}return null}}function m(x,B){if(!x)return B;var F=n.dirname(x),E=/^\w+:\/\/[^\/]*/.exec(F);E=E?E[0]:"";var H=F.slice(E.length);
|
||||||
|
return E&&/^\/\w:/.test(H)?(E+="/",E+n.resolve(F.slice(E.length),B).replace(/\\/g,"/")):E+n.resolve(F.slice(E.length),B)}function f(x){var B=h[x.source];if(!B){var F=N(x.source);F?(B=h[x.source]={url:F.url,map:new g(F.map)},B.map.sourcesContent&&B.map.sources.forEach(function(E,H){var M=B.map.sourcesContent[H];if(M){var S=m(B.url,E);b[S]=M}})):B=h[x.source]={url:null,map:null}}return B&&B.map&&"function"===typeof B.map.originalPositionFor&&(F=B.map.originalPositionFor(x),null!==F.source)?(F.source=
|
||||||
|
m(B.url,F.source),F):x}function c(x){var B=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(x);return B?(x=f({source:B[2],line:+B[3],column:B[4]-1}),"eval at "+B[1]+" ("+x.source+":"+x.line+":"+(x.column+1)+")"):(B=/^eval at ([^(]+) \((.+)\)$/.exec(x))?"eval at "+B[1]+" ("+c(B[2])+")":x}function l(){var x="";if(this.isNative())x="native";else{var B=this.getScriptNameOrSourceURL();!B&&this.isEval()&&(x=this.getEvalOrigin(),x+=", ");x=B?x+B:x+"<anonymous>";B=this.getLineNumber();null!=B&&(x+=":"+B,(B=
|
||||||
|
this.getColumnNumber())&&(x+=":"+B))}B="";var F=this.getFunctionName(),E=!0,H=this.isConstructor();if(this.isToplevel()||H)H?B+="new "+(F||"<anonymous>"):F?B+=F:(B+=x,E=!1);else{H=this.getTypeName();"[object Object]"===H&&(H="null");var M=this.getMethodName();F?(H&&0!=F.indexOf(H)&&(B+=H+"."),B+=F,M&&F.indexOf("."+M)!=F.length-M.length-1&&(B+=" [as "+M+"]")):B+=H+"."+(M||"<anonymous>")}E&&(B+=" ("+x+")");return B}function q(x){var B={};Object.getOwnPropertyNames(Object.getPrototypeOf(x)).forEach(function(F){B[F]=
|
||||||
|
/^(?:is|get)/.test(F)?function(){return x[F].call(x)}:x[F]});B.toString=l;return B}function r(x,B){void 0===B&&(B={nextPosition:null,curPosition:null});if(x.isNative())return B.curPosition=null,x;var F=x.getFileName()||x.getScriptNameOrSourceURL();if(F){var E=x.getLineNumber(),H=x.getColumnNumber()-1,M=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/,S=M.test;var V="object"===typeof e&&null!==e?e.version:"";M=S.call(M,V)?0:62;1===E&&H>M&&!p()&&!x.isEval()&&(H-=M);var O=
|
||||||
|
f({source:F,line:E,column:H});B.curPosition=O;x=q(x);var T=x.getFunctionName;x.getFunctionName=function(){return null==B.nextPosition?T():B.nextPosition.name||T()};x.getFileName=function(){return O.source};x.getLineNumber=function(){return O.line};x.getColumnNumber=function(){return O.column+1};x.getScriptNameOrSourceURL=function(){return O.source};return x}var Q=x.isEval()&&x.getEvalOrigin();Q&&(Q=c(Q),x=q(x),x.getEvalOrigin=function(){return Q});return x}function k(x,B){L&&(b={},h={});for(var F=
|
||||||
|
(x.name||"Error")+": "+(x.message||""),E={nextPosition:null,curPosition:null},H=[],M=B.length-1;0<=M;M--)H.push("\n at "+r(B[M],E)),E.nextPosition=E.curPosition;E.curPosition=E.nextPosition=null;return F+H.reverse().join("")}function u(x){var B=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(x.stack);if(B){x=B[1];var F=+B[2];B=+B[3];var E=b[x];if(!E&&v&&v.existsSync(x))try{E=v.readFileSync(x,"utf8")}catch(H){E=""}if(E&&(E=E.split(/(?:\r\n|\r|\n)/)[F-1]))return x+":"+F+"\n"+E+"\n"+Array(B).join(" ")+
|
||||||
|
"^"}return null}function d(){var x=e.emit;e.emit=function(B){if("uncaughtException"===B){var F=arguments[1]&&arguments[1].stack,E=0<this.listeners(B).length;if(F&&!E){F=arguments[1];E=u(F);var H="object"===typeof e&&null!==e?e.stderr:void 0;H&&H._handle&&H._handle.setBlocking&&H._handle.setBlocking(!0);E&&(console.error(),console.error(E));console.error(F.stack);"object"===typeof e&&null!==e&&"function"===typeof e.exit&&e.exit(1);return}}return x.apply(this,arguments)}}var g=C("source-map").SourceMapConsumer,
|
||||||
|
n=C("path");try{var v=C("fs");v.existsSync&&v.readFileSync||(v=null)}catch(x){}var z=C("buffer-from"),G=!1,D=!1,L=!1,a="auto",b={},h={},w=/^data:application\/json[^,]+base64,/,y=[],I=[],K=t(y);y.push(function(x){x=x.trim();/^file:/.test(x)&&(x=x.replace(/file:\/\/\/(\w:)?/,function(E,H){return H?"":"/"}));if(x in b)return b[x];var B="";try{if(v)v.existsSync(x)&&(B=v.readFileSync(x,"utf8"));else{var F=new XMLHttpRequest;F.open("GET",x,!1);F.send(null);4===F.readyState&&200===F.status&&(B=F.responseText)}}catch(E){}return b[x]=
|
||||||
|
B});var N=t(I);I.push(function(x){a:{if(p())try{var B=new XMLHttpRequest;B.open("GET",x,!1);B.send(null);var F=B.getResponseHeader("SourceMap")||B.getResponseHeader("X-SourceMap");if(F){var E=F;break a}}catch(M){}E=K(x);B=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg;for(var H;F=B.exec(E);)H=F;E=H?H[1]:null}if(!E)return null;w.test(E)?(H=E.slice(E.indexOf(",")+1),H=z(H,"base64").toString(),E=x):(E=m(x,E),H=K(E));return H?{url:E,
|
||||||
|
map:H}:null});var P=y.slice(0),W=I.slice(0);A.wrapCallSite=r;A.getErrorSource=u;A.mapSourcePosition=f;A.retrieveSourceMap=N;A.install=function(x){x=x||{};if(x.environment&&(a=x.environment,-1===["node","browser","auto"].indexOf(a)))throw Error("environment "+a+" was unknown. Available options are {auto, browser, node}");x.retrieveFile&&(x.overrideRetrieveFile&&(y.length=0),y.unshift(x.retrieveFile));x.retrieveSourceMap&&(x.overrideRetrieveSourceMap&&(I.length=0),I.unshift(x.retrieveSourceMap));if(x.hookRequire&&
|
||||||
|
!p()){var B=J.require("module"),F=B.prototype._compile;F.__sourceMapSupport||(B.prototype._compile=function(E,H){b[H]=E;h[H]=void 0;return F.call(this,E,H)},B.prototype._compile.__sourceMapSupport=!0)}L||(L="emptyCacheBetweenOperations"in x?x.emptyCacheBetweenOperations:!1);G||(G=!0,Error.prepareStackTrace=k);if(!D){x="handleUncaughtExceptions"in x?x.handleUncaughtExceptions:!0;try{!1===J.require("worker_threads").isMainThread&&(x=!1)}catch(E){}x&&"object"===typeof e&&null!==e&&"function"===typeof e.on&&
|
||||||
|
(D=!0,d())}};A.resetRetrieveHandlers=function(){y.length=0;I.length=0;y=P.slice(0);I=W.slice(0);N=t(I);K=t(y)}}).call(this,C("g5I+bs"))},{"buffer-from":4,fs:3,"g5I+bs":9,path:8,"source-map":20}]},{},[1]);return R});
|
||||||
50
node_modules/@cspotcode/source-map-support/package.json
generated
vendored
Normal file
50
node_modules/@cspotcode/source-map-support/package.json
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
{
|
||||||
|
"name": "@cspotcode/source-map-support",
|
||||||
|
"description": "Fixes stack traces for files with source maps",
|
||||||
|
"version": "0.8.1",
|
||||||
|
"main": "./source-map-support.js",
|
||||||
|
"types": "./source-map-support.d.ts",
|
||||||
|
"scripts": {
|
||||||
|
"build": "node build.js",
|
||||||
|
"serve-tests": "http-server -p 1336",
|
||||||
|
"test": "mocha"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"/register.d.ts",
|
||||||
|
"/register.js",
|
||||||
|
"/register-hook-require.d.ts",
|
||||||
|
"/register-hook-require.js",
|
||||||
|
"/source-map-support.d.ts",
|
||||||
|
"/source-map-support.js",
|
||||||
|
"/browser-source-map-support.js"
|
||||||
|
],
|
||||||
|
"dependencies": {
|
||||||
|
"@jridgewell/trace-mapping": "0.3.9"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@types/lodash": "^4.14.182",
|
||||||
|
"browserify": "^4.2.3",
|
||||||
|
"coffeescript": "^1.12.7",
|
||||||
|
"http-server": "^0.11.1",
|
||||||
|
"lodash": "^4.17.21",
|
||||||
|
"mocha": "^3.5.3",
|
||||||
|
"semver": "^7.3.7",
|
||||||
|
"source-map": "0.6.1",
|
||||||
|
"webpack": "^1.15.0"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/cspotcode/node-source-map-support"
|
||||||
|
},
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/cspotcode/node-source-map-support/issues"
|
||||||
|
},
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=12"
|
||||||
|
},
|
||||||
|
"volta": {
|
||||||
|
"node": "16.11.0",
|
||||||
|
"npm": "7.24.2"
|
||||||
|
}
|
||||||
|
}
|
||||||
7
node_modules/@cspotcode/source-map-support/register-hook-require.d.ts
generated
vendored
Executable file
7
node_modules/@cspotcode/source-map-support/register-hook-require.d.ts
generated
vendored
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
// tslint:disable:no-useless-files
|
||||||
|
|
||||||
|
// For following usage:
|
||||||
|
// import '@cspotcode/source-map-support/register-hook-require'
|
||||||
|
// Instead of:
|
||||||
|
// import sourceMapSupport from '@cspotcode/source-map-support'
|
||||||
|
// sourceMapSupport.install({hookRequire: true})
|
||||||
3
node_modules/@cspotcode/source-map-support/register-hook-require.js
generated
vendored
Normal file
3
node_modules/@cspotcode/source-map-support/register-hook-require.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
require('./').install({
|
||||||
|
hookRequire: true
|
||||||
|
});
|
||||||
7
node_modules/@cspotcode/source-map-support/register.d.ts
generated
vendored
Executable file
7
node_modules/@cspotcode/source-map-support/register.d.ts
generated
vendored
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
// tslint:disable:no-useless-files
|
||||||
|
|
||||||
|
// For following usage:
|
||||||
|
// import '@cspotcode/source-map-support/register'
|
||||||
|
// Instead of:
|
||||||
|
// import sourceMapSupport from '@cspotcode/source-map-support'
|
||||||
|
// sourceMapSupport.install()
|
||||||
1
node_modules/@cspotcode/source-map-support/register.js
generated
vendored
Normal file
1
node_modules/@cspotcode/source-map-support/register.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
require('./').install();
|
||||||
76
node_modules/@cspotcode/source-map-support/source-map-support.d.ts
generated
vendored
Executable file
76
node_modules/@cspotcode/source-map-support/source-map-support.d.ts
generated
vendored
Executable file
@@ -0,0 +1,76 @@
|
|||||||
|
// Type definitions for source-map-support 0.5
|
||||||
|
// Project: https://github.com/evanw/node-source-map-support
|
||||||
|
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
|
||||||
|
// Jason Cheatham <https://github.com/jason0x43>
|
||||||
|
// Alcedo Nathaniel De Guzman Jr <https://github.com/natealcedo>
|
||||||
|
// Griffin Yourick <https://github.com/tough-griff>
|
||||||
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||||
|
|
||||||
|
export interface RawSourceMap {
|
||||||
|
version: 3;
|
||||||
|
sources: string[];
|
||||||
|
names: string[];
|
||||||
|
sourceRoot?: string;
|
||||||
|
sourcesContent?: string[];
|
||||||
|
mappings: string;
|
||||||
|
file: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Output of retrieveSourceMap().
|
||||||
|
* From source-map-support:
|
||||||
|
* The map field may be either a string or the parsed JSON object (i.e.,
|
||||||
|
* it must be a valid argument to the SourceMapConsumer constructor).
|
||||||
|
*/
|
||||||
|
export interface UrlAndMap {
|
||||||
|
url: string;
|
||||||
|
map: string | RawSourceMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Options to install().
|
||||||
|
*/
|
||||||
|
export interface Options {
|
||||||
|
handleUncaughtExceptions?: boolean | undefined;
|
||||||
|
hookRequire?: boolean | undefined;
|
||||||
|
emptyCacheBetweenOperations?: boolean | undefined;
|
||||||
|
environment?: 'auto' | 'browser' | 'node' | undefined;
|
||||||
|
overrideRetrieveFile?: boolean | undefined;
|
||||||
|
overrideRetrieveSourceMap?: boolean | undefined;
|
||||||
|
retrieveFile?(path: string): string;
|
||||||
|
retrieveSourceMap?(source: string): UrlAndMap | null;
|
||||||
|
/**
|
||||||
|
* Set false to disable redirection of require / import `source-map-support` to `@cspotcode/source-map-support`
|
||||||
|
*/
|
||||||
|
redirectConflictingLibrary?: boolean;
|
||||||
|
/**
|
||||||
|
* Callback will be called every time we redirect due to `redirectConflictingLibrary`
|
||||||
|
* This allows consumers to log helpful warnings if they choose.
|
||||||
|
* @param parent NodeJS.Module which made the require() or require.resolve() call
|
||||||
|
* @param options options object internally passed to node's `_resolveFilename` hook
|
||||||
|
*/
|
||||||
|
onConflictingLibraryRedirect?: (request: string, parent: any, isMain: boolean, options: any, redirectedRequest: string) => void;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Position {
|
||||||
|
source: string;
|
||||||
|
line: number;
|
||||||
|
column: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function wrapCallSite(frame: any /* StackFrame */): any /* StackFrame */;
|
||||||
|
export function getErrorSource(error: Error): string | null;
|
||||||
|
export function mapSourcePosition(position: Position): Position;
|
||||||
|
export function retrieveSourceMap(source: string): UrlAndMap | null;
|
||||||
|
export function resetRetrieveHandlers(): void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Install SourceMap support.
|
||||||
|
* @param options Can be used to e.g. disable uncaughtException handler.
|
||||||
|
*/
|
||||||
|
export function install(options?: Options): void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Uninstall SourceMap support.
|
||||||
|
*/
|
||||||
|
export function uninstall(): void;
|
||||||
938
node_modules/@cspotcode/source-map-support/source-map-support.js
generated
vendored
Normal file
938
node_modules/@cspotcode/source-map-support/source-map-support.js
generated
vendored
Normal file
@@ -0,0 +1,938 @@
|
|||||||
|
const { TraceMap, originalPositionFor, AnyMap } = require('@jridgewell/trace-mapping');
|
||||||
|
var path = require('path');
|
||||||
|
const { fileURLToPath, pathToFileURL } = require('url');
|
||||||
|
var util = require('util');
|
||||||
|
|
||||||
|
var fs;
|
||||||
|
try {
|
||||||
|
fs = require('fs');
|
||||||
|
if (!fs.existsSync || !fs.readFileSync) {
|
||||||
|
// fs doesn't have all methods we need
|
||||||
|
fs = null;
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
/* nop */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Requires a module which is protected against bundler minification.
|
||||||
|
*
|
||||||
|
* @param {NodeModule} mod
|
||||||
|
* @param {string} request
|
||||||
|
*/
|
||||||
|
function dynamicRequire(mod, request) {
|
||||||
|
return mod.require(request);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @typedef {{
|
||||||
|
* enabled: boolean;
|
||||||
|
* originalValue: any;
|
||||||
|
* installedValue: any;
|
||||||
|
* }} HookState
|
||||||
|
* Used for installing and uninstalling hooks
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Increment this if the format of sharedData changes in a breaking way.
|
||||||
|
var sharedDataVersion = 1;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @template T
|
||||||
|
* @param {T} defaults
|
||||||
|
* @returns {T}
|
||||||
|
*/
|
||||||
|
function initializeSharedData(defaults) {
|
||||||
|
var sharedDataKey = 'source-map-support/sharedData';
|
||||||
|
if (typeof Symbol !== 'undefined') {
|
||||||
|
sharedDataKey = Symbol.for(sharedDataKey);
|
||||||
|
}
|
||||||
|
var sharedData = this[sharedDataKey];
|
||||||
|
if (!sharedData) {
|
||||||
|
sharedData = { version: sharedDataVersion };
|
||||||
|
if (Object.defineProperty) {
|
||||||
|
Object.defineProperty(this, sharedDataKey, { value: sharedData });
|
||||||
|
} else {
|
||||||
|
this[sharedDataKey] = sharedData;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (sharedDataVersion !== sharedData.version) {
|
||||||
|
throw new Error("Multiple incompatible instances of source-map-support were loaded");
|
||||||
|
}
|
||||||
|
for (var key in defaults) {
|
||||||
|
if (!(key in sharedData)) {
|
||||||
|
sharedData[key] = defaults[key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return sharedData;
|
||||||
|
}
|
||||||
|
|
||||||
|
// If multiple instances of source-map-support are loaded into the same
|
||||||
|
// context, they shouldn't overwrite each other. By storing handlers, caches,
|
||||||
|
// and other state on a shared object, different instances of
|
||||||
|
// source-map-support can work together in a limited way. This does require
|
||||||
|
// that future versions of source-map-support continue to support the fields on
|
||||||
|
// this object. If this internal contract ever needs to be broken, increment
|
||||||
|
// sharedDataVersion. (This version number is not the same as any of the
|
||||||
|
// package's version numbers, which should reflect the *external* API of
|
||||||
|
// source-map-support.)
|
||||||
|
var sharedData = initializeSharedData({
|
||||||
|
|
||||||
|
// Only install once if called multiple times
|
||||||
|
// Remember how the environment looked before installation so we can restore if able
|
||||||
|
/** @type {HookState} */
|
||||||
|
errorPrepareStackTraceHook: undefined,
|
||||||
|
/** @type {HookState} */
|
||||||
|
processEmitHook: undefined,
|
||||||
|
/** @type {HookState} */
|
||||||
|
moduleResolveFilenameHook: undefined,
|
||||||
|
|
||||||
|
/** @type {Array<(request: string, parent: any, isMain: boolean, options: any, redirectedRequest: string) => void>} */
|
||||||
|
onConflictingLibraryRedirectArr: [],
|
||||||
|
|
||||||
|
// If true, the caches are reset before a stack trace formatting operation
|
||||||
|
emptyCacheBetweenOperations: false,
|
||||||
|
|
||||||
|
// Maps a file path to a string containing the file contents
|
||||||
|
fileContentsCache: Object.create(null),
|
||||||
|
|
||||||
|
// Maps a file path to a source map for that file
|
||||||
|
/** @type {Record<string, {url: string, map: TraceMap}} */
|
||||||
|
sourceMapCache: Object.create(null),
|
||||||
|
|
||||||
|
// Priority list of retrieve handlers
|
||||||
|
retrieveFileHandlers: [],
|
||||||
|
retrieveMapHandlers: [],
|
||||||
|
|
||||||
|
// Priority list of internally-implemented handlers.
|
||||||
|
// When resetting state, we must keep these.
|
||||||
|
internalRetrieveFileHandlers: [],
|
||||||
|
internalRetrieveMapHandlers: [],
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
// Supports {browser, node, auto}
|
||||||
|
var environment = "auto";
|
||||||
|
|
||||||
|
// Regex for detecting source maps
|
||||||
|
var reSourceMap = /^data:application\/json[^,]+base64,/;
|
||||||
|
|
||||||
|
function isInBrowser() {
|
||||||
|
if (environment === "browser")
|
||||||
|
return true;
|
||||||
|
if (environment === "node")
|
||||||
|
return false;
|
||||||
|
return ((typeof window !== 'undefined') && (typeof XMLHttpRequest === 'function') && !(window.require && window.module && window.process && window.process.type === "renderer"));
|
||||||
|
}
|
||||||
|
|
||||||
|
function hasGlobalProcessEventEmitter() {
|
||||||
|
return ((typeof process === 'object') && (process !== null) && (typeof process.on === 'function'));
|
||||||
|
}
|
||||||
|
|
||||||
|
function tryFileURLToPath(v) {
|
||||||
|
if(isFileUrl(v)) {
|
||||||
|
return fileURLToPath(v);
|
||||||
|
}
|
||||||
|
return v;
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO un-copy these from resolve-uri; see if they can be exported from that lib
|
||||||
|
function isFileUrl(input) {
|
||||||
|
return input.startsWith('file:');
|
||||||
|
}
|
||||||
|
function isAbsoluteUrl(input) {
|
||||||
|
return schemeRegex.test(input);
|
||||||
|
}
|
||||||
|
// Matches the scheme of a URL, eg "http://"
|
||||||
|
const schemeRegex = /^[\w+.-]+:\/\//;
|
||||||
|
function isSchemeRelativeUrl(input) {
|
||||||
|
return input.startsWith('//');
|
||||||
|
}
|
||||||
|
|
||||||
|
// #region Caches
|
||||||
|
/** @param {string} pathOrFileUrl */
|
||||||
|
function getCacheKey(pathOrFileUrl) {
|
||||||
|
if(pathOrFileUrl.startsWith('node:')) return pathOrFileUrl;
|
||||||
|
if(isFileUrl(pathOrFileUrl)) {
|
||||||
|
// Must normalize spaces to %20, stuff like that
|
||||||
|
return new URL(pathOrFileUrl).toString();
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
return pathToFileURL(pathOrFileUrl).toString();
|
||||||
|
} catch {
|
||||||
|
return pathOrFileUrl;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getFileContentsCache(key) {
|
||||||
|
return sharedData.fileContentsCache[getCacheKey(key)];
|
||||||
|
}
|
||||||
|
function hasFileContentsCacheFromKey(key) {
|
||||||
|
return Object.prototype.hasOwnProperty.call(sharedData.fileContentsCache, key);
|
||||||
|
}
|
||||||
|
function getFileContentsCacheFromKey(key) {
|
||||||
|
return sharedData.fileContentsCache[key];
|
||||||
|
}
|
||||||
|
function setFileContentsCache(key, value) {
|
||||||
|
return sharedData.fileContentsCache[getCacheKey(key)] = value;
|
||||||
|
}
|
||||||
|
function getSourceMapCache(key) {
|
||||||
|
return sharedData.sourceMapCache[getCacheKey(key)];
|
||||||
|
}
|
||||||
|
function setSourceMapCache(key, value) {
|
||||||
|
return sharedData.sourceMapCache[getCacheKey(key)] = value;
|
||||||
|
}
|
||||||
|
function clearCaches() {
|
||||||
|
sharedData.fileContentsCache = Object.create(null);
|
||||||
|
sharedData.sourceMapCache = Object.create(null);
|
||||||
|
}
|
||||||
|
// #endregion Caches
|
||||||
|
|
||||||
|
function handlerExec(list, internalList) {
|
||||||
|
return function(arg) {
|
||||||
|
for (var i = 0; i < list.length; i++) {
|
||||||
|
var ret = list[i](arg);
|
||||||
|
if (ret) {
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (var i = 0; i < internalList.length; i++) {
|
||||||
|
var ret = internalList[i](arg);
|
||||||
|
if (ret) {
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
var retrieveFile = handlerExec(sharedData.retrieveFileHandlers, sharedData.internalRetrieveFileHandlers);
|
||||||
|
|
||||||
|
sharedData.internalRetrieveFileHandlers.push(function(path) {
|
||||||
|
// Trim the path to make sure there is no extra whitespace.
|
||||||
|
path = path.trim();
|
||||||
|
if (/^file:/.test(path)) {
|
||||||
|
// existsSync/readFileSync can't handle file protocol, but once stripped, it works
|
||||||
|
path = path.replace(/file:\/\/\/(\w:)?/, function(protocol, drive) {
|
||||||
|
return drive ?
|
||||||
|
'' : // file:///C:/dir/file -> C:/dir/file
|
||||||
|
'/'; // file:///root-dir/file -> /root-dir/file
|
||||||
|
});
|
||||||
|
}
|
||||||
|
const key = getCacheKey(path);
|
||||||
|
if(hasFileContentsCacheFromKey(key)) {
|
||||||
|
return getFileContentsCacheFromKey(key);
|
||||||
|
}
|
||||||
|
|
||||||
|
var contents = '';
|
||||||
|
try {
|
||||||
|
if (!fs) {
|
||||||
|
// Use SJAX if we are in the browser
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
xhr.open('GET', path, /** async */ false);
|
||||||
|
xhr.send(null);
|
||||||
|
if (xhr.readyState === 4 && xhr.status === 200) {
|
||||||
|
contents = xhr.responseText;
|
||||||
|
}
|
||||||
|
} else if (fs.existsSync(path)) {
|
||||||
|
// Otherwise, use the filesystem
|
||||||
|
contents = fs.readFileSync(path, 'utf8');
|
||||||
|
}
|
||||||
|
} catch (er) {
|
||||||
|
/* ignore any errors */
|
||||||
|
}
|
||||||
|
|
||||||
|
return setFileContentsCache(path, contents);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Support URLs relative to a directory, but be careful about a protocol prefix
|
||||||
|
// in case we are in the browser (i.e. directories may start with "http://" or "file:///")
|
||||||
|
function supportRelativeURL(file, url) {
|
||||||
|
if(!file) return url;
|
||||||
|
// given that this happens within error formatting codepath, probably best to
|
||||||
|
// fallback instead of throwing if anything goes wrong
|
||||||
|
try {
|
||||||
|
// if should output a URL
|
||||||
|
if(isAbsoluteUrl(file) || isSchemeRelativeUrl(file)) {
|
||||||
|
if(isAbsoluteUrl(url) || isSchemeRelativeUrl(url)) {
|
||||||
|
return new URL(url, file).toString();
|
||||||
|
}
|
||||||
|
if(path.isAbsolute(url)) {
|
||||||
|
return new URL(pathToFileURL(url), file).toString();
|
||||||
|
}
|
||||||
|
// url is relative path or URL
|
||||||
|
return new URL(url.replace(/\\/g, '/'), file).toString();
|
||||||
|
}
|
||||||
|
// if should output a path (unless URL is something like https://)
|
||||||
|
if(path.isAbsolute(file)) {
|
||||||
|
if(isFileUrl(url)) {
|
||||||
|
return fileURLToPath(url);
|
||||||
|
}
|
||||||
|
if(isSchemeRelativeUrl(url)) {
|
||||||
|
return fileURLToPath(new URL(url, 'file://'));
|
||||||
|
}
|
||||||
|
if(isAbsoluteUrl(url)) {
|
||||||
|
// url is a non-file URL
|
||||||
|
// Go with the URL
|
||||||
|
return url;
|
||||||
|
}
|
||||||
|
if(path.isAbsolute(url)) {
|
||||||
|
// Normalize at all? decodeURI or normalize slashes?
|
||||||
|
return path.normalize(url);
|
||||||
|
}
|
||||||
|
// url is relative path or URL
|
||||||
|
return path.join(file, '..', decodeURI(url));
|
||||||
|
}
|
||||||
|
// If we get here, file is relative.
|
||||||
|
// Shouldn't happen since node identifies modules with absolute paths or URLs.
|
||||||
|
// But we can take a stab at returning something meaningful anyway.
|
||||||
|
if(isAbsoluteUrl(url) || isSchemeRelativeUrl(url)) {
|
||||||
|
return url;
|
||||||
|
}
|
||||||
|
return path.join(file, '..', url);
|
||||||
|
} catch(e) {
|
||||||
|
return url;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Return pathOrUrl in the same style as matchStyleOf: either a file URL or a native path
|
||||||
|
function matchStyleOfPathOrUrl(matchStyleOf, pathOrUrl) {
|
||||||
|
try {
|
||||||
|
if(isAbsoluteUrl(matchStyleOf) || isSchemeRelativeUrl(matchStyleOf)) {
|
||||||
|
if(isAbsoluteUrl(pathOrUrl) || isSchemeRelativeUrl(pathOrUrl)) return pathOrUrl;
|
||||||
|
if(path.isAbsolute(pathOrUrl)) return pathToFileURL(pathOrUrl).toString();
|
||||||
|
} else if(path.isAbsolute(matchStyleOf)) {
|
||||||
|
if(isAbsoluteUrl(pathOrUrl) || isSchemeRelativeUrl(pathOrUrl)) {
|
||||||
|
return fileURLToPath(new URL(pathOrUrl, 'file://'));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return pathOrUrl;
|
||||||
|
} catch(e) {
|
||||||
|
return pathOrUrl;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function retrieveSourceMapURL(source) {
|
||||||
|
var fileData;
|
||||||
|
|
||||||
|
if (isInBrowser()) {
|
||||||
|
try {
|
||||||
|
var xhr = new XMLHttpRequest();
|
||||||
|
xhr.open('GET', source, false);
|
||||||
|
xhr.send(null);
|
||||||
|
fileData = xhr.readyState === 4 ? xhr.responseText : null;
|
||||||
|
|
||||||
|
// Support providing a sourceMappingURL via the SourceMap header
|
||||||
|
var sourceMapHeader = xhr.getResponseHeader("SourceMap") ||
|
||||||
|
xhr.getResponseHeader("X-SourceMap");
|
||||||
|
if (sourceMapHeader) {
|
||||||
|
return sourceMapHeader;
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get the URL of the source map
|
||||||
|
fileData = retrieveFile(tryFileURLToPath(source));
|
||||||
|
var re = /(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg;
|
||||||
|
// Keep executing the search to find the *last* sourceMappingURL to avoid
|
||||||
|
// picking up sourceMappingURLs from comments, strings, etc.
|
||||||
|
var lastMatch, match;
|
||||||
|
while (match = re.exec(fileData)) lastMatch = match;
|
||||||
|
if (!lastMatch) return null;
|
||||||
|
return lastMatch[1];
|
||||||
|
};
|
||||||
|
|
||||||
|
// Can be overridden by the retrieveSourceMap option to install. Takes a
|
||||||
|
// generated source filename; returns a {map, optional url} object, or null if
|
||||||
|
// there is no source map. The map field may be either a string or the parsed
|
||||||
|
// JSON object (ie, it must be a valid argument to the SourceMapConsumer
|
||||||
|
// constructor).
|
||||||
|
/** @type {(source: string) => import('./source-map-support').UrlAndMap | null} */
|
||||||
|
var retrieveSourceMap = handlerExec(sharedData.retrieveMapHandlers, sharedData.internalRetrieveMapHandlers);
|
||||||
|
sharedData.internalRetrieveMapHandlers.push(function(source) {
|
||||||
|
var sourceMappingURL = retrieveSourceMapURL(source);
|
||||||
|
if (!sourceMappingURL) return null;
|
||||||
|
|
||||||
|
// Read the contents of the source map
|
||||||
|
var sourceMapData;
|
||||||
|
if (reSourceMap.test(sourceMappingURL)) {
|
||||||
|
// Support source map URL as a data url
|
||||||
|
var rawData = sourceMappingURL.slice(sourceMappingURL.indexOf(',') + 1);
|
||||||
|
sourceMapData = Buffer.from(rawData, "base64").toString();
|
||||||
|
sourceMappingURL = source;
|
||||||
|
} else {
|
||||||
|
// Support source map URLs relative to the source URL
|
||||||
|
sourceMappingURL = supportRelativeURL(source, sourceMappingURL);
|
||||||
|
sourceMapData = retrieveFile(tryFileURLToPath(sourceMappingURL));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!sourceMapData) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
url: sourceMappingURL,
|
||||||
|
map: sourceMapData
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
function mapSourcePosition(position) {
|
||||||
|
var sourceMap = getSourceMapCache(position.source);
|
||||||
|
if (!sourceMap) {
|
||||||
|
// Call the (overrideable) retrieveSourceMap function to get the source map.
|
||||||
|
var urlAndMap = retrieveSourceMap(position.source);
|
||||||
|
if (urlAndMap) {
|
||||||
|
sourceMap = setSourceMapCache(position.source, {
|
||||||
|
url: urlAndMap.url,
|
||||||
|
map: new AnyMap(urlAndMap.map, urlAndMap.url)
|
||||||
|
});
|
||||||
|
|
||||||
|
// Overwrite trace-mapping's resolutions, because they do not handle
|
||||||
|
// Windows paths the way we want.
|
||||||
|
// TODO Remove now that windows path support was added to resolve-uri and thus trace-mapping?
|
||||||
|
sourceMap.map.resolvedSources = sourceMap.map.sources.map(s => supportRelativeURL(sourceMap.url, s));
|
||||||
|
|
||||||
|
// Load all sources stored inline with the source map into the file cache
|
||||||
|
// to pretend like they are already loaded. They may not exist on disk.
|
||||||
|
if (sourceMap.map.sourcesContent) {
|
||||||
|
sourceMap.map.resolvedSources.forEach(function(resolvedSource, i) {
|
||||||
|
var contents = sourceMap.map.sourcesContent[i];
|
||||||
|
if (contents) {
|
||||||
|
setFileContentsCache(resolvedSource, contents);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
sourceMap = setSourceMapCache(position.source, {
|
||||||
|
url: null,
|
||||||
|
map: null
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Resolve the source URL relative to the URL of the source map
|
||||||
|
if (sourceMap && sourceMap.map) {
|
||||||
|
var originalPosition = originalPositionFor(sourceMap.map, position);
|
||||||
|
|
||||||
|
// Only return the original position if a matching line was found. If no
|
||||||
|
// matching line is found then we return position instead, which will cause
|
||||||
|
// the stack trace to print the path and line for the compiled file. It is
|
||||||
|
// better to give a precise location in the compiled file than a vague
|
||||||
|
// location in the original file.
|
||||||
|
if (originalPosition.source !== null) {
|
||||||
|
// originalPosition.source has *already* been resolved against sourceMap.url
|
||||||
|
// so is *already* as absolute as possible.
|
||||||
|
// However, we want to ensure we output in same format as input: URL or native path
|
||||||
|
originalPosition.source = matchStyleOfPathOrUrl(
|
||||||
|
position.source, originalPosition.source);
|
||||||
|
return originalPosition;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return position;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Parses code generated by FormatEvalOrigin(), a function inside V8:
|
||||||
|
// https://code.google.com/p/v8/source/browse/trunk/src/messages.js
|
||||||
|
function mapEvalOrigin(origin) {
|
||||||
|
// Most eval() calls are in this format
|
||||||
|
var match = /^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(origin);
|
||||||
|
if (match) {
|
||||||
|
var position = mapSourcePosition({
|
||||||
|
source: match[2],
|
||||||
|
line: +match[3],
|
||||||
|
column: match[4] - 1
|
||||||
|
});
|
||||||
|
return 'eval at ' + match[1] + ' (' + position.source + ':' +
|
||||||
|
position.line + ':' + (position.column + 1) + ')';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Parse nested eval() calls using recursion
|
||||||
|
match = /^eval at ([^(]+) \((.+)\)$/.exec(origin);
|
||||||
|
if (match) {
|
||||||
|
return 'eval at ' + match[1] + ' (' + mapEvalOrigin(match[2]) + ')';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Make sure we still return useful information if we didn't find anything
|
||||||
|
return origin;
|
||||||
|
}
|
||||||
|
|
||||||
|
// This is copied almost verbatim from the V8 source code at
|
||||||
|
// https://code.google.com/p/v8/source/browse/trunk/src/messages.js
|
||||||
|
// Update 2022-04-29:
|
||||||
|
// https://github.com/v8/v8/blob/98f6f100c5ab8e390e51422747c4ef644d5ac6f2/src/builtins/builtins-callsite.cc#L175-L179
|
||||||
|
// https://github.com/v8/v8/blob/98f6f100c5ab8e390e51422747c4ef644d5ac6f2/src/objects/call-site-info.cc#L795-L804
|
||||||
|
// https://github.com/v8/v8/blob/98f6f100c5ab8e390e51422747c4ef644d5ac6f2/src/objects/call-site-info.cc#L717-L750
|
||||||
|
// The implementation of wrapCallSite() used to just forward to the actual source
|
||||||
|
// code of CallSite.prototype.toString but unfortunately a new release of V8
|
||||||
|
// did something to the prototype chain and broke the shim. The only fix I
|
||||||
|
// could find was copy/paste.
|
||||||
|
function CallSiteToString() {
|
||||||
|
var fileName;
|
||||||
|
var fileLocation = "";
|
||||||
|
if (this.isNative()) {
|
||||||
|
fileLocation = "native";
|
||||||
|
} else {
|
||||||
|
fileName = this.getScriptNameOrSourceURL();
|
||||||
|
if (!fileName && this.isEval()) {
|
||||||
|
fileLocation = this.getEvalOrigin();
|
||||||
|
fileLocation += ", "; // Expecting source position to follow.
|
||||||
|
}
|
||||||
|
|
||||||
|
if (fileName) {
|
||||||
|
fileLocation += fileName;
|
||||||
|
} else {
|
||||||
|
// Source code does not originate from a file and is not native, but we
|
||||||
|
// can still get the source position inside the source string, e.g. in
|
||||||
|
// an eval string.
|
||||||
|
fileLocation += "<anonymous>";
|
||||||
|
}
|
||||||
|
var lineNumber = this.getLineNumber();
|
||||||
|
if (lineNumber != null) {
|
||||||
|
fileLocation += ":" + lineNumber;
|
||||||
|
var columnNumber = this.getColumnNumber();
|
||||||
|
if (columnNumber) {
|
||||||
|
fileLocation += ":" + columnNumber;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var line = "";
|
||||||
|
var isAsync = this.isAsync ? this.isAsync() : false;
|
||||||
|
if(isAsync) {
|
||||||
|
line += 'async ';
|
||||||
|
var isPromiseAll = this.isPromiseAll ? this.isPromiseAll() : false;
|
||||||
|
var isPromiseAny = this.isPromiseAny ? this.isPromiseAny() : false;
|
||||||
|
if(isPromiseAny || isPromiseAll) {
|
||||||
|
line += isPromiseAll ? 'Promise.all (index ' : 'Promise.any (index ';
|
||||||
|
var promiseIndex = this.getPromiseIndex();
|
||||||
|
line += promiseIndex + ')';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var functionName = this.getFunctionName();
|
||||||
|
var addSuffix = true;
|
||||||
|
var isConstructor = this.isConstructor();
|
||||||
|
var isMethodCall = !(this.isToplevel() || isConstructor);
|
||||||
|
if (isMethodCall) {
|
||||||
|
var typeName = this.getTypeName();
|
||||||
|
// Fixes shim to be backward compatable with Node v0 to v4
|
||||||
|
if (typeName === "[object Object]") {
|
||||||
|
typeName = "null";
|
||||||
|
}
|
||||||
|
var methodName = this.getMethodName();
|
||||||
|
if (functionName) {
|
||||||
|
if (typeName && functionName.indexOf(typeName) != 0) {
|
||||||
|
line += typeName + ".";
|
||||||
|
}
|
||||||
|
line += functionName;
|
||||||
|
if (methodName && functionName.indexOf("." + methodName) != functionName.length - methodName.length - 1) {
|
||||||
|
line += " [as " + methodName + "]";
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
line += typeName + "." + (methodName || "<anonymous>");
|
||||||
|
}
|
||||||
|
} else if (isConstructor) {
|
||||||
|
line += "new " + (functionName || "<anonymous>");
|
||||||
|
} else if (functionName) {
|
||||||
|
line += functionName;
|
||||||
|
} else {
|
||||||
|
line += fileLocation;
|
||||||
|
addSuffix = false;
|
||||||
|
}
|
||||||
|
if (addSuffix) {
|
||||||
|
line += " (" + fileLocation + ")";
|
||||||
|
}
|
||||||
|
return line;
|
||||||
|
}
|
||||||
|
|
||||||
|
function cloneCallSite(frame) {
|
||||||
|
var object = {};
|
||||||
|
Object.getOwnPropertyNames(Object.getPrototypeOf(frame)).forEach(function(name) {
|
||||||
|
object[name] = /^(?:is|get)/.test(name) ? function() { return frame[name].call(frame); } : frame[name];
|
||||||
|
});
|
||||||
|
object.toString = CallSiteToString;
|
||||||
|
return object;
|
||||||
|
}
|
||||||
|
|
||||||
|
function wrapCallSite(frame, state) {
|
||||||
|
// provides interface backward compatibility
|
||||||
|
if (state === undefined) {
|
||||||
|
state = { nextPosition: null, curPosition: null }
|
||||||
|
}
|
||||||
|
if(frame.isNative()) {
|
||||||
|
state.curPosition = null;
|
||||||
|
return frame;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Most call sites will return the source file from getFileName(), but code
|
||||||
|
// passed to eval() ending in "//# sourceURL=..." will return the source file
|
||||||
|
// from getScriptNameOrSourceURL() instead
|
||||||
|
var source = frame.getFileName() || frame.getScriptNameOrSourceURL();
|
||||||
|
if (source) {
|
||||||
|
// v8 does not expose its internal isWasm, etc methods, so we do this instead.
|
||||||
|
if(source.startsWith('wasm://')) {
|
||||||
|
state.curPosition = null;
|
||||||
|
return frame;
|
||||||
|
}
|
||||||
|
|
||||||
|
var line = frame.getLineNumber();
|
||||||
|
var column = frame.getColumnNumber() - 1;
|
||||||
|
|
||||||
|
// Fix position in Node where some (internal) code is prepended.
|
||||||
|
// See https://github.com/evanw/node-source-map-support/issues/36
|
||||||
|
// Header removed in node at ^10.16 || >=11.11.0
|
||||||
|
// v11 is not an LTS candidate, we can just test the one version with it.
|
||||||
|
// Test node versions for: 10.16-19, 10.20+, 12-19, 20-99, 100+, or 11.11
|
||||||
|
var noHeader = /^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/;
|
||||||
|
var headerLength = noHeader.test(process.version) ? 0 : 62;
|
||||||
|
if (line === 1 && column > headerLength && !isInBrowser() && !frame.isEval()) {
|
||||||
|
column -= headerLength;
|
||||||
|
}
|
||||||
|
|
||||||
|
var position = mapSourcePosition({
|
||||||
|
source: source,
|
||||||
|
line: line,
|
||||||
|
column: column
|
||||||
|
});
|
||||||
|
state.curPosition = position;
|
||||||
|
frame = cloneCallSite(frame);
|
||||||
|
var originalFunctionName = frame.getFunctionName;
|
||||||
|
frame.getFunctionName = function() {
|
||||||
|
if (state.nextPosition == null) {
|
||||||
|
return originalFunctionName();
|
||||||
|
}
|
||||||
|
return state.nextPosition.name || originalFunctionName();
|
||||||
|
};
|
||||||
|
frame.getFileName = function() { return position.source; };
|
||||||
|
frame.getLineNumber = function() { return position.line; };
|
||||||
|
frame.getColumnNumber = function() { return position.column + 1; };
|
||||||
|
frame.getScriptNameOrSourceURL = function() { return position.source; };
|
||||||
|
return frame;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Code called using eval() needs special handling
|
||||||
|
var origin = frame.isEval() && frame.getEvalOrigin();
|
||||||
|
if (origin) {
|
||||||
|
origin = mapEvalOrigin(origin);
|
||||||
|
frame = cloneCallSite(frame);
|
||||||
|
frame.getEvalOrigin = function() { return origin; };
|
||||||
|
return frame;
|
||||||
|
}
|
||||||
|
|
||||||
|
// If we get here then we were unable to change the source position
|
||||||
|
return frame;
|
||||||
|
}
|
||||||
|
|
||||||
|
var kIsNodeError = undefined;
|
||||||
|
try {
|
||||||
|
// Get a deliberate ERR_INVALID_ARG_TYPE
|
||||||
|
// TODO is there a better way to reliably get an instance of NodeError?
|
||||||
|
path.resolve(123);
|
||||||
|
} catch(e) {
|
||||||
|
const symbols = Object.getOwnPropertySymbols(e);
|
||||||
|
const symbol = symbols.find(function (s) {return s.toString().indexOf('kIsNodeError') >= 0});
|
||||||
|
if(symbol) kIsNodeError = symbol;
|
||||||
|
}
|
||||||
|
|
||||||
|
const ErrorPrototypeToString = (err) =>Error.prototype.toString.call(err);
|
||||||
|
|
||||||
|
/** @param {HookState} hookState */
|
||||||
|
function createPrepareStackTrace(hookState) {
|
||||||
|
return prepareStackTrace;
|
||||||
|
|
||||||
|
// This function is part of the V8 stack trace API, for more info see:
|
||||||
|
// https://v8.dev/docs/stack-trace-api
|
||||||
|
function prepareStackTrace(error, stack) {
|
||||||
|
if(!hookState.enabled) return hookState.originalValue.apply(this, arguments);
|
||||||
|
|
||||||
|
if (sharedData.emptyCacheBetweenOperations) {
|
||||||
|
clearCaches();
|
||||||
|
}
|
||||||
|
|
||||||
|
// node gives its own errors special treatment. Mimic that behavior
|
||||||
|
// https://github.com/nodejs/node/blob/3cbaabc4622df1b4009b9d026a1a970bdbae6e89/lib/internal/errors.js#L118-L128
|
||||||
|
// https://github.com/nodejs/node/pull/39182
|
||||||
|
var errorString;
|
||||||
|
if (kIsNodeError) {
|
||||||
|
if(kIsNodeError in error) {
|
||||||
|
errorString = `${error.name} [${error.code}]: ${error.message}`;
|
||||||
|
} else {
|
||||||
|
errorString = ErrorPrototypeToString(error);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
var name = error.name || 'Error';
|
||||||
|
var message = error.message || '';
|
||||||
|
errorString = message ? name + ": " + message : name;
|
||||||
|
}
|
||||||
|
|
||||||
|
var state = { nextPosition: null, curPosition: null };
|
||||||
|
var processedStack = [];
|
||||||
|
for (var i = stack.length - 1; i >= 0; i--) {
|
||||||
|
processedStack.push('\n at ' + wrapCallSite(stack[i], state));
|
||||||
|
state.nextPosition = state.curPosition;
|
||||||
|
}
|
||||||
|
state.curPosition = state.nextPosition = null;
|
||||||
|
return errorString + processedStack.reverse().join('');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Generate position and snippet of original source with pointer
|
||||||
|
function getErrorSource(error) {
|
||||||
|
var match = /\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(error.stack);
|
||||||
|
if (match) {
|
||||||
|
var source = match[1];
|
||||||
|
var line = +match[2];
|
||||||
|
var column = +match[3];
|
||||||
|
|
||||||
|
// Support the inline sourceContents inside the source map
|
||||||
|
var contents = getFileContentsCache(source);
|
||||||
|
|
||||||
|
const sourceAsPath = tryFileURLToPath(source);
|
||||||
|
|
||||||
|
// Support files on disk
|
||||||
|
if (!contents && fs && fs.existsSync(sourceAsPath)) {
|
||||||
|
try {
|
||||||
|
contents = fs.readFileSync(sourceAsPath, 'utf8');
|
||||||
|
} catch (er) {
|
||||||
|
contents = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Format the line from the original source code like node does
|
||||||
|
if (contents) {
|
||||||
|
var code = contents.split(/(?:\r\n|\r|\n)/)[line - 1];
|
||||||
|
if (code) {
|
||||||
|
return source + ':' + line + '\n' + code + '\n' +
|
||||||
|
new Array(column).join(' ') + '^';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
function printFatalErrorUponExit (error) {
|
||||||
|
var source = getErrorSource(error);
|
||||||
|
|
||||||
|
// Ensure error is printed synchronously and not truncated
|
||||||
|
if (process.stderr._handle && process.stderr._handle.setBlocking) {
|
||||||
|
process.stderr._handle.setBlocking(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (source) {
|
||||||
|
console.error(source);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Matches node's behavior for colorized output
|
||||||
|
console.error(
|
||||||
|
util.inspect(error, {
|
||||||
|
customInspect: false,
|
||||||
|
colors: process.stderr.isTTY
|
||||||
|
})
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function shimEmitUncaughtException () {
|
||||||
|
const originalValue = process.emit;
|
||||||
|
var hook = sharedData.processEmitHook = {
|
||||||
|
enabled: true,
|
||||||
|
originalValue,
|
||||||
|
installedValue: undefined
|
||||||
|
};
|
||||||
|
var isTerminatingDueToFatalException = false;
|
||||||
|
var fatalException;
|
||||||
|
|
||||||
|
process.emit = sharedData.processEmitHook.installedValue = function (type) {
|
||||||
|
const hadListeners = originalValue.apply(this, arguments);
|
||||||
|
if(hook.enabled) {
|
||||||
|
if (type === 'uncaughtException' && !hadListeners) {
|
||||||
|
isTerminatingDueToFatalException = true;
|
||||||
|
fatalException = arguments[1];
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
if (type === 'exit' && isTerminatingDueToFatalException) {
|
||||||
|
printFatalErrorUponExit(fatalException);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return hadListeners;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
var originalRetrieveFileHandlers = sharedData.retrieveFileHandlers.slice(0);
|
||||||
|
var originalRetrieveMapHandlers = sharedData.retrieveMapHandlers.slice(0);
|
||||||
|
|
||||||
|
exports.wrapCallSite = wrapCallSite;
|
||||||
|
exports.getErrorSource = getErrorSource;
|
||||||
|
exports.mapSourcePosition = mapSourcePosition;
|
||||||
|
exports.retrieveSourceMap = retrieveSourceMap;
|
||||||
|
|
||||||
|
exports.install = function(options) {
|
||||||
|
options = options || {};
|
||||||
|
|
||||||
|
if (options.environment) {
|
||||||
|
environment = options.environment;
|
||||||
|
if (["node", "browser", "auto"].indexOf(environment) === -1) {
|
||||||
|
throw new Error("environment " + environment + " was unknown. Available options are {auto, browser, node}")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Use dynamicRequire to avoid including in browser bundles
|
||||||
|
var Module = dynamicRequire(module, 'module');
|
||||||
|
|
||||||
|
// Redirect subsequent imports of "source-map-support"
|
||||||
|
// to this package
|
||||||
|
const {redirectConflictingLibrary = true, onConflictingLibraryRedirect} = options;
|
||||||
|
if(redirectConflictingLibrary) {
|
||||||
|
if (!sharedData.moduleResolveFilenameHook) {
|
||||||
|
const originalValue = Module._resolveFilename;
|
||||||
|
const moduleResolveFilenameHook = sharedData.moduleResolveFilenameHook = {
|
||||||
|
enabled: true,
|
||||||
|
originalValue,
|
||||||
|
installedValue: undefined,
|
||||||
|
}
|
||||||
|
Module._resolveFilename = sharedData.moduleResolveFilenameHook.installedValue = function (request, parent, isMain, options) {
|
||||||
|
if (moduleResolveFilenameHook.enabled) {
|
||||||
|
// Match all source-map-support entrypoints: source-map-support, source-map-support/register
|
||||||
|
let requestRedirect;
|
||||||
|
if (request === 'source-map-support') {
|
||||||
|
requestRedirect = './';
|
||||||
|
} else if (request === 'source-map-support/register') {
|
||||||
|
requestRedirect = './register';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (requestRedirect !== undefined) {
|
||||||
|
const newRequest = require.resolve(requestRedirect);
|
||||||
|
for (const cb of sharedData.onConflictingLibraryRedirectArr) {
|
||||||
|
cb(request, parent, isMain, options, newRequest);
|
||||||
|
}
|
||||||
|
request = newRequest;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return originalValue.call(this, request, parent, isMain, options);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (onConflictingLibraryRedirect) {
|
||||||
|
sharedData.onConflictingLibraryRedirectArr.push(onConflictingLibraryRedirect);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Allow sources to be found by methods other than reading the files
|
||||||
|
// directly from disk.
|
||||||
|
if (options.retrieveFile) {
|
||||||
|
if (options.overrideRetrieveFile) {
|
||||||
|
sharedData.retrieveFileHandlers.length = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
sharedData.retrieveFileHandlers.unshift(options.retrieveFile);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Allow source maps to be found by methods other than reading the files
|
||||||
|
// directly from disk.
|
||||||
|
if (options.retrieveSourceMap) {
|
||||||
|
if (options.overrideRetrieveSourceMap) {
|
||||||
|
sharedData.retrieveMapHandlers.length = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
sharedData.retrieveMapHandlers.unshift(options.retrieveSourceMap);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Support runtime transpilers that include inline source maps
|
||||||
|
if (options.hookRequire && !isInBrowser()) {
|
||||||
|
var $compile = Module.prototype._compile;
|
||||||
|
|
||||||
|
if (!$compile.__sourceMapSupport) {
|
||||||
|
Module.prototype._compile = function(content, filename) {
|
||||||
|
setFileContentsCache(filename, content);
|
||||||
|
setSourceMapCache(filename, undefined);
|
||||||
|
return $compile.call(this, content, filename);
|
||||||
|
};
|
||||||
|
|
||||||
|
Module.prototype._compile.__sourceMapSupport = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Configure options
|
||||||
|
if (!sharedData.emptyCacheBetweenOperations) {
|
||||||
|
sharedData.emptyCacheBetweenOperations = 'emptyCacheBetweenOperations' in options ?
|
||||||
|
options.emptyCacheBetweenOperations : false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Install the error reformatter
|
||||||
|
if (!sharedData.errorPrepareStackTraceHook) {
|
||||||
|
const originalValue = Error.prepareStackTrace;
|
||||||
|
sharedData.errorPrepareStackTraceHook = {
|
||||||
|
enabled: true,
|
||||||
|
originalValue,
|
||||||
|
installedValue: undefined
|
||||||
|
};
|
||||||
|
Error.prepareStackTrace = sharedData.errorPrepareStackTraceHook.installedValue = createPrepareStackTrace(sharedData.errorPrepareStackTraceHook);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!sharedData.processEmitHook) {
|
||||||
|
var installHandler = 'handleUncaughtExceptions' in options ?
|
||||||
|
options.handleUncaughtExceptions : true;
|
||||||
|
|
||||||
|
// Do not override 'uncaughtException' with our own handler in Node.js
|
||||||
|
// Worker threads. Workers pass the error to the main thread as an event,
|
||||||
|
// rather than printing something to stderr and exiting.
|
||||||
|
try {
|
||||||
|
// We need to use `dynamicRequire` because `require` on it's own will be optimized by WebPack/Browserify.
|
||||||
|
var worker_threads = dynamicRequire(module, 'worker_threads');
|
||||||
|
if (worker_threads.isMainThread === false) {
|
||||||
|
installHandler = false;
|
||||||
|
}
|
||||||
|
} catch(e) {}
|
||||||
|
|
||||||
|
// Provide the option to not install the uncaught exception handler. This is
|
||||||
|
// to support other uncaught exception handlers (in test frameworks, for
|
||||||
|
// example). If this handler is not installed and there are no other uncaught
|
||||||
|
// exception handlers, uncaught exceptions will be caught by node's built-in
|
||||||
|
// exception handler and the process will still be terminated. However, the
|
||||||
|
// generated JavaScript code will be shown above the stack trace instead of
|
||||||
|
// the original source code.
|
||||||
|
if (installHandler && hasGlobalProcessEventEmitter()) {
|
||||||
|
shimEmitUncaughtException();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
exports.uninstall = function() {
|
||||||
|
if(sharedData.processEmitHook) {
|
||||||
|
// Disable behavior
|
||||||
|
sharedData.processEmitHook.enabled = false;
|
||||||
|
// If possible, remove our hook function. May not be possible if subsequent third-party hooks have wrapped around us.
|
||||||
|
if(process.emit === sharedData.processEmitHook.installedValue) {
|
||||||
|
process.emit = sharedData.processEmitHook.originalValue;
|
||||||
|
}
|
||||||
|
sharedData.processEmitHook = undefined;
|
||||||
|
}
|
||||||
|
if(sharedData.errorPrepareStackTraceHook) {
|
||||||
|
// Disable behavior
|
||||||
|
sharedData.errorPrepareStackTraceHook.enabled = false;
|
||||||
|
// If possible or necessary, remove our hook function.
|
||||||
|
// In vanilla environments, prepareStackTrace is `undefined`.
|
||||||
|
// We cannot delegate to `undefined` the way we can to a function w/`.apply()`; our only option is to remove the function.
|
||||||
|
// If we are the *first* hook installed, and another was installed on top of us, we have no choice but to remove both.
|
||||||
|
if(Error.prepareStackTrace === sharedData.errorPrepareStackTraceHook.installedValue || typeof sharedData.errorPrepareStackTraceHook.originalValue !== 'function') {
|
||||||
|
Error.prepareStackTrace = sharedData.errorPrepareStackTraceHook.originalValue;
|
||||||
|
}
|
||||||
|
sharedData.errorPrepareStackTraceHook = undefined;
|
||||||
|
}
|
||||||
|
if (sharedData.moduleResolveFilenameHook) {
|
||||||
|
// Disable behavior
|
||||||
|
sharedData.moduleResolveFilenameHook.enabled = false;
|
||||||
|
// If possible, remove our hook function. May not be possible if subsequent third-party hooks have wrapped around us.
|
||||||
|
var Module = dynamicRequire(module, 'module');
|
||||||
|
if(Module._resolveFilename === sharedData.moduleResolveFilenameHook.installedValue) {
|
||||||
|
Module._resolveFilename = sharedData.moduleResolveFilenameHook.originalValue;
|
||||||
|
}
|
||||||
|
sharedData.moduleResolveFilenameHook = undefined;
|
||||||
|
}
|
||||||
|
sharedData.onConflictingLibraryRedirectArr.length = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
exports.resetRetrieveHandlers = function() {
|
||||||
|
sharedData.retrieveFileHandlers.length = 0;
|
||||||
|
sharedData.retrieveMapHandlers.length = 0;
|
||||||
|
}
|
||||||
191
node_modules/@discordjs/builders/LICENSE
generated
vendored
Normal file
191
node_modules/@discordjs/builders/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,191 @@
|
|||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
other entities that control, are controlled by, or are under common
|
||||||
|
control with that entity. For the purposes of this definition,
|
||||||
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
|
direction or management of such entity, whether by contract or
|
||||||
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
|
including but not limited to software source code, documentation
|
||||||
|
source, and configuration files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical
|
||||||
|
transformation or translation of a Source form, including but
|
||||||
|
not limited to compiled object code, generated documentation,
|
||||||
|
and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
|
Object form, made available under the License, as indicated by a
|
||||||
|
copyright notice that is included in or attached to the work
|
||||||
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
|
form, that is based on (or derived from) the Work and for which the
|
||||||
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
|
of this License, Derivative Works shall not include works that remain
|
||||||
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including
|
||||||
|
the original version of the Work and any modifications or additions
|
||||||
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
|
means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
|
communication on electronic mailing lists, source code control systems,
|
||||||
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
|
excluding communication that is conspicuously marked or otherwise
|
||||||
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
(except as stated in this section) patent license to make, have made,
|
||||||
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
|
where such license applies only to those patent claims licensable
|
||||||
|
by such Contributor that are necessarily infringed by their
|
||||||
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
|
institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
|
or contributory patent infringement, then any patent licenses
|
||||||
|
granted to You under this License for that Work shall terminate
|
||||||
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
|
modifications, and in Source or Object form, provided that You
|
||||||
|
meet the following conditions:
|
||||||
|
|
||||||
|
(a) You must give any other recipients of the Work or
|
||||||
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
|
(b) You must cause any modified files to carry prominent notices
|
||||||
|
stating that You changed the files; and
|
||||||
|
|
||||||
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
|
that You distribute, all copyright, patent, trademark, and
|
||||||
|
attribution notices from the Source form of the Work,
|
||||||
|
excluding those notices that do not pertain to any part of
|
||||||
|
the Derivative Works; and
|
||||||
|
|
||||||
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
|
distribution, then any Derivative Works that You distribute must
|
||||||
|
include a readable copy of the attribution notices contained
|
||||||
|
within such NOTICE file, excluding those notices that do not
|
||||||
|
pertain to any part of the Derivative Works, in at least one
|
||||||
|
of the following places: within a NOTICE text file distributed
|
||||||
|
as part of the Derivative Works; within the Source form or
|
||||||
|
documentation, if provided along with the Derivative Works; or,
|
||||||
|
within a display generated by the Derivative Works, if and
|
||||||
|
wherever such third-party notices normally appear. The contents
|
||||||
|
of the NOTICE file are for informational purposes only and
|
||||||
|
do not modify the License. You may add Your own attribution
|
||||||
|
notices within Derivative Works that You distribute, alongside
|
||||||
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
|
that such additional attribution notices cannot be construed
|
||||||
|
as modifying the License.
|
||||||
|
|
||||||
|
You may add Your own copyright statement to Your modifications and
|
||||||
|
may provide additional or different license terms and conditions
|
||||||
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
|
the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
|
this License, without any additional terms or conditions.
|
||||||
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
|
the terms of any separate license agreement you may have executed
|
||||||
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
|
except as required for reasonable and customary use in describing the
|
||||||
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
implied, including, without limitation, any warranties or conditions
|
||||||
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
|
appropriateness of using or redistributing the Work and assume any
|
||||||
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
|
unless required by applicable law (such as deliberate and grossly
|
||||||
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
|
liable to You for damages, including any direct, indirect, special,
|
||||||
|
incidental, or consequential damages of any character arising as a
|
||||||
|
result of this License or out of the use or inability to use the
|
||||||
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
|
other commercial damages or losses), even if such Contributor
|
||||||
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
|
or other liability obligations and/or rights consistent with this
|
||||||
|
License. However, in accepting such obligations, You may act only
|
||||||
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
|
defend, and hold each Contributor harmless for any liability
|
||||||
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
Copyright 2021 Noel Buechler
|
||||||
|
Copyright 2021 Vlad Frangu
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
72
node_modules/@discordjs/builders/README.md
generated
vendored
Normal file
72
node_modules/@discordjs/builders/README.md
generated
vendored
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
<div align="center">
|
||||||
|
<br />
|
||||||
|
<p>
|
||||||
|
<a href="https://discord.js.org"><img src="https://discord.js.org/static/logo.svg" width="546" alt="discord.js" /></a>
|
||||||
|
</p>
|
||||||
|
<br />
|
||||||
|
<p>
|
||||||
|
<a href="https://discord.gg/djs"><img src="https://img.shields.io/discord/222078108977594368?color=5865F2&logo=discord&logoColor=white" alt="Discord server" /></a>
|
||||||
|
<a href="https://www.npmjs.com/package/@discordjs/builders"><img src="https://img.shields.io/npm/v/@discordjs/builders.svg?maxAge=3600" alt="npm version" /></a>
|
||||||
|
<a href="https://www.npmjs.com/package/@discordjs/builders"><img src="https://img.shields.io/npm/dt/@discordjs/builders.svg?maxAge=3600" alt="npm downloads" /></a>
|
||||||
|
<a href="https://github.com/discordjs/discord.js/actions"><img src="https://github.com/discordjs/discord.js/actions/workflows/test.yml/badge.svg" alt="Build status" /></a>
|
||||||
|
<a href="https://codecov.io/gh/discordjs/discord.js" ><img src="https://codecov.io/gh/discordjs/discord.js/branch/main/graph/badge.svg?precision=2&flag=builders" alt="Code coverage" /></a>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<a href="https://vercel.com/?utm_source=discordjs&utm_campaign=oss"><img src="https://raw.githubusercontent.com/discordjs/discord.js/main/.github/powered-by-vercel.svg" alt="Vercel" /></a>
|
||||||
|
<a href="https://www.cloudflare.com"><img src="https://raw.githubusercontent.com/discordjs/discord.js/main/.github/powered-by-workers.png" alt="Cloudflare Workers" height="44" /></a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
## About
|
||||||
|
|
||||||
|
`@discordjs/builders` is a utility package for easily building Discord API payloads.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
**Node.js 16.11.0 or newer is required.**
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm install @discordjs/builders
|
||||||
|
yarn add @discordjs/builders
|
||||||
|
pnpm add @discordjs/builders
|
||||||
|
```
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
You can find examples of how to use the builders in the [Slash Command Builders][example] examples.
|
||||||
|
|
||||||
|
## Links
|
||||||
|
|
||||||
|
- [Website][website] ([source][website-source])
|
||||||
|
- [Documentation][documentation]
|
||||||
|
- [Guide][guide] ([source][guide-source])
|
||||||
|
Also see the v13 to v14 [Update Guide][guide-update], which includes updated and removed items from the library.
|
||||||
|
- [discord.js Discord server][discord]
|
||||||
|
- [Discord API Discord server][discord-api]
|
||||||
|
- [GitHub][source]
|
||||||
|
- [npm][npm]
|
||||||
|
- [Related libraries][related-libs]
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
Before creating an issue, please ensure that it hasn't already been reported/suggested, and double-check the
|
||||||
|
[documentation][documentation].
|
||||||
|
See [the contribution guide][contributing] if you'd like to submit a PR.
|
||||||
|
|
||||||
|
## Help
|
||||||
|
|
||||||
|
If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to join our official [discord.js Server][discord].
|
||||||
|
|
||||||
|
[example]: https://github.com/discordjs/discord.js/blob/main/packages/builders/docs/examples/Slash%20Command%20Builders.md
|
||||||
|
[website]: https://discord.js.org
|
||||||
|
[website-source]: https://github.com/discordjs/discord.js/tree/main/apps/website
|
||||||
|
[documentation]: https://discord.js.org/docs/packages/builders/stable
|
||||||
|
[guide]: https://discordjs.guide/
|
||||||
|
[guide-source]: https://github.com/discordjs/guide
|
||||||
|
[guide-update]: https://discordjs.guide/additional-info/changes-in-v14.html
|
||||||
|
[discord]: https://discord.gg/djs
|
||||||
|
[discord-api]: https://discord.gg/discord-api
|
||||||
|
[source]: https://github.com/discordjs/discord.js/tree/main/packages/builders
|
||||||
|
[npm]: https://www.npmjs.com/package/@discordjs/builders
|
||||||
|
[related-libs]: https://discord.com/developers/docs/topics/community-resources#libraries
|
||||||
|
[contributing]: https://github.com/discordjs/discord.js/blob/main/.github/CONTRIBUTING.md
|
||||||
2983
node_modules/@discordjs/builders/dist/index.d.mts
generated
vendored
Normal file
2983
node_modules/@discordjs/builders/dist/index.d.mts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2983
node_modules/@discordjs/builders/dist/index.d.ts
generated
vendored
Normal file
2983
node_modules/@discordjs/builders/dist/index.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
4217
node_modules/@discordjs/builders/dist/index.js
generated
vendored
Normal file
4217
node_modules/@discordjs/builders/dist/index.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
node_modules/@discordjs/builders/dist/index.js.map
generated
vendored
Normal file
1
node_modules/@discordjs/builders/dist/index.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
4146
node_modules/@discordjs/builders/dist/index.mjs
generated
vendored
Normal file
4146
node_modules/@discordjs/builders/dist/index.mjs
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
node_modules/@discordjs/builders/dist/index.mjs.map
generated
vendored
Normal file
1
node_modules/@discordjs/builders/dist/index.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2315
node_modules/@discordjs/builders/node_modules/discord-api-types/CHANGELOG.md
generated
vendored
Normal file
2315
node_modules/@discordjs/builders/node_modules/discord-api-types/CHANGELOG.md
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
21
node_modules/@discordjs/builders/node_modules/discord-api-types/LICENSE
generated
vendored
Normal file
21
node_modules/@discordjs/builders/node_modules/discord-api-types/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2020 vladfrangu
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
102
node_modules/@discordjs/builders/node_modules/discord-api-types/README.md
generated
vendored
Normal file
102
node_modules/@discordjs/builders/node_modules/discord-api-types/README.md
generated
vendored
Normal file
@@ -0,0 +1,102 @@
|
|||||||
|
# Discord API Types
|
||||||
|
|
||||||
|
[](https://github.com/discordjs/discord-api-types)
|
||||||
|
|
||||||
|
[](https://github.com/discordjs/discord-api-types/blob/main/LICENSE.md)
|
||||||
|
[](https://www.npmjs.com/package/discord-api-types)
|
||||||
|
[](https://deno.land/x/discord_api_types)
|
||||||
|
[](https://www.patreon.com/vladfrangu)
|
||||||
|
[](https://ko-fi.com/wolfgalvlad)
|
||||||
|
[](https://github.com/sponsors/vladfrangu)
|
||||||
|
[](https://vercel.com?utm_source=discordjs&utm_campaign=oss)
|
||||||
|
|
||||||
|
Simple type definitions for the [Discord API](https://discord.com/developers/docs/intro).
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
Install with [npm](https://www.npmjs.com/) / [yarn](https://yarnpkg.com) / [pnpm](https://pnpm.js.org/):
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm install discord-api-types
|
||||||
|
yarn add discord-api-types
|
||||||
|
pnpm add discord-api-types
|
||||||
|
```
|
||||||
|
|
||||||
|
### Usage
|
||||||
|
|
||||||
|
You can only import this module by specifying the API version you want to target. Append `/v*` to the import path, where the `*` represents the API version. Below are some examples
|
||||||
|
|
||||||
|
```js
|
||||||
|
const { APIUser } = require('discord-api-types/v10');
|
||||||
|
```
|
||||||
|
|
||||||
|
```ts
|
||||||
|
// TypeScript/ES Module support
|
||||||
|
import { APIUser } from 'discord-api-types/v10';
|
||||||
|
```
|
||||||
|
|
||||||
|
You may also import just certain parts of the module that you need. The possible values are: `globals`, `gateway`, `gateway/v*`, `payloads`, `payloads/v*`, `rest`, `rest/v*`, `rpc`, `rpc/v*`, `utils`, `utils/v*`, `voice`, and `voice/v*`. Below are some examples
|
||||||
|
|
||||||
|
```js
|
||||||
|
const { GatewayVersion } = require('discord-api-types/gateway/v10');
|
||||||
|
```
|
||||||
|
|
||||||
|
```ts
|
||||||
|
// TypeScript/ES Module support
|
||||||
|
import { GatewayVersion } from 'discord-api-types/gateway/v10';
|
||||||
|
```
|
||||||
|
|
||||||
|
> _**Note:** The `v*` exports (`discord-api-types/v*`) include the appropriate version of `gateway`, `payloads`, `rest`, `rpc`, and `utils` you specified, alongside the `globals` exports_
|
||||||
|
|
||||||
|
### Deno
|
||||||
|
|
||||||
|
We also provide typings compatible with the [deno](https://deno.land/) runtime. You have 3 ways you can import them:
|
||||||
|
|
||||||
|
1. Directly from GitHub
|
||||||
|
|
||||||
|
```ts
|
||||||
|
// Importing a specific API version
|
||||||
|
import { APIUser } from 'https://raw.githubusercontent.com/discordjs/discord-api-types/main/deno/v10.ts';
|
||||||
|
```
|
||||||
|
|
||||||
|
2. From [deno.land/x](https://deno.land/x)
|
||||||
|
|
||||||
|
```ts
|
||||||
|
// Importing a specific API version
|
||||||
|
import { APIUser } from 'https://deno.land/x/discord_api_types/v10.ts';
|
||||||
|
```
|
||||||
|
|
||||||
|
3. From [skypack.dev](https://www.skypack.dev/)
|
||||||
|
|
||||||
|
```ts
|
||||||
|
// Importing a specific API version
|
||||||
|
import { APIUser } from 'https://cdn.skypack.dev/discord-api-types/v10?dts';
|
||||||
|
```
|
||||||
|
|
||||||
|
## Project Structure
|
||||||
|
|
||||||
|
The exports of each API version is split into three main parts:
|
||||||
|
|
||||||
|
- Everything exported with the `API` prefix represents a payload you may get from the REST API _or_ the Gateway.
|
||||||
|
|
||||||
|
- Everything exported with the `Gateway` prefix represents data that ONLY comes from or is directly related to the Gateway.
|
||||||
|
|
||||||
|
- Everything exported with the `REST` prefix represents data that ONLY comes from or is directly related to the REST API.
|
||||||
|
- For endpoint options, they will follow the following structure: `REST<HTTP Method><Type><Query|(JSON|FormData)Body|Result>` where the type represents what it will return.
|
||||||
|
- For example, `RESTPostAPIChannelMessageJSONBody` or `RESTGetAPIGatewayBotInfoResult`.
|
||||||
|
|
||||||
|
- Some exported types (specifically OAuth2 related ones) may not respect this entire structure due to the nature of the fields. They will start with either `RESTOAuth2` or with something similar to `REST<HTTP Method>OAuth2`
|
||||||
|
|
||||||
|
- If a type ends with `Result`, then it represents the expected result by calling its accompanying route.
|
||||||
|
- Types that are exported as `never` usually mean the result will be a `204 No Content`, so you can safely ignore it. This does **not** account for errors.
|
||||||
|
|
||||||
|
- Anything else that is miscellaneous will be exported based on what it represents (for example the `REST` route object).
|
||||||
|
|
||||||
|
- There may be types exported that are identical for all versions. These will be exported as is and can be found in the `globals` file. They will still be prefixed accordingly as described above.
|
||||||
|
|
||||||
|
**A note about how types are documented**: This package will add types only for known and documented properties that are present in Discord's [API Documentation repository](https://github.com/discord/discord-api-docs),
|
||||||
|
that are mentioned in an open pull request, or known through other means _and have received the green light to be used_.
|
||||||
|
Anything else will not be documented (for example client only types).
|
||||||
|
|
||||||
|
With that aside, we may allow certain types that are not documented in the [API Documentation repository](https://github.com/discord/discord-api-docs) on a case by case basis.
|
||||||
|
They will be documented with an `@unstable` tag and are not subject with the same versioning rules.
|
||||||
898
node_modules/@discordjs/builders/node_modules/discord-api-types/_generated_/rest/v10/interfaces.d.ts
generated
vendored
Normal file
898
node_modules/@discordjs/builders/node_modules/discord-api-types/_generated_/rest/v10/interfaces.d.ts
generated
vendored
Normal file
@@ -0,0 +1,898 @@
|
|||||||
|
import type { Snowflake } from "../../../globals";
|
||||||
|
import type { AchievementIconFormat, ApplicationAssetFormat, ApplicationCoverFormat, ApplicationIconFormat, DefaultUserAvatarAssets, EmojiFormat, GuildBannerFormat, GuildDiscoverySplashFormat, GuildIconFormat, GuildMemberAvatarFormat, GuildMemberBannerFormat, GuildScheduledEventCoverFormat, GuildSplashFormat, GuildTagBadgeFormat, ImageFormat, RoleIconFormat, StickerFormat, StickerPackBannerFormat, StorePageAssetFormat, TeamIconFormat, UserAvatarFormat, UserBannerFormat } from "../../../rest/v10/index";
|
||||||
|
export interface RoutesDeclarations {
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/applications/{application.id}/role-connections/metadata`
|
||||||
|
* - PUT `/applications/{application.id}/role-connections/metadata`
|
||||||
|
*/
|
||||||
|
applicationRoleConnectionMetadata(applicationId: Snowflake): `/applications/${string}/role-connections/metadata`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/auto-moderation/rules`
|
||||||
|
* - POST `/guilds/{guild.id}/auto-moderation/rules`
|
||||||
|
*/
|
||||||
|
guildAutoModerationRules(guildId: Snowflake): `/guilds/${string}/auto-moderation/rules`;
|
||||||
|
/**
|
||||||
|
* Routes for:
|
||||||
|
* - GET `/guilds/{guild.id}/auto-moderation/rules/{rule.id}`
|
||||||
|
* - PATCH `/guilds/{guild.id}/auto-moderation/rules/{rule.id}`
|
||||||
|
* - DELETE `/guilds/{guild.id}/auto-moderation/rules/{rule.id}`
|
||||||
|
*/
|
||||||
|
guildAutoModerationRule(guildId: Snowflake, ruleId: Snowflake): `/guilds/${string}/auto-moderation/rules/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/audit-logs`
|
||||||
|
*/
|
||||||
|
guildAuditLog(guildId: Snowflake): `/guilds/${string}/audit-logs`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/channels/{channel.id}`
|
||||||
|
* - PATCH `/channels/{channel.id}`
|
||||||
|
* - DELETE `/channels/{channel.id}`
|
||||||
|
*/
|
||||||
|
channel(channelId: Snowflake): `/channels/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/channels/{channel.id}/messages`
|
||||||
|
* - POST `/channels/{channel.id}/messages`
|
||||||
|
*/
|
||||||
|
channelMessages(channelId: Snowflake): `/channels/${string}/messages`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/channels/{channel.id}/messages/{message.id}`
|
||||||
|
* - PATCH `/channels/{channel.id}/messages/{message.id}`
|
||||||
|
* - DELETE `/channels/{channel.id}/messages/{message.id}`
|
||||||
|
*/
|
||||||
|
channelMessage(channelId: Snowflake, messageId: Snowflake): `/channels/${string}/messages/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/channels/{channel.id}/messages/{message.id}/crosspost`
|
||||||
|
*/
|
||||||
|
channelMessageCrosspost(channelId: Snowflake, messageId: Snowflake): `/channels/${string}/messages/${string}/crosspost`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - PUT `/channels/{channel.id}/messages/{message.id}/reactions/{emoji}/@me`
|
||||||
|
* - DELETE `/channels/{channel.id}/messages/{message.id}/reactions/{emoji}/@me`
|
||||||
|
*
|
||||||
|
* **Note**: You need to URL encode the emoji yourself
|
||||||
|
*/
|
||||||
|
channelMessageOwnReaction(channelId: Snowflake, messageId: Snowflake, emoji: string): `/channels/${string}/messages/${string}/reactions/${string}/@me`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - DELETE `/channels/{channel.id}/messages/{message.id}/reactions/{emoji}/{user.id}`
|
||||||
|
*
|
||||||
|
* **Note**: You need to URL encode the emoji yourself
|
||||||
|
*/
|
||||||
|
channelMessageUserReaction(channelId: Snowflake, messageId: Snowflake, emoji: string, userId: Snowflake): `/channels/${string}/messages/${string}/reactions/${string}/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/channels/{channel.id}/messages/{message.id}/reactions/{emoji}`
|
||||||
|
* - DELETE `/channels/{channel.id}/messages/{message.id}/reactions/{emoji}`
|
||||||
|
*
|
||||||
|
* **Note**: You need to URL encode the emoji yourself
|
||||||
|
*/
|
||||||
|
channelMessageReaction(channelId: Snowflake, messageId: Snowflake, emoji: string): `/channels/${string}/messages/${string}/reactions/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - DELETE `/channels/{channel.id}/messages/{message.id}/reactions`
|
||||||
|
*/
|
||||||
|
channelMessageAllReactions(channelId: Snowflake, messageId: Snowflake): `/channels/${string}/messages/${string}/reactions`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/channels/{channel.id}/messages/bulk-delete`
|
||||||
|
*/
|
||||||
|
channelBulkDelete(channelId: Snowflake): `/channels/${string}/messages/bulk-delete`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - PUT `/channels/{channel.id}/permissions/{overwrite.id}`
|
||||||
|
* - DELETE `/channels/{channel.id}/permissions/{overwrite.id}`
|
||||||
|
*/
|
||||||
|
channelPermission(channelId: Snowflake, overwriteId: Snowflake): `/channels/${string}/permissions/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/channels/{channel.id}/invites`
|
||||||
|
* - POST `/channels/{channel.id}/invites`
|
||||||
|
*/
|
||||||
|
channelInvites(channelId: Snowflake): `/channels/${string}/invites`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/channels/{channel.id}/followers`
|
||||||
|
*/
|
||||||
|
channelFollowers(channelId: Snowflake): `/channels/${string}/followers`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/channels/{channel.id}/typing`
|
||||||
|
*/
|
||||||
|
channelTyping(channelId: Snowflake): `/channels/${string}/typing`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/channels/{channel.id}/messages/pins`
|
||||||
|
*/
|
||||||
|
channelMessagesPins(channelId: Snowflake): `/channels/${string}/messages/pins`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - PUT `/channels/{channel.id}/messages/pins/{message.id}`
|
||||||
|
* - DELETE `/channels/{channel.id}/messages/pins/{message.id}`
|
||||||
|
*/
|
||||||
|
channelMessagesPin(channelId: Snowflake, messageId: Snowflake): `/channels/${string}/messages/pins/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/channels/{channel.id}/pins`
|
||||||
|
*
|
||||||
|
* @deprecated Use {@link RoutesDeclarations.channelMessagesPins} instead.
|
||||||
|
*/
|
||||||
|
channelPins(channelId: Snowflake): `/channels/${string}/pins`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - PUT `/channels/{channel.id}/pins/{message.id}`
|
||||||
|
* - DELETE `/channels/{channel.id}/pins/{message.id}`
|
||||||
|
*
|
||||||
|
* @deprecated Use {@link RoutesDeclarations.channelMessagesPin} instead.
|
||||||
|
*/
|
||||||
|
channelPin(channelId: Snowflake, messageId: Snowflake): `/channels/${string}/pins/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - PUT `/channels/{channel.id}/recipients/{user.id}`
|
||||||
|
* - DELETE `/channels/{channel.id}/recipients/{user.id}`
|
||||||
|
*/
|
||||||
|
channelRecipient(channelId: Snowflake, userId: Snowflake): `/channels/${string}/recipients/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/emojis`
|
||||||
|
* - POST `/guilds/{guild.id}/emojis`
|
||||||
|
*/
|
||||||
|
guildEmojis(guildId: Snowflake): `/guilds/${string}/emojis`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/emojis/{emoji.id}`
|
||||||
|
* - PATCH `/guilds/{guild.id}/emojis/{emoji.id}`
|
||||||
|
* - DELETE `/guilds/{guild.id}/emojis/{emoji.id}`
|
||||||
|
*/
|
||||||
|
guildEmoji(guildId: Snowflake, emojiId: Snowflake): `/guilds/${string}/emojis/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/guilds`
|
||||||
|
*
|
||||||
|
* @deprecated {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||||
|
*/
|
||||||
|
guilds(): "/guilds";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}`
|
||||||
|
* - PATCH `/guilds/{guild.id}`
|
||||||
|
* - DELETE `/guilds/{guild.id}` (**deprecated**)
|
||||||
|
*/
|
||||||
|
guild(guildId: Snowflake): `/guilds/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/preview`
|
||||||
|
*/
|
||||||
|
guildPreview(guildId: Snowflake): `/guilds/${string}/preview`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/channels`
|
||||||
|
* - POST `/guilds/{guild.id}/channels`
|
||||||
|
* - PATCH `/guilds/{guild.id}/channels`
|
||||||
|
*/
|
||||||
|
guildChannels(guildId: Snowflake): `/guilds/${string}/channels`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/members/{user.id}`
|
||||||
|
* - PUT `/guilds/{guild.id}/members/{user.id}`
|
||||||
|
* - PATCH `/guilds/{guild.id}/members/@me`
|
||||||
|
* - PATCH `/guilds/{guild.id}/members/{user.id}`
|
||||||
|
* - DELETE `/guilds/{guild.id}/members/{user.id}`
|
||||||
|
*/
|
||||||
|
guildMember(guildId: Snowflake, userId?: Snowflake | '@me'): `/guilds/${string}/members/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/members`
|
||||||
|
*/
|
||||||
|
guildMembers(guildId: Snowflake): `/guilds/${string}/members`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/members/search`
|
||||||
|
*/
|
||||||
|
guildMembersSearch(guildId: Snowflake): `/guilds/${string}/members/search`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - PATCH `/guilds/{guild.id}/members/@me/nick`
|
||||||
|
*
|
||||||
|
* @deprecated Use {@link RoutesDeclarations.guildMember} instead.
|
||||||
|
*/
|
||||||
|
guildCurrentMemberNickname(guildId: Snowflake): `/guilds/${string}/members/@me/nick`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - PUT `/guilds/{guild.id}/members/{user.id}/roles/{role.id}`
|
||||||
|
* - DELETE `/guilds/{guild.id}/members/{user.id}/roles/{role.id}`
|
||||||
|
*/
|
||||||
|
guildMemberRole(guildId: Snowflake, memberId: Snowflake, roleId: Snowflake): `/guilds/${string}/members/${string}/roles/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/guilds/{guild.id}/mfa`
|
||||||
|
*
|
||||||
|
* @deprecated
|
||||||
|
*/
|
||||||
|
guildMFA(guildId: Snowflake): `/guilds/${string}/mfa`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/bans`
|
||||||
|
*/
|
||||||
|
guildBans(guildId: Snowflake): `/guilds/${string}/bans`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/bans/{user.id}`
|
||||||
|
* - PUT `/guilds/{guild.id}/bans/{user.id}`
|
||||||
|
* - DELETE `/guilds/{guild.id}/bans/{user.id}`
|
||||||
|
*/
|
||||||
|
guildBan(guildId: Snowflake, userId: Snowflake): `/guilds/${string}/bans/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/roles`
|
||||||
|
* - POST `/guilds/{guild.id}/roles`
|
||||||
|
* - PATCH `/guilds/{guild.id}/roles`
|
||||||
|
*/
|
||||||
|
guildRoles(guildId: Snowflake): `/guilds/${string}/roles`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/roles/{role.id}`
|
||||||
|
* - PATCH `/guilds/{guild.id}/roles/{role.id}`
|
||||||
|
* - DELETE `/guilds/{guild.id}/roles/{role.id}`
|
||||||
|
*/
|
||||||
|
guildRole(guildId: Snowflake, roleId: Snowflake): `/guilds/${string}/roles/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/roles/member-counts`
|
||||||
|
*
|
||||||
|
* @unstable
|
||||||
|
*/
|
||||||
|
guildRoleMemberCounts(guildId: Snowflake): `/guilds/${string}/roles/member-counts`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/prune`
|
||||||
|
* - POST `/guilds/{guild.id}/prune`
|
||||||
|
*/
|
||||||
|
guildPrune(guildId: Snowflake): `/guilds/${string}/prune`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/regions`
|
||||||
|
*/
|
||||||
|
guildVoiceRegions(guildId: Snowflake): `/guilds/${string}/regions`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/invites`
|
||||||
|
*/
|
||||||
|
guildInvites(guildId: Snowflake): `/guilds/${string}/invites`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/integrations`
|
||||||
|
*/
|
||||||
|
guildIntegrations(guildId: Snowflake): `/guilds/${string}/integrations`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - DELETE `/guilds/{guild.id}/integrations/{integration.id}`
|
||||||
|
*/
|
||||||
|
guildIntegration(guildId: Snowflake, integrationId: Snowflake): `/guilds/${string}/integrations/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/widget`
|
||||||
|
* - PATCH `/guilds/{guild.id}/widget`
|
||||||
|
*/
|
||||||
|
guildWidgetSettings(guildId: Snowflake): `/guilds/${string}/widget`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/widget.json`
|
||||||
|
*/
|
||||||
|
guildWidgetJSON(guildId: Snowflake): `/guilds/${string}/widget.json`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/vanity-url`
|
||||||
|
*/
|
||||||
|
guildVanityUrl(guildId: Snowflake): `/guilds/${string}/vanity-url`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/widget.png`
|
||||||
|
*/
|
||||||
|
guildWidgetImage(guildId: Snowflake): `/guilds/${string}/widget.png`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/invites/{invite.code}`
|
||||||
|
* - DELETE `/invites/{invite.code}`
|
||||||
|
*/
|
||||||
|
invite(code: string): `/invites/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/templates/{template.code}`
|
||||||
|
* - POST `/guilds/templates/{template.code}` (**deprecated**)
|
||||||
|
*/
|
||||||
|
template(code: string): `/guilds/templates/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/templates`
|
||||||
|
* - POST `/guilds/{guild.id}/templates`
|
||||||
|
*/
|
||||||
|
guildTemplates(guildId: Snowflake): `/guilds/${string}/templates`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - PUT `/guilds/{guild.id}/templates/{template.code}`
|
||||||
|
* - PATCH `/guilds/{guild.id}/templates/{template.code}`
|
||||||
|
* - DELETE `/guilds/{guild.id}/templates/{template.code}`
|
||||||
|
*/
|
||||||
|
guildTemplate(guildId: Snowflake, code: string): `/guilds/${string}/templates/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/channels/{channel.id}/polls/{message.id}/answers/{answer_id}`
|
||||||
|
*/
|
||||||
|
pollAnswerVoters(channelId: Snowflake, messageId: Snowflake, answerId: number): `/channels/${string}/polls/${string}/answers/${number}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/channels/{channel.id}/polls/{message.id}/expire`
|
||||||
|
*/
|
||||||
|
expirePoll(channelId: Snowflake, messageId: Snowflake): `/channels/${string}/polls/${string}/expire`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/channels/{channel.id}/threads`
|
||||||
|
* - POST `/channels/{channel.id}/messages/{message.id}/threads`
|
||||||
|
*/
|
||||||
|
threads(parentId: Snowflake, messageId?: Snowflake): `/channels/${Snowflake}/messages/${Snowflake}/threads` | `/channels/${Snowflake}/threads`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/threads/active`
|
||||||
|
*/
|
||||||
|
guildActiveThreads(guildId: Snowflake): `/guilds/${string}/threads/active`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/channels/{channel.id}/threads/archived/public`
|
||||||
|
* - GET `/channels/{channel.id}/threads/archived/private`
|
||||||
|
*/
|
||||||
|
channelThreads(channelId: Snowflake, archivedStatus: 'private' | 'public'): `/channels/${string}/threads/archived/private` | `/channels/${string}/threads/archived/public`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/channels/{channel.id}/users/@me/threads/archived/private`
|
||||||
|
*/
|
||||||
|
channelJoinedArchivedThreads(channelId: Snowflake): `/channels/${string}/users/@me/threads/archived/private`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/channels/{thread.id}/thread-members`
|
||||||
|
* - GET `/channels/{thread.id}/thread-members/{user.id}`
|
||||||
|
* - PUT `/channels/{thread.id}/thread-members/@me`
|
||||||
|
* - PUT `/channels/{thread.id}/thread-members/{user.id}`
|
||||||
|
* - DELETE `/channels/{thread.id}/thread-members/@me`
|
||||||
|
* - DELETE `/channels/{thread.id}/thread-members/{user.id}`
|
||||||
|
*/
|
||||||
|
threadMembers(threadId: Snowflake, userId?: Snowflake | '@me'): `/channels/${Snowflake}/thread-members/${Snowflake | '@me'}` | `/channels/${Snowflake}/thread-members`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/users/@me`
|
||||||
|
* - GET `/users/{user.id}`
|
||||||
|
* - PATCH `/users/@me`
|
||||||
|
*
|
||||||
|
* @param userId - The user ID, defaulted to `@me`
|
||||||
|
*/
|
||||||
|
user(userId?: Snowflake | '@me'): `/users/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/users/@me/applications/{application.id}/role-connection`
|
||||||
|
* - PUT `/users/@me/applications/{application.id}/role-connection`
|
||||||
|
*/
|
||||||
|
userApplicationRoleConnection(applicationId: Snowflake): `/users/@me/applications/${string}/role-connection`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/users/@me/guilds`
|
||||||
|
*/
|
||||||
|
userGuilds(): "/users/@me/guilds";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/users/@me/guilds/{guild.id}/member`
|
||||||
|
*/
|
||||||
|
userGuildMember(guildId: Snowflake): `/users/@me/guilds/${string}/member`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - DELETE `/users/@me/guilds/{guild.id}`
|
||||||
|
*/
|
||||||
|
userGuild(guildId: Snowflake): `/users/@me/guilds/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/users/@me/channels`
|
||||||
|
*/
|
||||||
|
userChannels(): "/users/@me/channels";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/users/@me/connections`
|
||||||
|
*/
|
||||||
|
userConnections(): "/users/@me/connections";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/voice/regions`
|
||||||
|
*/
|
||||||
|
voiceRegions(): "/voice/regions";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/channels/{channel.id}/webhooks`
|
||||||
|
* - POST `/channels/{channel.id}/webhooks`
|
||||||
|
*/
|
||||||
|
channelWebhooks(channelId: Snowflake): `/channels/${string}/webhooks`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/webhooks`
|
||||||
|
*/
|
||||||
|
guildWebhooks(guildId: Snowflake): `/guilds/${string}/webhooks`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/webhooks/{webhook.id}`
|
||||||
|
* - GET `/webhooks/{webhook.id}/{webhook.token}`
|
||||||
|
* - PATCH `/webhooks/{webhook.id}`
|
||||||
|
* - PATCH `/webhooks/{webhook.id}/{webhook.token}`
|
||||||
|
* - DELETE `/webhooks/{webhook.id}`
|
||||||
|
* - DELETE `/webhooks/{webhook.id}/{webhook.token}`
|
||||||
|
* - POST `/webhooks/{webhook.id}/{webhook.token}`
|
||||||
|
*
|
||||||
|
* - POST `/webhooks/{application.id}/{interaction.token}`
|
||||||
|
*/
|
||||||
|
webhook(webhookId: Snowflake, webhookToken?: string): `/webhooks/${Snowflake}/${string}` | `/webhooks/${Snowflake}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/webhooks/{webhook.id}/{webhook.token}/messages/@original`
|
||||||
|
* - GET `/webhooks/{webhook.id}/{webhook.token}/messages/{message.id}`
|
||||||
|
* - PATCH `/webhooks/{webhook.id}/{webhook.token}/messages/@original`
|
||||||
|
* - PATCH `/webhooks/{webhook.id}/{webhook.token}/messages/{message.id}`
|
||||||
|
* - DELETE `/webhooks/{webhook.id}/{webhook.token}/messages/@original`
|
||||||
|
* - DELETE `/webhooks/{webhook.id}/{webhook.token}/messages/{message.id}`
|
||||||
|
*
|
||||||
|
* - PATCH `/webhooks/{application.id}/{interaction.token}/messages/@original`
|
||||||
|
* - PATCH `/webhooks/{application.id}/{interaction.token}/messages/{message.id}`
|
||||||
|
* - DELETE `/webhooks/{application.id}/{interaction.token}/messages/{message.id}`
|
||||||
|
*/
|
||||||
|
webhookMessage(webhookId: Snowflake, webhookToken: string, messageId?: Snowflake | '@original'): `/webhooks/${string}/${string}/messages/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/webhooks/{webhook.id}/{webhook.token}/github`
|
||||||
|
* - POST `/webhooks/{webhook.id}/{webhook.token}/slack`
|
||||||
|
*/
|
||||||
|
webhookPlatform(webhookId: Snowflake, webhookToken: string, platform: 'github' | 'slack'): `/webhooks/${string}/${string}/github` | `/webhooks/${string}/${string}/slack`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/gateway`
|
||||||
|
*/
|
||||||
|
gateway(): "/gateway";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/gateway/bot`
|
||||||
|
*/
|
||||||
|
gatewayBot(): "/gateway/bot";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/oauth2/applications/@me`
|
||||||
|
*/
|
||||||
|
oauth2CurrentApplication(): "/oauth2/applications/@me";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/oauth2/@me`
|
||||||
|
*/
|
||||||
|
oauth2CurrentAuthorization(): "/oauth2/@me";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/oauth2/authorize`
|
||||||
|
*/
|
||||||
|
oauth2Authorization(): "/oauth2/authorize";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/oauth2/token`
|
||||||
|
*/
|
||||||
|
oauth2TokenExchange(): "/oauth2/token";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/oauth2/token/revoke`
|
||||||
|
*/
|
||||||
|
oauth2TokenRevocation(): "/oauth2/token/revoke";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/applications/{application.id}/commands`
|
||||||
|
* - PUT `/applications/{application.id}/commands`
|
||||||
|
* - POST `/applications/{application.id}/commands`
|
||||||
|
*/
|
||||||
|
applicationCommands(applicationId: Snowflake): `/applications/${string}/commands`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/applications/{application.id}/commands/{command.id}`
|
||||||
|
* - PATCH `/applications/{application.id}/commands/{command.id}`
|
||||||
|
* - DELETE `/applications/{application.id}/commands/{command.id}`
|
||||||
|
*/
|
||||||
|
applicationCommand(applicationId: Snowflake, commandId: Snowflake): `/applications/${string}/commands/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/applications/{application.id}/guilds/{guild.id}/commands`
|
||||||
|
* - PUT `/applications/{application.id}/guilds/{guild.id}/commands`
|
||||||
|
* - POST `/applications/{application.id}/guilds/{guild.id}/commands`
|
||||||
|
*/
|
||||||
|
applicationGuildCommands(applicationId: Snowflake, guildId: Snowflake): `/applications/${string}/guilds/${string}/commands`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/applications/{application.id}/guilds/{guild.id}/commands/{command.id}`
|
||||||
|
* - PATCH `/applications/{application.id}/guilds/{guild.id}/commands/{command.id}`
|
||||||
|
* - DELETE `/applications/{application.id}/guilds/{guild.id}/commands/{command.id}`
|
||||||
|
*/
|
||||||
|
applicationGuildCommand(applicationId: Snowflake, guildId: Snowflake, commandId: Snowflake): `/applications/${string}/guilds/${string}/commands/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/interactions/{interaction.id}/{interaction.token}/callback`
|
||||||
|
*/
|
||||||
|
interactionCallback(interactionId: Snowflake, interactionToken: string): `/interactions/${string}/${string}/callback`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/member-verification`
|
||||||
|
* - PATCH `/guilds/{guild.id}/member-verification`
|
||||||
|
*
|
||||||
|
* @unstable https://github.com/discord/discord-api-docs/pull/2547
|
||||||
|
*/
|
||||||
|
guildMemberVerification(guildId: Snowflake): `/guilds/${string}/member-verification`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/voice-states/@me`
|
||||||
|
* - GET `/guilds/{guild.id}/voice-states/{user.id}`
|
||||||
|
* - PATCH `/guilds/{guild.id}/voice-states/@me`
|
||||||
|
* - PATCH `/guilds/{guild.id}/voice-states/{user.id}`
|
||||||
|
*/
|
||||||
|
guildVoiceState(guildId: Snowflake, userId?: Snowflake | '@me'): `/guilds/${string}/voice-states/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/applications/{application.id}/guilds/{guild.id}/commands/permissions`
|
||||||
|
* - PUT `/applications/{application.id}/guilds/{guild.id}/commands/permissions`
|
||||||
|
*/
|
||||||
|
guildApplicationCommandsPermissions(applicationId: Snowflake, guildId: Snowflake): `/applications/${string}/guilds/${string}/commands/permissions`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/applications/{application.id}/guilds/{guild.id}/commands/{command.id}/permissions`
|
||||||
|
* - PUT `/applications/{application.id}/guilds/{guild.id}/commands/{command.id}/permissions`
|
||||||
|
*/
|
||||||
|
applicationCommandPermissions(applicationId: Snowflake, guildId: Snowflake, commandId: Snowflake): `/applications/${string}/guilds/${string}/commands/${string}/permissions`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/welcome-screen`
|
||||||
|
* - PATCH `/guilds/{guild.id}/welcome-screen`
|
||||||
|
*/
|
||||||
|
guildWelcomeScreen(guildId: Snowflake): `/guilds/${string}/welcome-screen`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/stage-instances`
|
||||||
|
*/
|
||||||
|
stageInstances(): "/stage-instances";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/stage-instances/{channel.id}`
|
||||||
|
* - PATCH `/stage-instances/{channel.id}`
|
||||||
|
* - DELETE `/stage-instances/{channel.id}`
|
||||||
|
*/
|
||||||
|
stageInstance(channelId: Snowflake): `/stage-instances/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/stickers/{sticker.id}`
|
||||||
|
*/
|
||||||
|
sticker(stickerId: Snowflake): `/stickers/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/sticker-packs`
|
||||||
|
*/
|
||||||
|
stickerPacks(): "/sticker-packs";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/sticker-packs/{pack.id}`
|
||||||
|
*/
|
||||||
|
stickerPack(packId: Snowflake): `/sticker-packs/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/sticker-packs`
|
||||||
|
*
|
||||||
|
* @deprecated Use {@link RoutesDeclarations.stickerPacks} instead.
|
||||||
|
*/
|
||||||
|
nitroStickerPacks(): "/sticker-packs";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/stickers`
|
||||||
|
* - POST `/guilds/{guild.id}/stickers`
|
||||||
|
*/
|
||||||
|
guildStickers(guildId: Snowflake): `/guilds/${string}/stickers`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/stickers/{sticker.id}`
|
||||||
|
* - PATCH `/guilds/{guild.id}/stickers/{sticker.id}`
|
||||||
|
* - DELETE `/guilds/{guild.id}/stickers/{sticker.id}`
|
||||||
|
*/
|
||||||
|
guildSticker(guildId: Snowflake, stickerId: Snowflake): `/guilds/${string}/stickers/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/scheduled-events`
|
||||||
|
* - POST `/guilds/{guild.id}/scheduled-events`
|
||||||
|
*/
|
||||||
|
guildScheduledEvents(guildId: Snowflake): `/guilds/${string}/scheduled-events`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/scheduled-events/{guildScheduledEvent.id}`
|
||||||
|
* - PATCH `/guilds/{guild.id}/scheduled-events/{guildScheduledEvent.id}`
|
||||||
|
* - DELETE `/guilds/{guild.id}/scheduled-events/{guildScheduledEvent.id}`
|
||||||
|
*/
|
||||||
|
guildScheduledEvent(guildId: Snowflake, guildScheduledEventId: Snowflake): `/guilds/${string}/scheduled-events/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/scheduled-events/{guildScheduledEvent.id}/users`
|
||||||
|
*/
|
||||||
|
guildScheduledEventUsers(guildId: Snowflake, guildScheduledEventId: Snowflake): `/guilds/${string}/scheduled-events/${string}/users`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/onboarding`
|
||||||
|
* - PUT `/guilds/{guild.id}/onboarding`
|
||||||
|
*/
|
||||||
|
guildOnboarding(guildId: Snowflake): `/guilds/${string}/onboarding`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - PUT `/guilds/${guild.id}/incident-actions`
|
||||||
|
*/
|
||||||
|
guildIncidentActions(guildId: Snowflake): `/guilds/${string}/incident-actions`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/applications/@me`
|
||||||
|
* - PATCH `/applications/@me`
|
||||||
|
*/
|
||||||
|
currentApplication(): "/applications/@me";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/applications/{application.id}/entitlements`
|
||||||
|
* - POST `/applications/{application.id}/entitlements`
|
||||||
|
*/
|
||||||
|
entitlements(applicationId: Snowflake): `/applications/${string}/entitlements`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/applications/{application.id}/entitlements/{entitlement.id}`
|
||||||
|
* - DELETE `/applications/{application.id}/entitlements/{entitlement.id}`
|
||||||
|
*/
|
||||||
|
entitlement(applicationId: Snowflake, entitlementId: Snowflake): `/applications/${string}/entitlements/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/applications/{application.id}/skus`
|
||||||
|
*/
|
||||||
|
skus(applicationId: Snowflake): `/applications/${string}/skus`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/guilds/{guild.id}/bulk-ban`
|
||||||
|
*/
|
||||||
|
guildBulkBan(guildId: Snowflake): `/guilds/${string}/bulk-ban`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/applications/{application.id}/entitlements/{entitlement.id}/consume`
|
||||||
|
*/
|
||||||
|
consumeEntitlement(applicationId: Snowflake, entitlementId: Snowflake): `/applications/${string}/entitlements/${string}/consume`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/applications/{application.id}/emojis`
|
||||||
|
* - POST `/applications/{application.id}/emojis`
|
||||||
|
*/
|
||||||
|
applicationEmojis(applicationId: Snowflake): `/applications/${string}/emojis`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/applications/{application.id}/emojis/{emoji.id}`
|
||||||
|
* - PATCH `/applications/{application.id}/emojis/{emoji.id}`
|
||||||
|
* - DELETE `/applications/{application.id}/emojis/{emoji.id}`
|
||||||
|
*/
|
||||||
|
applicationEmoji(applicationId: Snowflake, emojiId: Snowflake): `/applications/${string}/emojis/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/skus/{sku.id}/subscriptions`
|
||||||
|
*/
|
||||||
|
skuSubscriptions(skuId: Snowflake): `/skus/${string}/subscriptions`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/skus/{sku.id}/subscriptions/{subscription.id}`
|
||||||
|
*/
|
||||||
|
skuSubscription(skuId: Snowflake, subscriptionId: Snowflake): `/skus/${string}/subscriptions/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/channels/{channel.id}/send-soundboard-sound`
|
||||||
|
*/
|
||||||
|
sendSoundboardSound(channelId: Snowflake): `/channels/${string}/send-soundboard-sound`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/soundboard-default-sounds`
|
||||||
|
*/
|
||||||
|
soundboardDefaultSounds(): "/soundboard-default-sounds";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/soundboard-sounds`
|
||||||
|
* - POST `/guilds/{guild.id}/soundboard-sounds`
|
||||||
|
*/
|
||||||
|
guildSoundboardSounds(guildId: Snowflake): `/guilds/${string}/soundboard-sounds`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/soundboard-sounds/{sound.id}`
|
||||||
|
* - PATCH `/guilds/{guild.id}/soundboard-sounds/{sound.id}`
|
||||||
|
* - DELETE `/guilds/{guild.id}/soundboard-sounds/{sound.id}`
|
||||||
|
*/
|
||||||
|
guildSoundboardSound(guildId: Snowflake, soundId: Snowflake): `/guilds/${string}/soundboard-sounds/${string}`;
|
||||||
|
}
|
||||||
|
export interface CDNRoutesDeclarations {
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/emojis/{emoji.id}.{png|jpeg|webp|gif}`
|
||||||
|
*
|
||||||
|
* As this route supports GIFs, the hash will begin with `a_` if it is available in GIF format
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP, GIF
|
||||||
|
*/
|
||||||
|
emoji<Format extends EmojiFormat>(emojiId: Snowflake, format: Format): `/emojis/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/icons/{guild.id}/{guild.icon}.{png|jpeg|webp|gif}`
|
||||||
|
*
|
||||||
|
* As this route supports GIFs, the hash will begin with `a_` if it is available in GIF format
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP, GIF
|
||||||
|
*/
|
||||||
|
guildIcon<Format extends GuildIconFormat>(guildId: Snowflake, guildIcon: string, format: Format): `/icons/${string}/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/splashes/{guild.id}/{guild.splash}.{png|jpeg|webp}`
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP
|
||||||
|
*/
|
||||||
|
guildSplash<Format extends GuildSplashFormat>(guildId: Snowflake, guildSplash: string, format: Format): `/splashes/${string}/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/discovery-splashes/{guild.id}/{guild.discovery_splash}.{png|jpeg|webp}`
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP
|
||||||
|
*/
|
||||||
|
guildDiscoverySplash<Format extends GuildDiscoverySplashFormat>(guildId: Snowflake, guildDiscoverySplash: string, format: Format): `/discovery-splashes/${string}/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/banners/{guild.id}/{guild.banner}.{png|jpeg|webp|gif}`
|
||||||
|
*
|
||||||
|
* As this route supports GIFs, the hash will begin with `a_` if it is available in GIF format
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP, GIF
|
||||||
|
*/
|
||||||
|
guildBanner<Format extends GuildBannerFormat>(guildId: Snowflake, guildBanner: string, format: Format): `/banners/${string}/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/banners/{user.id}/{user.banner}.{png|jpeg|webp|gif}`
|
||||||
|
*
|
||||||
|
* As this route supports GIFs, the hash will begin with `a_` if it is available in GIF format
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP, GIF
|
||||||
|
*/
|
||||||
|
userBanner<Format extends UserBannerFormat>(userId: Snowflake, userBanner: string, format: Format): `/banners/${string}/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/embed/avatars/{index}.png`
|
||||||
|
*
|
||||||
|
* The value for `index` parameter depends on whether the user is {@link https://discord.com/developers/docs/change-log#unique-usernames-on-discord | migrated to the new username system}.
|
||||||
|
* For users on the new username system, `index` will be `(user.id >> 22) % 6`.
|
||||||
|
* For users on the legacy username system, `index` will be `user.discriminator % 5`.
|
||||||
|
*
|
||||||
|
* This route supports the extension: PNG
|
||||||
|
*/
|
||||||
|
defaultUserAvatar<Index extends DefaultUserAvatarAssets>(index: Index): `/embed/avatars/${Index}.png`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/avatars/{user.id}/{user.avatar}.{png|jpeg|webp|gif}`
|
||||||
|
*
|
||||||
|
* As this route supports GIFs, the hash will begin with `a_` if it is available in GIF format
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP, GIF
|
||||||
|
*/
|
||||||
|
userAvatar<Format extends UserAvatarFormat>(userId: Snowflake, userAvatar: string, format: Format): `/avatars/${string}/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/users/{user.id}/avatars/{guild_member.avatar}.{png|jpeg|webp|gif}`
|
||||||
|
*
|
||||||
|
* As this route supports GIFs, the hash will begin with `a_` if it is available in GIF format
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP, GIF
|
||||||
|
*/
|
||||||
|
guildMemberAvatar<Format extends GuildMemberAvatarFormat>(guildId: Snowflake, userId: Snowflake, memberAvatar: string, format: Format): `/guilds/${string}/users/${string}/avatars/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/avatar-decorations/{user.id}/{user.avatar_decoration}.png`
|
||||||
|
*
|
||||||
|
* This route supports the extension: PNG
|
||||||
|
*
|
||||||
|
* @deprecated Use {@link CDNRoutesDeclarations.avatarDecoration} instead.
|
||||||
|
*/
|
||||||
|
userAvatarDecoration(userId: Snowflake, userAvatarDecoration: string): `/avatar-decorations/${string}/${string}.png`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/avatar-decoration-presets/{avatar_decoration_data_asset}.png`
|
||||||
|
*
|
||||||
|
* This route supports the extension: PNG
|
||||||
|
*/
|
||||||
|
avatarDecoration(avatarDecorationDataAsset: string): `/avatar-decoration-presets/${string}.png`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/app-icons/{application.id}/{application.icon}.{png|jpeg|webp}`
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP
|
||||||
|
*/
|
||||||
|
applicationIcon<Format extends ApplicationIconFormat>(applicationId: Snowflake, applicationIcon: string, format: Format): `/app-icons/${string}/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/app-icons/{application.id}/{application.cover_image}.{png|jpeg|webp}`
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP
|
||||||
|
*/
|
||||||
|
applicationCover<Format extends ApplicationCoverFormat>(applicationId: Snowflake, applicationCoverImage: string, format: Format): `/app-icons/${string}/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/app-assets/{application.id}/{application.asset_id}.{png|jpeg|webp}`
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP
|
||||||
|
*/
|
||||||
|
applicationAsset<Format extends ApplicationAssetFormat>(applicationId: Snowflake, applicationAssetId: string, format: Format): `/app-assets/${string}/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/app-assets/{application.id}/achievements/{achievement.id}/icons/{achievement.icon}.{png|jpeg|webp}`
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP
|
||||||
|
*/
|
||||||
|
achievementIcon<Format extends AchievementIconFormat>(applicationId: Snowflake, achievementId: Snowflake, achievementIconHash: string, format: Format): `/app-assets/${string}/achievements/${string}/icons/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/app-assets/710982414301790216/store/{sticker_pack.banner.asset_id}.{png|jpeg|webp}`
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP
|
||||||
|
*/
|
||||||
|
stickerPackBanner<Format extends StickerPackBannerFormat>(stickerPackBannerAssetId: Snowflake, format: Format): `/app-assets/710982414301790216/store/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/app-assets/${application.id}/store/${asset.id}.{png|jpeg|webp}}`
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP
|
||||||
|
*/
|
||||||
|
storePageAsset<Format extends StorePageAssetFormat = ImageFormat.PNG>(applicationId: Snowflake, assetId: string, format?: Format): `/app-assets/${string}/store/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/team-icons/{team.id}/{team.icon}.{png|jpeg|webp}`
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP
|
||||||
|
*/
|
||||||
|
teamIcon<Format extends TeamIconFormat>(teamId: Snowflake, teamIcon: string, format: Format): `/team-icons/${string}/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/stickers/{sticker.id}.{png|json}`
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, Lottie, GIF
|
||||||
|
*/
|
||||||
|
sticker<Format extends StickerFormat>(stickerId: Snowflake, format: Format): `/stickers/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/role-icons/{role.id}/{role.icon}.{png|jpeg|webp}`
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP
|
||||||
|
*/
|
||||||
|
roleIcon<Format extends RoleIconFormat>(roleId: Snowflake, roleIcon: string, format: Format): `/role-icons/${string}/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guild-events/{guild_scheduled_event.id}/{guild_scheduled_event.image}.{png|jpeg|webp}`
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP
|
||||||
|
*/
|
||||||
|
guildScheduledEventCover<Format extends GuildScheduledEventCoverFormat>(guildScheduledEventId: Snowflake, guildScheduledEventCoverImage: string, format: Format): `/guild-events/${string}/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/${guild.id}/users/${user.id}/banners/${guild_member.banner}.{png|jpeg|webp|gif}`
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP, GIF
|
||||||
|
*/
|
||||||
|
guildMemberBanner<Format extends GuildMemberBannerFormat>(guildId: Snowflake, userId: Snowflake, guildMemberBanner: string, format: Format): `/guilds/${string}/users/${string}/banners/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/soundboard-sounds/${sound.id}`
|
||||||
|
*/
|
||||||
|
soundboardSound(soundId: Snowflake): `/soundboard-sounds/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guild-tag-badges/{guild.id}/{badge}.{png|jpeg|webp}`
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP
|
||||||
|
*/
|
||||||
|
guildTagBadge<Format extends GuildTagBadgeFormat>(guildId: Snowflake, guildTagBadge: string, format: Format): `/guild-tag-badges/${string}/${string}.${Format}`;
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=interfaces.d.ts.map
|
||||||
1
node_modules/@discordjs/builders/node_modules/discord-api-types/_generated_/rest/v10/interfaces.d.ts.map
generated
vendored
Normal file
1
node_modules/@discordjs/builders/node_modules/discord-api-types/_generated_/rest/v10/interfaces.d.ts.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
3
node_modules/@discordjs/builders/node_modules/discord-api-types/_generated_/rest/v10/interfaces.js
generated
vendored
Normal file
3
node_modules/@discordjs/builders/node_modules/discord-api-types/_generated_/rest/v10/interfaces.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
"use strict";
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
//# sourceMappingURL=interfaces.js.map
|
||||||
1
node_modules/@discordjs/builders/node_modules/discord-api-types/_generated_/rest/v10/interfaces.js.map
generated
vendored
Normal file
1
node_modules/@discordjs/builders/node_modules/discord-api-types/_generated_/rest/v10/interfaces.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["interfaces.ts"],"names":[],"mappings":""}
|
||||||
893
node_modules/@discordjs/builders/node_modules/discord-api-types/_generated_/rest/v9/interfaces.d.ts
generated
vendored
Normal file
893
node_modules/@discordjs/builders/node_modules/discord-api-types/_generated_/rest/v9/interfaces.d.ts
generated
vendored
Normal file
@@ -0,0 +1,893 @@
|
|||||||
|
import type { Snowflake } from "../../../globals";
|
||||||
|
import type { AchievementIconFormat, ApplicationAssetFormat, ApplicationCoverFormat, ApplicationIconFormat, DefaultUserAvatarAssets, EmojiFormat, GuildBannerFormat, GuildDiscoverySplashFormat, GuildIconFormat, GuildMemberAvatarFormat, GuildMemberBannerFormat, GuildScheduledEventCoverFormat, GuildSplashFormat, GuildTagBadgeFormat, ImageFormat, RoleIconFormat, StickerFormat, StickerPackBannerFormat, StorePageAssetFormat, TeamIconFormat, UserAvatarFormat, UserBannerFormat } from "../../../rest/v9/index";
|
||||||
|
export interface RoutesDeclarations {
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/applications/{application.id}/role-connections/metadata`
|
||||||
|
* - PUT `/applications/{application.id}/role-connections/metadata`
|
||||||
|
*/
|
||||||
|
applicationRoleConnectionMetadata(applicationId: Snowflake): `/applications/${string}/role-connections/metadata`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/auto-moderation/rules`
|
||||||
|
* - POST `/guilds/{guild.id}/auto-moderation/rules`
|
||||||
|
*/
|
||||||
|
guildAutoModerationRules(guildId: Snowflake): `/guilds/${string}/auto-moderation/rules`;
|
||||||
|
/**
|
||||||
|
* Routes for:
|
||||||
|
* - GET `/guilds/{guild.id}/auto-moderation/rules/{rule.id}`
|
||||||
|
* - PATCH `/guilds/{guild.id}/auto-moderation/rules/{rule.id}`
|
||||||
|
* - DELETE `/guilds/{guild.id}/auto-moderation/rules/{rule.id}`
|
||||||
|
*/
|
||||||
|
guildAutoModerationRule(guildId: Snowflake, ruleId: Snowflake): `/guilds/${string}/auto-moderation/rules/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/audit-logs`
|
||||||
|
*/
|
||||||
|
guildAuditLog(guildId: Snowflake): `/guilds/${string}/audit-logs`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/channels/{channel.id}`
|
||||||
|
* - PATCH `/channels/{channel.id}`
|
||||||
|
* - DELETE `/channels/{channel.id}`
|
||||||
|
*/
|
||||||
|
channel(channelId: Snowflake): `/channels/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/channels/{channel.id}/messages`
|
||||||
|
* - POST `/channels/{channel.id}/messages`
|
||||||
|
*/
|
||||||
|
channelMessages(channelId: Snowflake): `/channels/${string}/messages`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/channels/{channel.id}/messages/{message.id}`
|
||||||
|
* - PATCH `/channels/{channel.id}/messages/{message.id}`
|
||||||
|
* - DELETE `/channels/{channel.id}/messages/{message.id}`
|
||||||
|
*/
|
||||||
|
channelMessage(channelId: Snowflake, messageId: Snowflake): `/channels/${string}/messages/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/channels/{channel.id}/messages/{message.id}/crosspost`
|
||||||
|
*/
|
||||||
|
channelMessageCrosspost(channelId: Snowflake, messageId: Snowflake): `/channels/${string}/messages/${string}/crosspost`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - PUT `/channels/{channel.id}/messages/{message.id}/reactions/{emoji}/@me`
|
||||||
|
* - DELETE `/channels/{channel.id}/messages/{message.id}/reactions/{emoji}/@me`
|
||||||
|
*
|
||||||
|
* **Note**: You need to URL encode the emoji yourself
|
||||||
|
*/
|
||||||
|
channelMessageOwnReaction(channelId: Snowflake, messageId: Snowflake, emoji: string): `/channels/${string}/messages/${string}/reactions/${string}/@me`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - DELETE `/channels/{channel.id}/messages/{message.id}/reactions/{emoji}/{user.id}`
|
||||||
|
*
|
||||||
|
* **Note**: You need to URL encode the emoji yourself
|
||||||
|
*/
|
||||||
|
channelMessageUserReaction(channelId: Snowflake, messageId: Snowflake, emoji: string, userId: Snowflake): `/channels/${string}/messages/${string}/reactions/${string}/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/channels/{channel.id}/messages/{message.id}/reactions/{emoji}`
|
||||||
|
* - DELETE `/channels/{channel.id}/messages/{message.id}/reactions/{emoji}`
|
||||||
|
*
|
||||||
|
* **Note**: You need to URL encode the emoji yourself
|
||||||
|
*/
|
||||||
|
channelMessageReaction(channelId: Snowflake, messageId: Snowflake, emoji: string): `/channels/${string}/messages/${string}/reactions/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - DELETE `/channels/{channel.id}/messages/{message.id}/reactions`
|
||||||
|
*/
|
||||||
|
channelMessageAllReactions(channelId: Snowflake, messageId: Snowflake): `/channels/${string}/messages/${string}/reactions`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/channels/{channel.id}/messages/bulk-delete`
|
||||||
|
*/
|
||||||
|
channelBulkDelete(channelId: Snowflake): `/channels/${string}/messages/bulk-delete`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - PUT `/channels/{channel.id}/permissions/{overwrite.id}`
|
||||||
|
* - DELETE `/channels/{channel.id}/permissions/{overwrite.id}`
|
||||||
|
*/
|
||||||
|
channelPermission(channelId: Snowflake, overwriteId: Snowflake): `/channels/${string}/permissions/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/channels/{channel.id}/invites`
|
||||||
|
* - POST `/channels/{channel.id}/invites`
|
||||||
|
*/
|
||||||
|
channelInvites(channelId: Snowflake): `/channels/${string}/invites`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/channels/{channel.id}/followers`
|
||||||
|
*/
|
||||||
|
channelFollowers(channelId: Snowflake): `/channels/${string}/followers`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/channels/{channel.id}/typing`
|
||||||
|
*/
|
||||||
|
channelTyping(channelId: Snowflake): `/channels/${string}/typing`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/channels/{channel.id}/messages/pins`
|
||||||
|
*/
|
||||||
|
channelMessagesPins(channelId: Snowflake): `/channels/${string}/messages/pins`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - PUT `/channels/{channel.id}/messages/pins/{message.id}`
|
||||||
|
* - DELETE `/channels/{channel.id}/messages/pins/{message.id}`
|
||||||
|
*/
|
||||||
|
channelMessagesPin(channelId: Snowflake, messageId: Snowflake): `/channels/${string}/messages/pins/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/channels/{channel.id}/pins`
|
||||||
|
*
|
||||||
|
* @deprecated Use {@link RoutesDeclarations.channelMessagesPins} instead.
|
||||||
|
*/
|
||||||
|
channelPins(channelId: Snowflake): `/channels/${string}/pins`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - PUT `/channels/{channel.id}/pins/{message.id}`
|
||||||
|
* - DELETE `/channels/{channel.id}/pins/{message.id}`
|
||||||
|
*
|
||||||
|
* @deprecated Use {@link RoutesDeclarations.channelMessagesPin} instead.
|
||||||
|
*/
|
||||||
|
channelPin(channelId: Snowflake, messageId: Snowflake): `/channels/${string}/pins/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - PUT `/channels/{channel.id}/recipients/{user.id}`
|
||||||
|
* - DELETE `/channels/{channel.id}/recipients/{user.id}`
|
||||||
|
*/
|
||||||
|
channelRecipient(channelId: Snowflake, userId: Snowflake): `/channels/${string}/recipients/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/emojis`
|
||||||
|
* - POST `/guilds/{guild.id}/emojis`
|
||||||
|
*/
|
||||||
|
guildEmojis(guildId: Snowflake): `/guilds/${string}/emojis`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/emojis/{emoji.id}`
|
||||||
|
* - PATCH `/guilds/{guild.id}/emojis/{emoji.id}`
|
||||||
|
* - DELETE `/guilds/{guild.id}/emojis/{emoji.id}`
|
||||||
|
*/
|
||||||
|
guildEmoji(guildId: Snowflake, emojiId: Snowflake): `/guilds/${string}/emojis/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/guilds`
|
||||||
|
*
|
||||||
|
* @deprecated {@link https://discord.com/developers/docs/change-log#guild-create-deprecation}
|
||||||
|
*/
|
||||||
|
guilds(): "/guilds";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}`
|
||||||
|
* - PATCH `/guilds/{guild.id}`
|
||||||
|
* - DELETE `/guilds/{guild.id}` (**deprecated**)
|
||||||
|
*/
|
||||||
|
guild(guildId: Snowflake): `/guilds/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/preview`
|
||||||
|
*/
|
||||||
|
guildPreview(guildId: Snowflake): `/guilds/${string}/preview`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/channels`
|
||||||
|
* - POST `/guilds/{guild.id}/channels`
|
||||||
|
* - PATCH `/guilds/{guild.id}/channels`
|
||||||
|
*/
|
||||||
|
guildChannels(guildId: Snowflake): `/guilds/${string}/channels`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/members/{user.id}`
|
||||||
|
* - PUT `/guilds/{guild.id}/members/{user.id}`
|
||||||
|
* - PATCH `/guilds/{guild.id}/members/@me`
|
||||||
|
* - PATCH `/guilds/{guild.id}/members/{user.id}`
|
||||||
|
* - DELETE `/guilds/{guild.id}/members/{user.id}`
|
||||||
|
*/
|
||||||
|
guildMember(guildId: Snowflake, userId?: Snowflake | '@me'): `/guilds/${string}/members/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/members`
|
||||||
|
*/
|
||||||
|
guildMembers(guildId: Snowflake): `/guilds/${string}/members`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/members/search`
|
||||||
|
*/
|
||||||
|
guildMembersSearch(guildId: Snowflake): `/guilds/${string}/members/search`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - PATCH `/guilds/{guild.id}/members/@me/nick`
|
||||||
|
*
|
||||||
|
* @deprecated Use {@link RoutesDeclarations.guildMember} instead.
|
||||||
|
*/
|
||||||
|
guildCurrentMemberNickname(guildId: Snowflake): `/guilds/${string}/members/@me/nick`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - PUT `/guilds/{guild.id}/members/{user.id}/roles/{role.id}`
|
||||||
|
* - DELETE `/guilds/{guild.id}/members/{user.id}/roles/{role.id}`
|
||||||
|
*/
|
||||||
|
guildMemberRole(guildId: Snowflake, memberId: Snowflake, roleId: Snowflake): `/guilds/${string}/members/${string}/roles/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/guilds/{guild.id}/mfa`
|
||||||
|
*
|
||||||
|
* @deprecated
|
||||||
|
*/
|
||||||
|
guildMFA(guildId: Snowflake): `/guilds/${string}/mfa`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/bans`
|
||||||
|
*/
|
||||||
|
guildBans(guildId: Snowflake): `/guilds/${string}/bans`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/bans/{user.id}`
|
||||||
|
* - PUT `/guilds/{guild.id}/bans/{user.id}`
|
||||||
|
* - DELETE `/guilds/{guild.id}/bans/{user.id}`
|
||||||
|
*/
|
||||||
|
guildBan(guildId: Snowflake, userId: Snowflake): `/guilds/${string}/bans/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/roles`
|
||||||
|
* - POST `/guilds/{guild.id}/roles`
|
||||||
|
* - PATCH `/guilds/{guild.id}/roles`
|
||||||
|
*/
|
||||||
|
guildRoles(guildId: Snowflake): `/guilds/${string}/roles`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/roles/{role.id}`
|
||||||
|
* - PATCH `/guilds/{guild.id}/roles/{role.id}`
|
||||||
|
* - DELETE `/guilds/{guild.id}/roles/{role.id}`
|
||||||
|
*/
|
||||||
|
guildRole(guildId: Snowflake, roleId: Snowflake): `/guilds/${string}/roles/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/prune`
|
||||||
|
* - POST `/guilds/{guild.id}/prune`
|
||||||
|
*/
|
||||||
|
guildPrune(guildId: Snowflake): `/guilds/${string}/prune`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/regions`
|
||||||
|
*/
|
||||||
|
guildVoiceRegions(guildId: Snowflake): `/guilds/${string}/regions`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/invites`
|
||||||
|
*/
|
||||||
|
guildInvites(guildId: Snowflake): `/guilds/${string}/invites`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/integrations`
|
||||||
|
*/
|
||||||
|
guildIntegrations(guildId: Snowflake): `/guilds/${string}/integrations`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - DELETE `/guilds/{guild.id}/integrations/{integration.id}`
|
||||||
|
*/
|
||||||
|
guildIntegration(guildId: Snowflake, integrationId: Snowflake): `/guilds/${string}/integrations/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/widget`
|
||||||
|
* - PATCH `/guilds/{guild.id}/widget`
|
||||||
|
*/
|
||||||
|
guildWidgetSettings(guildId: Snowflake): `/guilds/${string}/widget`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/widget.json`
|
||||||
|
*/
|
||||||
|
guildWidgetJSON(guildId: Snowflake): `/guilds/${string}/widget.json`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/vanity-url`
|
||||||
|
*/
|
||||||
|
guildVanityUrl(guildId: Snowflake): `/guilds/${string}/vanity-url`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/widget.png`
|
||||||
|
*/
|
||||||
|
guildWidgetImage(guildId: Snowflake): `/guilds/${string}/widget.png`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/invites/{invite.code}`
|
||||||
|
* - DELETE `/invites/{invite.code}`
|
||||||
|
*/
|
||||||
|
invite(code: string): `/invites/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/templates/{template.code}`
|
||||||
|
* - POST `/guilds/templates/{template.code}` (**deprecated**)
|
||||||
|
*/
|
||||||
|
template(code: string): `/guilds/templates/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/templates`
|
||||||
|
* - POST `/guilds/{guild.id}/templates`
|
||||||
|
*/
|
||||||
|
guildTemplates(guildId: Snowflake): `/guilds/${string}/templates`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - PUT `/guilds/{guild.id}/templates/{template.code}`
|
||||||
|
* - PATCH `/guilds/{guild.id}/templates/{template.code}`
|
||||||
|
* - DELETE `/guilds/{guild.id}/templates/{template.code}`
|
||||||
|
*/
|
||||||
|
guildTemplate(guildId: Snowflake, code: string): `/guilds/${string}/templates/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/channels/{channel.id}/polls/{message.id}/answers/{answer_id}`
|
||||||
|
*/
|
||||||
|
pollAnswerVoters(channelId: Snowflake, messageId: Snowflake, answerId: number): `/channels/${string}/polls/${string}/answers/${number}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/channels/{channel.id}/polls/{message.id}/expire`
|
||||||
|
*/
|
||||||
|
expirePoll(channelId: Snowflake, messageId: Snowflake): `/channels/${string}/polls/${string}/expire`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/channels/{channel.id}/threads`
|
||||||
|
* - POST `/channels/{channel.id}/messages/{message.id}/threads`
|
||||||
|
*/
|
||||||
|
threads(parentId: Snowflake, messageId?: Snowflake): `/channels/${Snowflake}/messages/${Snowflake}/threads` | `/channels/${Snowflake}/threads`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/threads/active`
|
||||||
|
*/
|
||||||
|
guildActiveThreads(guildId: Snowflake): `/guilds/${string}/threads/active`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/channels/{channel.id}/threads/active`
|
||||||
|
* (deprecated, removed in API v10, use {@link https://discord.com/developers/docs/resources/guild#list-active-threads | List Active Guild Threads} instead.)
|
||||||
|
* - GET `/channels/{channel.id}/threads/archived/public`
|
||||||
|
* - GET `/channels/{channel.id}/threads/archived/private`
|
||||||
|
*/
|
||||||
|
channelThreads(channelId: Snowflake, archived?: 'private' | 'public'): `/channels/${Snowflake}/threads/active` | `/channels/${Snowflake}/threads/archived/${'private' | 'public'}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/channels/{channel.id}/users/@me/threads/archived/private`
|
||||||
|
*/
|
||||||
|
channelJoinedArchivedThreads(channelId: Snowflake): `/channels/${string}/users/@me/threads/archived/private`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/channels/{thread.id}/thread-members`
|
||||||
|
* - GET `/channels/{thread.id}/thread-members/{user.id}`
|
||||||
|
* - PUT `/channels/{thread.id}/thread-members/@me`
|
||||||
|
* - PUT `/channels/{thread.id}/thread-members/{user.id}`
|
||||||
|
* - DELETE `/channels/{thread.id}/thread-members/@me`
|
||||||
|
* - DELETE `/channels/{thread.id}/thread-members/{user.id}`
|
||||||
|
*/
|
||||||
|
threadMembers(threadId: Snowflake, userId?: Snowflake | '@me'): `/channels/${Snowflake}/thread-members/${Snowflake | '@me'}` | `/channels/${Snowflake}/thread-members`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/users/@me`
|
||||||
|
* - GET `/users/{user.id}`
|
||||||
|
* - PATCH `/users/@me`
|
||||||
|
*
|
||||||
|
* @param userId - The user ID, defaulted to `@me`
|
||||||
|
*/
|
||||||
|
user(userId?: Snowflake | '@me'): `/users/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/users/@me/applications/{application.id}/role-connection`
|
||||||
|
* - PUT `/users/@me/applications/{application.id}/role-connection`
|
||||||
|
*/
|
||||||
|
userApplicationRoleConnection(applicationId: Snowflake): `/users/@me/applications/${string}/role-connection`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/users/@me/guilds`
|
||||||
|
*/
|
||||||
|
userGuilds(): "/users/@me/guilds";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/users/@me/guilds/{guild.id}/member`
|
||||||
|
*/
|
||||||
|
userGuildMember(guildId: Snowflake): `/users/@me/guilds/${string}/member`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - DELETE `/users/@me/guilds/{guild.id}`
|
||||||
|
*/
|
||||||
|
userGuild(guildId: Snowflake): `/users/@me/guilds/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/users/@me/channels`
|
||||||
|
*/
|
||||||
|
userChannels(): "/users/@me/channels";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/users/@me/connections`
|
||||||
|
*/
|
||||||
|
userConnections(): "/users/@me/connections";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/voice/regions`
|
||||||
|
*/
|
||||||
|
voiceRegions(): "/voice/regions";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/channels/{channel.id}/webhooks`
|
||||||
|
* - POST `/channels/{channel.id}/webhooks`
|
||||||
|
*/
|
||||||
|
channelWebhooks(channelId: Snowflake): `/channels/${string}/webhooks`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/webhooks`
|
||||||
|
*/
|
||||||
|
guildWebhooks(guildId: Snowflake): `/guilds/${string}/webhooks`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/webhooks/{webhook.id}`
|
||||||
|
* - GET `/webhooks/{webhook.id}/{webhook.token}`
|
||||||
|
* - PATCH `/webhooks/{webhook.id}`
|
||||||
|
* - PATCH `/webhooks/{webhook.id}/{webhook.token}`
|
||||||
|
* - DELETE `/webhooks/{webhook.id}`
|
||||||
|
* - DELETE `/webhooks/{webhook.id}/{webhook.token}`
|
||||||
|
* - POST `/webhooks/{webhook.id}/{webhook.token}`
|
||||||
|
*
|
||||||
|
* - POST `/webhooks/{application.id}/{interaction.token}`
|
||||||
|
*/
|
||||||
|
webhook(webhookId: Snowflake, webhookToken?: string): `/webhooks/${Snowflake}/${string}` | `/webhooks/${Snowflake}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/webhooks/{webhook.id}/{webhook.token}/messages/@original`
|
||||||
|
* - GET `/webhooks/{webhook.id}/{webhook.token}/messages/{message.id}`
|
||||||
|
* - PATCH `/webhooks/{webhook.id}/{webhook.token}/messages/@original`
|
||||||
|
* - PATCH `/webhooks/{webhook.id}/{webhook.token}/messages/{message.id}`
|
||||||
|
* - DELETE `/webhooks/{webhook.id}/{webhook.token}/messages/@original`
|
||||||
|
* - DELETE `/webhooks/{webhook.id}/{webhook.token}/messages/{message.id}`
|
||||||
|
*
|
||||||
|
* - PATCH `/webhooks/{application.id}/{interaction.token}/messages/@original`
|
||||||
|
* - PATCH `/webhooks/{application.id}/{interaction.token}/messages/{message.id}`
|
||||||
|
* - DELETE `/webhooks/{application.id}/{interaction.token}/messages/{message.id}`
|
||||||
|
*/
|
||||||
|
webhookMessage(webhookId: Snowflake, webhookToken: string, messageId?: Snowflake | '@original'): `/webhooks/${string}/${string}/messages/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/webhooks/{webhook.id}/{webhook.token}/github`
|
||||||
|
* - POST `/webhooks/{webhook.id}/{webhook.token}/slack`
|
||||||
|
*/
|
||||||
|
webhookPlatform(webhookId: Snowflake, webhookToken: string, platform: 'github' | 'slack'): `/webhooks/${string}/${string}/github` | `/webhooks/${string}/${string}/slack`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/gateway`
|
||||||
|
*/
|
||||||
|
gateway(): "/gateway";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/gateway/bot`
|
||||||
|
*/
|
||||||
|
gatewayBot(): "/gateway/bot";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/oauth2/applications/@me`
|
||||||
|
*/
|
||||||
|
oauth2CurrentApplication(): "/oauth2/applications/@me";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/oauth2/@me`
|
||||||
|
*/
|
||||||
|
oauth2CurrentAuthorization(): "/oauth2/@me";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/oauth2/authorize`
|
||||||
|
*/
|
||||||
|
oauth2Authorization(): "/oauth2/authorize";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/oauth2/token`
|
||||||
|
*/
|
||||||
|
oauth2TokenExchange(): "/oauth2/token";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/oauth2/token/revoke`
|
||||||
|
*/
|
||||||
|
oauth2TokenRevocation(): "/oauth2/token/revoke";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/applications/{application.id}/commands`
|
||||||
|
* - PUT `/applications/{application.id}/commands`
|
||||||
|
* - POST `/applications/{application.id}/commands`
|
||||||
|
*/
|
||||||
|
applicationCommands(applicationId: Snowflake): `/applications/${string}/commands`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/applications/{application.id}/commands/{command.id}`
|
||||||
|
* - PATCH `/applications/{application.id}/commands/{command.id}`
|
||||||
|
* - DELETE `/applications/{application.id}/commands/{command.id}`
|
||||||
|
*/
|
||||||
|
applicationCommand(applicationId: Snowflake, commandId: Snowflake): `/applications/${string}/commands/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/applications/{application.id}/guilds/{guild.id}/commands`
|
||||||
|
* - PUT `/applications/{application.id}/guilds/{guild.id}/commands`
|
||||||
|
* - POST `/applications/{application.id}/guilds/{guild.id}/commands`
|
||||||
|
*/
|
||||||
|
applicationGuildCommands(applicationId: Snowflake, guildId: Snowflake): `/applications/${string}/guilds/${string}/commands`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/applications/{application.id}/guilds/{guild.id}/commands/{command.id}`
|
||||||
|
* - PATCH `/applications/{application.id}/guilds/{guild.id}/commands/{command.id}`
|
||||||
|
* - DELETE `/applications/{application.id}/guilds/{guild.id}/commands/{command.id}`
|
||||||
|
*/
|
||||||
|
applicationGuildCommand(applicationId: Snowflake, guildId: Snowflake, commandId: Snowflake): `/applications/${string}/guilds/${string}/commands/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/interactions/{interaction.id}/{interaction.token}/callback`
|
||||||
|
*/
|
||||||
|
interactionCallback(interactionId: Snowflake, interactionToken: string): `/interactions/${string}/${string}/callback`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/member-verification`
|
||||||
|
* - PATCH `/guilds/{guild.id}/member-verification`
|
||||||
|
*
|
||||||
|
* @unstable https://github.com/discord/discord-api-docs/pull/2547
|
||||||
|
*/
|
||||||
|
guildMemberVerification(guildId: Snowflake): `/guilds/${string}/member-verification`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/voice-states/@me`
|
||||||
|
* - GET `/guilds/{guild.id}/voice-states/{user.id}`
|
||||||
|
* - PATCH `/guilds/{guild.id}/voice-states/@me`
|
||||||
|
* - PATCH `/guilds/{guild.id}/voice-states/{user.id}`
|
||||||
|
*/
|
||||||
|
guildVoiceState(guildId: Snowflake, userId?: Snowflake | '@me'): `/guilds/${string}/voice-states/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/applications/{application.id}/guilds/{guild.id}/commands/permissions`
|
||||||
|
* - PUT `/applications/{application.id}/guilds/{guild.id}/commands/permissions`
|
||||||
|
*/
|
||||||
|
guildApplicationCommandsPermissions(applicationId: Snowflake, guildId: Snowflake): `/applications/${string}/guilds/${string}/commands/permissions`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/applications/{application.id}/guilds/{guild.id}/commands/{command.id}/permissions`
|
||||||
|
* - PUT `/applications/{application.id}/guilds/{guild.id}/commands/{command.id}/permissions`
|
||||||
|
*/
|
||||||
|
applicationCommandPermissions(applicationId: Snowflake, guildId: Snowflake, commandId: Snowflake): `/applications/${string}/guilds/${string}/commands/${string}/permissions`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/welcome-screen`
|
||||||
|
* - PATCH `/guilds/{guild.id}/welcome-screen`
|
||||||
|
*/
|
||||||
|
guildWelcomeScreen(guildId: Snowflake): `/guilds/${string}/welcome-screen`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/stage-instances`
|
||||||
|
*/
|
||||||
|
stageInstances(): "/stage-instances";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/stage-instances/{channel.id}`
|
||||||
|
* - PATCH `/stage-instances/{channel.id}`
|
||||||
|
* - DELETE `/stage-instances/{channel.id}`
|
||||||
|
*/
|
||||||
|
stageInstance(channelId: Snowflake): `/stage-instances/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/stickers/{sticker.id}`
|
||||||
|
*/
|
||||||
|
sticker(stickerId: Snowflake): `/stickers/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/sticker-packs`
|
||||||
|
*/
|
||||||
|
stickerPacks(): "/sticker-packs";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/sticker-packs/{pack.id}`
|
||||||
|
*/
|
||||||
|
stickerPack(packId: Snowflake): `/sticker-packs/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/sticker-packs`
|
||||||
|
*
|
||||||
|
* @deprecated Use {@link RoutesDeclarations.stickerPacks} instead.
|
||||||
|
*/
|
||||||
|
nitroStickerPacks(): "/sticker-packs";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/stickers`
|
||||||
|
* - POST `/guilds/{guild.id}/stickers`
|
||||||
|
*/
|
||||||
|
guildStickers(guildId: Snowflake): `/guilds/${string}/stickers`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/stickers/{sticker.id}`
|
||||||
|
* - PATCH `/guilds/{guild.id}/stickers/{sticker.id}`
|
||||||
|
* - DELETE `/guilds/{guild.id}/stickers/{sticker.id}`
|
||||||
|
*/
|
||||||
|
guildSticker(guildId: Snowflake, stickerId: Snowflake): `/guilds/${string}/stickers/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/scheduled-events`
|
||||||
|
* - POST `/guilds/{guild.id}/scheduled-events`
|
||||||
|
*/
|
||||||
|
guildScheduledEvents(guildId: Snowflake): `/guilds/${string}/scheduled-events`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/scheduled-events/{guildScheduledEvent.id}`
|
||||||
|
* - PATCH `/guilds/{guild.id}/scheduled-events/{guildScheduledEvent.id}`
|
||||||
|
* - DELETE `/guilds/{guild.id}/scheduled-events/{guildScheduledEvent.id}`
|
||||||
|
*/
|
||||||
|
guildScheduledEvent(guildId: Snowflake, guildScheduledEventId: Snowflake): `/guilds/${string}/scheduled-events/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/scheduled-events/{guildScheduledEvent.id}/users`
|
||||||
|
*/
|
||||||
|
guildScheduledEventUsers(guildId: Snowflake, guildScheduledEventId: Snowflake): `/guilds/${string}/scheduled-events/${string}/users`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/onboarding`
|
||||||
|
* - PUT `/guilds/{guild.id}/onboarding`
|
||||||
|
*/
|
||||||
|
guildOnboarding(guildId: Snowflake): `/guilds/${string}/onboarding`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - PUT `/guilds/${guild.id}/incident-actions`
|
||||||
|
*/
|
||||||
|
guildIncidentActions(guildId: Snowflake): `/guilds/${string}/incident-actions`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/applications/@me`
|
||||||
|
* - PATCH `/applications/@me`
|
||||||
|
*/
|
||||||
|
currentApplication(): "/applications/@me";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/applications/{application.id}/entitlements`
|
||||||
|
* - POST `/applications/{application.id}/entitlements`
|
||||||
|
*/
|
||||||
|
entitlements(applicationId: Snowflake): `/applications/${string}/entitlements`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/applications/{application.id}/entitlements/{entitlement.id}`
|
||||||
|
* - DELETE `/applications/{application.id}/entitlements/{entitlement.id}`
|
||||||
|
*/
|
||||||
|
entitlement(applicationId: Snowflake, entitlementId: Snowflake): `/applications/${string}/entitlements/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/applications/{application.id}/skus`
|
||||||
|
*/
|
||||||
|
skus(applicationId: Snowflake): `/applications/${string}/skus`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/guilds/{guild.id}/bulk-ban`
|
||||||
|
*/
|
||||||
|
guildBulkBan(guildId: Snowflake): `/guilds/${string}/bulk-ban`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/applications/{application.id}/entitlements/{entitlement.id}/consume`
|
||||||
|
*/
|
||||||
|
consumeEntitlement(applicationId: Snowflake, entitlementId: Snowflake): `/applications/${string}/entitlements/${string}/consume`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/applications/{application.id}/emojis`
|
||||||
|
* - POST `/applications/{application.id}/emojis`
|
||||||
|
*/
|
||||||
|
applicationEmojis(applicationId: Snowflake): `/applications/${string}/emojis`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/applications/{application.id}/emojis/{emoji.id}`
|
||||||
|
* - PATCH `/applications/{application.id}/emojis/{emoji.id}`
|
||||||
|
* - DELETE `/applications/{application.id}/emojis/{emoji.id}`
|
||||||
|
*/
|
||||||
|
applicationEmoji(applicationId: Snowflake, emojiId: Snowflake): `/applications/${string}/emojis/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/skus/{sku.id}/subscriptions`
|
||||||
|
*/
|
||||||
|
skuSubscriptions(skuId: Snowflake): `/skus/${string}/subscriptions`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/skus/{sku.id}/subscriptions/{subscription.id}`
|
||||||
|
*/
|
||||||
|
skuSubscription(skuId: Snowflake, subscriptionId: Snowflake): `/skus/${string}/subscriptions/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - POST `/channels/{channel.id}/send-soundboard-sound`
|
||||||
|
*/
|
||||||
|
sendSoundboardSound(channelId: Snowflake): `/channels/${string}/send-soundboard-sound`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/soundboard-default-sounds`
|
||||||
|
*/
|
||||||
|
soundboardDefaultSounds(): "/soundboard-default-sounds";
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/soundboard-sounds`
|
||||||
|
* - POST `/guilds/{guild.id}/soundboard-sounds`
|
||||||
|
*/
|
||||||
|
guildSoundboardSounds(guildId: Snowflake): `/guilds/${string}/soundboard-sounds`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/soundboard-sounds/{sound.id}`
|
||||||
|
* - PATCH `/guilds/{guild.id}/soundboard-sounds/{sound.id}`
|
||||||
|
* - DELETE `/guilds/{guild.id}/soundboard-sounds/{sound.id}`
|
||||||
|
*/
|
||||||
|
guildSoundboardSound(guildId: Snowflake, soundId: Snowflake): `/guilds/${string}/soundboard-sounds/${string}`;
|
||||||
|
}
|
||||||
|
export interface CDNRoutesDeclarations {
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/emojis/{emoji.id}.{png|jpeg|webp|gif}`
|
||||||
|
*
|
||||||
|
* As this route supports GIFs, the hash will begin with `a_` if it is available in GIF format
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP, GIF
|
||||||
|
*/
|
||||||
|
emoji<Format extends EmojiFormat>(emojiId: Snowflake, format: Format): `/emojis/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/icons/{guild.id}/{guild.icon}.{png|jpeg|webp|gif}`
|
||||||
|
*
|
||||||
|
* As this route supports GIFs, the hash will begin with `a_` if it is available in GIF format
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP, GIF
|
||||||
|
*/
|
||||||
|
guildIcon<Format extends GuildIconFormat>(guildId: Snowflake, guildIcon: string, format: Format): `/icons/${string}/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/splashes/{guild.id}/{guild.splash}.{png|jpeg|webp}`
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP
|
||||||
|
*/
|
||||||
|
guildSplash<Format extends GuildSplashFormat>(guildId: Snowflake, guildSplash: string, format: Format): `/splashes/${string}/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/discovery-splashes/{guild.id}/{guild.discovery_splash}.{png|jpeg|webp}`
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP
|
||||||
|
*/
|
||||||
|
guildDiscoverySplash<Format extends GuildDiscoverySplashFormat>(guildId: Snowflake, guildDiscoverySplash: string, format: Format): `/discovery-splashes/${string}/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/banners/{guild.id}/{guild.banner}.{png|jpeg|webp|gif}`
|
||||||
|
*
|
||||||
|
* As this route supports GIFs, the hash will begin with `a_` if it is available in GIF format
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP, GIF
|
||||||
|
*/
|
||||||
|
guildBanner<Format extends GuildBannerFormat>(guildId: Snowflake, guildBanner: string, format: Format): `/banners/${string}/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/banners/{user.id}/{user.banner}.{png|jpeg|webp|gif}`
|
||||||
|
*
|
||||||
|
* As this route supports GIFs, the hash will begin with `a_` if it is available in GIF format
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP, GIF
|
||||||
|
*/
|
||||||
|
userBanner<Format extends UserBannerFormat>(userId: Snowflake, userBanner: string, format: Format): `/banners/${string}/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/embed/avatars/{index}.png`
|
||||||
|
*
|
||||||
|
* The value for `index` parameter depends on whether the user is {@link https://discord.com/developers/docs/change-log#unique-usernames-on-discord | migrated to the new username system}.
|
||||||
|
* For users on the new username system, `index` will be `(user.id >> 22) % 6`.
|
||||||
|
* For users on the legacy username system, `index` will be `user.discriminator % 5`.
|
||||||
|
*
|
||||||
|
* This route supports the extension: PNG
|
||||||
|
*/
|
||||||
|
defaultUserAvatar<Index extends DefaultUserAvatarAssets>(index: Index): `/embed/avatars/${Index}.png`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/avatars/{user.id}/{user.avatar}.{png|jpeg|webp|gif}`
|
||||||
|
*
|
||||||
|
* As this route supports GIFs, the hash will begin with `a_` if it is available in GIF format
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP, GIF
|
||||||
|
*/
|
||||||
|
userAvatar<Format extends UserAvatarFormat>(userId: Snowflake, userAvatar: string, format: Format): `/avatars/${string}/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/{guild.id}/users/{user.id}/avatars/{guild_member.avatar}.{png|jpeg|webp|gif}`
|
||||||
|
*
|
||||||
|
* As this route supports GIFs, the hash will begin with `a_` if it is available in GIF format
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP, GIF
|
||||||
|
*/
|
||||||
|
guildMemberAvatar<Format extends GuildMemberAvatarFormat>(guildId: Snowflake, userId: Snowflake, memberAvatar: string, format: Format): `/guilds/${string}/users/${string}/avatars/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/avatar-decorations/{user.id}/{user.avatar_decoration}.png`
|
||||||
|
*
|
||||||
|
* This route supports the extension: PNG
|
||||||
|
*
|
||||||
|
* @deprecated Use {@link CDNRoutesDeclarations.avatarDecoration} instead.
|
||||||
|
*/
|
||||||
|
userAvatarDecoration(userId: Snowflake, userAvatarDecoration: string): `/avatar-decorations/${string}/${string}.png`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/avatar-decoration-presets/{avatar_decoration_data_asset}.png`
|
||||||
|
*
|
||||||
|
* This route supports the extension: PNG
|
||||||
|
*/
|
||||||
|
avatarDecoration(avatarDecorationDataAsset: string): `/avatar-decoration-presets/${string}.png`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/app-icons/{application.id}/{application.icon}.{png|jpeg|webp}`
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP
|
||||||
|
*/
|
||||||
|
applicationIcon<Format extends ApplicationIconFormat>(applicationId: Snowflake, applicationIcon: string, format: Format): `/app-icons/${string}/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/app-icons/{application.id}/{application.cover_image}.{png|jpeg|webp}`
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP
|
||||||
|
*/
|
||||||
|
applicationCover<Format extends ApplicationCoverFormat>(applicationId: Snowflake, applicationCoverImage: string, format: Format): `/app-icons/${string}/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/app-assets/{application.id}/{application.asset_id}.{png|jpeg|webp}`
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP
|
||||||
|
*/
|
||||||
|
applicationAsset<Format extends ApplicationAssetFormat>(applicationId: Snowflake, applicationAssetId: string, format: Format): `/app-assets/${string}/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/app-assets/{application.id}/achievements/{achievement.id}/icons/{achievement.icon}.{png|jpeg|webp}`
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP
|
||||||
|
*/
|
||||||
|
achievementIcon<Format extends AchievementIconFormat>(applicationId: Snowflake, achievementId: Snowflake, achievementIconHash: string, format: Format): `/app-assets/${string}/achievements/${string}/icons/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/app-assets/710982414301790216/store/{sticker_pack.banner.asset_id}.{png|jpeg|webp}`
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP
|
||||||
|
*/
|
||||||
|
stickerPackBanner<Format extends StickerPackBannerFormat>(stickerPackBannerAssetId: Snowflake, format: Format): `/app-assets/710982414301790216/store/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/app-assets/${application.id}/store/${asset.id}.{png|jpeg|webp}}`
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP
|
||||||
|
*/
|
||||||
|
storePageAsset<Format extends StorePageAssetFormat = ImageFormat.PNG>(applicationId: Snowflake, assetId: string, format?: Format): `/app-assets/${string}/store/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/team-icons/{team.id}/{team.icon}.{png|jpeg|webp}`
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP
|
||||||
|
*/
|
||||||
|
teamIcon<Format extends TeamIconFormat>(teamId: Snowflake, teamIcon: string, format: Format): `/team-icons/${string}/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/stickers/{sticker.id}.{png|json}`
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, Lottie, GIF
|
||||||
|
*/
|
||||||
|
sticker<Format extends StickerFormat>(stickerId: Snowflake, format: Format): `/stickers/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/role-icons/{role.id}/{role.icon}.{png|jpeg|webp}`
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP
|
||||||
|
*/
|
||||||
|
roleIcon<Format extends RoleIconFormat>(roleId: Snowflake, roleIcon: string, format: Format): `/role-icons/${string}/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guild-events/{guild_scheduled_event.id}/{guild_scheduled_event.image}.{png|jpeg|webp}`
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP
|
||||||
|
*/
|
||||||
|
guildScheduledEventCover<Format extends GuildScheduledEventCoverFormat>(guildScheduledEventId: Snowflake, guildScheduledEventCoverImage: string, format: Format): `/guild-events/${string}/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guilds/${guild.id}/users/${user.id}/banners/${guild_member.banner}.{png|jpeg|webp|gif}`
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP, GIF
|
||||||
|
*/
|
||||||
|
guildMemberBanner<Format extends GuildMemberBannerFormat>(guildId: Snowflake, userId: Snowflake, guildMemberBanner: string, format: Format): `/guilds/${string}/users/${string}/banners/${string}.${Format}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/soundboard-sounds/${sound.id}`
|
||||||
|
*/
|
||||||
|
soundboardSound(soundId: Snowflake): `/soundboard-sounds/${string}`;
|
||||||
|
/**
|
||||||
|
* Route for:
|
||||||
|
* - GET `/guild-tag-badges/{guild.id}/{badge}.{png|jpeg|webp}`
|
||||||
|
*
|
||||||
|
* This route supports the extensions: PNG, JPEG, WebP
|
||||||
|
*/
|
||||||
|
guildTagBadge<Format extends GuildTagBadgeFormat>(guildId: Snowflake, guildTagBadge: string, format: Format): `/guild-tag-badges/${string}/${string}.${Format}`;
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=interfaces.d.ts.map
|
||||||
1
node_modules/@discordjs/builders/node_modules/discord-api-types/_generated_/rest/v9/interfaces.d.ts.map
generated
vendored
Normal file
1
node_modules/@discordjs/builders/node_modules/discord-api-types/_generated_/rest/v9/interfaces.d.ts.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
3
node_modules/@discordjs/builders/node_modules/discord-api-types/_generated_/rest/v9/interfaces.js
generated
vendored
Normal file
3
node_modules/@discordjs/builders/node_modules/discord-api-types/_generated_/rest/v9/interfaces.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
"use strict";
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
//# sourceMappingURL=interfaces.js.map
|
||||||
1
node_modules/@discordjs/builders/node_modules/discord-api-types/_generated_/rest/v9/interfaces.js.map
generated
vendored
Normal file
1
node_modules/@discordjs/builders/node_modules/discord-api-types/_generated_/rest/v9/interfaces.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["interfaces.ts"],"names":[],"mappings":""}
|
||||||
9
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/common.d.ts
generated
vendored
Normal file
9
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/common.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
/**
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/gateway#connecting-gateway-url-query-string-params}
|
||||||
|
*/
|
||||||
|
export interface GatewayURLQuery {
|
||||||
|
v: string;
|
||||||
|
encoding: 'etf' | 'json';
|
||||||
|
compress?: 'zlib-stream';
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=common.d.ts.map
|
||||||
1
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/common.d.ts.map
generated
vendored
Normal file
1
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/common.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["common.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC/B,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,EAAE,KAAK,GAAG,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,aAAa,CAAC;CACzB"}
|
||||||
3
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/common.js
generated
vendored
Normal file
3
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/common.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
"use strict";
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
//# sourceMappingURL=common.js.map
|
||||||
1
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/common.js.map
generated
vendored
Normal file
1
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/common.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"common.js","sourceRoot":"","sources":["common.ts"],"names":[],"mappings":""}
|
||||||
2
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/index.d.ts
generated
vendored
Normal file
2
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
export * from './v10';
|
||||||
|
//# sourceMappingURL=index.d.ts.map
|
||||||
1
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/index.d.ts.map
generated
vendored
Normal file
1
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/index.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,cAAc,OAAO,CAAC"}
|
||||||
20
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/index.js
generated
vendored
Normal file
20
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/index.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
"use strict";
|
||||||
|
// This file exports all the types available in the recommended gateway version
|
||||||
|
// Thereby, things MAY break in the future. Try sticking to imports from a specific version
|
||||||
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||||
|
if (k2 === undefined) k2 = k;
|
||||||
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||||
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||||
|
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||||
|
}
|
||||||
|
Object.defineProperty(o, k2, desc);
|
||||||
|
}) : (function(o, m, k, k2) {
|
||||||
|
if (k2 === undefined) k2 = k;
|
||||||
|
o[k2] = m[k];
|
||||||
|
}));
|
||||||
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
||||||
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
__exportStar(require("./v10"), exports);
|
||||||
|
//# sourceMappingURL=index.js.map
|
||||||
1
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/index.js.map
generated
vendored
Normal file
1
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA,+EAA+E;AAC/E,2FAA2F;;;;;;;;;;;;;;;;AAE3F,wCAAsB"}
|
||||||
9
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/index.mjs
generated
vendored
Normal file
9
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import mod from "./index.js";
|
||||||
|
|
||||||
|
export default mod;
|
||||||
|
export const GatewayCloseCodes = mod.GatewayCloseCodes;
|
||||||
|
export const GatewayDispatchEvents = mod.GatewayDispatchEvents;
|
||||||
|
export const GatewayIntentBits = mod.GatewayIntentBits;
|
||||||
|
export const GatewayOpcodes = mod.GatewayOpcodes;
|
||||||
|
export const GatewayVersion = mod.GatewayVersion;
|
||||||
|
export const VoiceChannelEffectSendAnimationType = mod.VoiceChannelEffectSendAnimationType;
|
||||||
2054
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v10.d.ts
generated
vendored
Normal file
2054
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v10.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v10.d.ts.map
generated
vendored
Normal file
1
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v10.d.ts.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
277
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v10.js
generated
vendored
Normal file
277
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v10.js
generated
vendored
Normal file
@@ -0,0 +1,277 @@
|
|||||||
|
"use strict";
|
||||||
|
/**
|
||||||
|
* Types extracted from https://discord.com/developers/docs/topics/gateway
|
||||||
|
*/
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.VoiceChannelEffectSendAnimationType = exports.GatewayDispatchEvents = exports.GatewayIntentBits = exports.GatewayCloseCodes = exports.GatewayOpcodes = exports.GatewayVersion = void 0;
|
||||||
|
exports.GatewayVersion = '10';
|
||||||
|
/**
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/opcodes-and-status-codes#gateway-gateway-opcodes}
|
||||||
|
*/
|
||||||
|
var GatewayOpcodes;
|
||||||
|
(function (GatewayOpcodes) {
|
||||||
|
/**
|
||||||
|
* An event was dispatched
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["Dispatch"] = 0] = "Dispatch";
|
||||||
|
/**
|
||||||
|
* A bidirectional opcode to maintain an active gateway connection.
|
||||||
|
* Fired periodically by the client, or fired by the gateway to request an immediate heartbeat from the client.
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["Heartbeat"] = 1] = "Heartbeat";
|
||||||
|
/**
|
||||||
|
* Starts a new session during the initial handshake
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["Identify"] = 2] = "Identify";
|
||||||
|
/**
|
||||||
|
* Update the client's presence
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["PresenceUpdate"] = 3] = "PresenceUpdate";
|
||||||
|
/**
|
||||||
|
* Used to join/leave or move between voice channels
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["VoiceStateUpdate"] = 4] = "VoiceStateUpdate";
|
||||||
|
/**
|
||||||
|
* Resume a previous session that was disconnected
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["Resume"] = 6] = "Resume";
|
||||||
|
/**
|
||||||
|
* You should attempt to reconnect and resume immediately
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["Reconnect"] = 7] = "Reconnect";
|
||||||
|
/**
|
||||||
|
* Request information about offline guild members in a large guild
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["RequestGuildMembers"] = 8] = "RequestGuildMembers";
|
||||||
|
/**
|
||||||
|
* The session has been invalidated. You should reconnect and identify/resume accordingly
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["InvalidSession"] = 9] = "InvalidSession";
|
||||||
|
/**
|
||||||
|
* Sent immediately after connecting, contains the `heartbeat_interval` to use
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["Hello"] = 10] = "Hello";
|
||||||
|
/**
|
||||||
|
* Sent in response to receiving a heartbeat to acknowledge that it has been received
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["HeartbeatAck"] = 11] = "HeartbeatAck";
|
||||||
|
/**
|
||||||
|
* Request information about soundboard sounds in a set of guilds
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["RequestSoundboardSounds"] = 31] = "RequestSoundboardSounds";
|
||||||
|
})(GatewayOpcodes || (exports.GatewayOpcodes = GatewayOpcodes = {}));
|
||||||
|
/**
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/opcodes-and-status-codes#gateway-gateway-close-event-codes}
|
||||||
|
*/
|
||||||
|
var GatewayCloseCodes;
|
||||||
|
(function (GatewayCloseCodes) {
|
||||||
|
/**
|
||||||
|
* We're not sure what went wrong. Try reconnecting?
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["UnknownError"] = 4000] = "UnknownError";
|
||||||
|
/**
|
||||||
|
* You sent an invalid Gateway opcode or an invalid payload for an opcode. Don't do that!
|
||||||
|
*
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/gateway-events#payload-structure}
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["UnknownOpcode"] = 4001] = "UnknownOpcode";
|
||||||
|
/**
|
||||||
|
* You sent an invalid payload to us. Don't do that!
|
||||||
|
*
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/gateway#sending-events}
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["DecodeError"] = 4002] = "DecodeError";
|
||||||
|
/**
|
||||||
|
* You sent us a payload prior to identifying
|
||||||
|
*
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/gateway-events#identify}
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["NotAuthenticated"] = 4003] = "NotAuthenticated";
|
||||||
|
/**
|
||||||
|
* The account token sent with your identify payload is incorrect
|
||||||
|
*
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/gateway-events#identify}
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["AuthenticationFailed"] = 4004] = "AuthenticationFailed";
|
||||||
|
/**
|
||||||
|
* You sent more than one identify payload. Don't do that!
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["AlreadyAuthenticated"] = 4005] = "AlreadyAuthenticated";
|
||||||
|
/**
|
||||||
|
* The sequence sent when resuming the session was invalid. Reconnect and start a new session
|
||||||
|
*
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/gateway-events#resume}
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["InvalidSeq"] = 4007] = "InvalidSeq";
|
||||||
|
/**
|
||||||
|
* Woah nelly! You're sending payloads to us too quickly. Slow it down! You will be disconnected on receiving this
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["RateLimited"] = 4008] = "RateLimited";
|
||||||
|
/**
|
||||||
|
* Your session timed out. Reconnect and start a new one
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["SessionTimedOut"] = 4009] = "SessionTimedOut";
|
||||||
|
/**
|
||||||
|
* You sent us an invalid shard when identifying
|
||||||
|
*
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/gateway#sharding}
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["InvalidShard"] = 4010] = "InvalidShard";
|
||||||
|
/**
|
||||||
|
* The session would have handled too many guilds - you are required to shard your connection in order to connect
|
||||||
|
*
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/gateway#sharding}
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["ShardingRequired"] = 4011] = "ShardingRequired";
|
||||||
|
/**
|
||||||
|
* You sent an invalid version for the gateway
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["InvalidAPIVersion"] = 4012] = "InvalidAPIVersion";
|
||||||
|
/**
|
||||||
|
* You sent an invalid intent for a Gateway Intent. You may have incorrectly calculated the bitwise value
|
||||||
|
*
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/gateway#gateway-intents}
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["InvalidIntents"] = 4013] = "InvalidIntents";
|
||||||
|
/**
|
||||||
|
* You sent a disallowed intent for a Gateway Intent. You may have tried to specify an intent that you have not
|
||||||
|
* enabled or are not whitelisted for
|
||||||
|
*
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/gateway#gateway-intents}
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/gateway#privileged-intents}
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["DisallowedIntents"] = 4014] = "DisallowedIntents";
|
||||||
|
})(GatewayCloseCodes || (exports.GatewayCloseCodes = GatewayCloseCodes = {}));
|
||||||
|
/**
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/gateway#list-of-intents}
|
||||||
|
*/
|
||||||
|
var GatewayIntentBits;
|
||||||
|
(function (GatewayIntentBits) {
|
||||||
|
GatewayIntentBits[GatewayIntentBits["Guilds"] = 1] = "Guilds";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildMembers"] = 2] = "GuildMembers";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildModeration"] = 4] = "GuildModeration";
|
||||||
|
/**
|
||||||
|
* @deprecated This is the old name for {@link GatewayIntentBits.GuildModeration}
|
||||||
|
*/
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildBans"] = 4] = "GuildBans";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildExpressions"] = 8] = "GuildExpressions";
|
||||||
|
/**
|
||||||
|
* @deprecated This is the old name for {@link GatewayIntentBits.GuildExpressions}
|
||||||
|
*/
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildEmojisAndStickers"] = 8] = "GuildEmojisAndStickers";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildIntegrations"] = 16] = "GuildIntegrations";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildWebhooks"] = 32] = "GuildWebhooks";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildInvites"] = 64] = "GuildInvites";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildVoiceStates"] = 128] = "GuildVoiceStates";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildPresences"] = 256] = "GuildPresences";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildMessages"] = 512] = "GuildMessages";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildMessageReactions"] = 1024] = "GuildMessageReactions";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildMessageTyping"] = 2048] = "GuildMessageTyping";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["DirectMessages"] = 4096] = "DirectMessages";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["DirectMessageReactions"] = 8192] = "DirectMessageReactions";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["DirectMessageTyping"] = 16384] = "DirectMessageTyping";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["MessageContent"] = 32768] = "MessageContent";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildScheduledEvents"] = 65536] = "GuildScheduledEvents";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["AutoModerationConfiguration"] = 1048576] = "AutoModerationConfiguration";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["AutoModerationExecution"] = 2097152] = "AutoModerationExecution";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildMessagePolls"] = 16777216] = "GuildMessagePolls";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["DirectMessagePolls"] = 33554432] = "DirectMessagePolls";
|
||||||
|
})(GatewayIntentBits || (exports.GatewayIntentBits = GatewayIntentBits = {}));
|
||||||
|
/**
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/gateway-events#receive-events}
|
||||||
|
*/
|
||||||
|
var GatewayDispatchEvents;
|
||||||
|
(function (GatewayDispatchEvents) {
|
||||||
|
GatewayDispatchEvents["ApplicationCommandPermissionsUpdate"] = "APPLICATION_COMMAND_PERMISSIONS_UPDATE";
|
||||||
|
GatewayDispatchEvents["AutoModerationActionExecution"] = "AUTO_MODERATION_ACTION_EXECUTION";
|
||||||
|
GatewayDispatchEvents["AutoModerationRuleCreate"] = "AUTO_MODERATION_RULE_CREATE";
|
||||||
|
GatewayDispatchEvents["AutoModerationRuleDelete"] = "AUTO_MODERATION_RULE_DELETE";
|
||||||
|
GatewayDispatchEvents["AutoModerationRuleUpdate"] = "AUTO_MODERATION_RULE_UPDATE";
|
||||||
|
GatewayDispatchEvents["ChannelCreate"] = "CHANNEL_CREATE";
|
||||||
|
GatewayDispatchEvents["ChannelDelete"] = "CHANNEL_DELETE";
|
||||||
|
GatewayDispatchEvents["ChannelPinsUpdate"] = "CHANNEL_PINS_UPDATE";
|
||||||
|
GatewayDispatchEvents["ChannelUpdate"] = "CHANNEL_UPDATE";
|
||||||
|
GatewayDispatchEvents["EntitlementCreate"] = "ENTITLEMENT_CREATE";
|
||||||
|
GatewayDispatchEvents["EntitlementDelete"] = "ENTITLEMENT_DELETE";
|
||||||
|
GatewayDispatchEvents["EntitlementUpdate"] = "ENTITLEMENT_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildAuditLogEntryCreate"] = "GUILD_AUDIT_LOG_ENTRY_CREATE";
|
||||||
|
GatewayDispatchEvents["GuildBanAdd"] = "GUILD_BAN_ADD";
|
||||||
|
GatewayDispatchEvents["GuildBanRemove"] = "GUILD_BAN_REMOVE";
|
||||||
|
GatewayDispatchEvents["GuildCreate"] = "GUILD_CREATE";
|
||||||
|
GatewayDispatchEvents["GuildDelete"] = "GUILD_DELETE";
|
||||||
|
GatewayDispatchEvents["GuildEmojisUpdate"] = "GUILD_EMOJIS_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildIntegrationsUpdate"] = "GUILD_INTEGRATIONS_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildMemberAdd"] = "GUILD_MEMBER_ADD";
|
||||||
|
GatewayDispatchEvents["GuildMemberRemove"] = "GUILD_MEMBER_REMOVE";
|
||||||
|
GatewayDispatchEvents["GuildMembersChunk"] = "GUILD_MEMBERS_CHUNK";
|
||||||
|
GatewayDispatchEvents["GuildMemberUpdate"] = "GUILD_MEMBER_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildRoleCreate"] = "GUILD_ROLE_CREATE";
|
||||||
|
GatewayDispatchEvents["GuildRoleDelete"] = "GUILD_ROLE_DELETE";
|
||||||
|
GatewayDispatchEvents["GuildRoleUpdate"] = "GUILD_ROLE_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildScheduledEventCreate"] = "GUILD_SCHEDULED_EVENT_CREATE";
|
||||||
|
GatewayDispatchEvents["GuildScheduledEventDelete"] = "GUILD_SCHEDULED_EVENT_DELETE";
|
||||||
|
GatewayDispatchEvents["GuildScheduledEventUpdate"] = "GUILD_SCHEDULED_EVENT_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildScheduledEventUserAdd"] = "GUILD_SCHEDULED_EVENT_USER_ADD";
|
||||||
|
GatewayDispatchEvents["GuildScheduledEventUserRemove"] = "GUILD_SCHEDULED_EVENT_USER_REMOVE";
|
||||||
|
GatewayDispatchEvents["GuildSoundboardSoundCreate"] = "GUILD_SOUNDBOARD_SOUND_CREATE";
|
||||||
|
GatewayDispatchEvents["GuildSoundboardSoundDelete"] = "GUILD_SOUNDBOARD_SOUND_DELETE";
|
||||||
|
GatewayDispatchEvents["GuildSoundboardSoundsUpdate"] = "GUILD_SOUNDBOARD_SOUNDS_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildSoundboardSoundUpdate"] = "GUILD_SOUNDBOARD_SOUND_UPDATE";
|
||||||
|
GatewayDispatchEvents["SoundboardSounds"] = "SOUNDBOARD_SOUNDS";
|
||||||
|
GatewayDispatchEvents["GuildStickersUpdate"] = "GUILD_STICKERS_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildUpdate"] = "GUILD_UPDATE";
|
||||||
|
GatewayDispatchEvents["IntegrationCreate"] = "INTEGRATION_CREATE";
|
||||||
|
GatewayDispatchEvents["IntegrationDelete"] = "INTEGRATION_DELETE";
|
||||||
|
GatewayDispatchEvents["IntegrationUpdate"] = "INTEGRATION_UPDATE";
|
||||||
|
GatewayDispatchEvents["InteractionCreate"] = "INTERACTION_CREATE";
|
||||||
|
GatewayDispatchEvents["InviteCreate"] = "INVITE_CREATE";
|
||||||
|
GatewayDispatchEvents["InviteDelete"] = "INVITE_DELETE";
|
||||||
|
GatewayDispatchEvents["MessageCreate"] = "MESSAGE_CREATE";
|
||||||
|
GatewayDispatchEvents["MessageDelete"] = "MESSAGE_DELETE";
|
||||||
|
GatewayDispatchEvents["MessageDeleteBulk"] = "MESSAGE_DELETE_BULK";
|
||||||
|
GatewayDispatchEvents["MessagePollVoteAdd"] = "MESSAGE_POLL_VOTE_ADD";
|
||||||
|
GatewayDispatchEvents["MessagePollVoteRemove"] = "MESSAGE_POLL_VOTE_REMOVE";
|
||||||
|
GatewayDispatchEvents["MessageReactionAdd"] = "MESSAGE_REACTION_ADD";
|
||||||
|
GatewayDispatchEvents["MessageReactionRemove"] = "MESSAGE_REACTION_REMOVE";
|
||||||
|
GatewayDispatchEvents["MessageReactionRemoveAll"] = "MESSAGE_REACTION_REMOVE_ALL";
|
||||||
|
GatewayDispatchEvents["MessageReactionRemoveEmoji"] = "MESSAGE_REACTION_REMOVE_EMOJI";
|
||||||
|
GatewayDispatchEvents["MessageUpdate"] = "MESSAGE_UPDATE";
|
||||||
|
GatewayDispatchEvents["PresenceUpdate"] = "PRESENCE_UPDATE";
|
||||||
|
GatewayDispatchEvents["RateLimited"] = "RATE_LIMITED";
|
||||||
|
GatewayDispatchEvents["Ready"] = "READY";
|
||||||
|
GatewayDispatchEvents["Resumed"] = "RESUMED";
|
||||||
|
GatewayDispatchEvents["StageInstanceCreate"] = "STAGE_INSTANCE_CREATE";
|
||||||
|
GatewayDispatchEvents["StageInstanceDelete"] = "STAGE_INSTANCE_DELETE";
|
||||||
|
GatewayDispatchEvents["StageInstanceUpdate"] = "STAGE_INSTANCE_UPDATE";
|
||||||
|
GatewayDispatchEvents["SubscriptionCreate"] = "SUBSCRIPTION_CREATE";
|
||||||
|
GatewayDispatchEvents["SubscriptionDelete"] = "SUBSCRIPTION_DELETE";
|
||||||
|
GatewayDispatchEvents["SubscriptionUpdate"] = "SUBSCRIPTION_UPDATE";
|
||||||
|
GatewayDispatchEvents["ThreadCreate"] = "THREAD_CREATE";
|
||||||
|
GatewayDispatchEvents["ThreadDelete"] = "THREAD_DELETE";
|
||||||
|
GatewayDispatchEvents["ThreadListSync"] = "THREAD_LIST_SYNC";
|
||||||
|
GatewayDispatchEvents["ThreadMembersUpdate"] = "THREAD_MEMBERS_UPDATE";
|
||||||
|
GatewayDispatchEvents["ThreadMemberUpdate"] = "THREAD_MEMBER_UPDATE";
|
||||||
|
GatewayDispatchEvents["ThreadUpdate"] = "THREAD_UPDATE";
|
||||||
|
GatewayDispatchEvents["TypingStart"] = "TYPING_START";
|
||||||
|
GatewayDispatchEvents["UserUpdate"] = "USER_UPDATE";
|
||||||
|
GatewayDispatchEvents["VoiceChannelEffectSend"] = "VOICE_CHANNEL_EFFECT_SEND";
|
||||||
|
GatewayDispatchEvents["VoiceServerUpdate"] = "VOICE_SERVER_UPDATE";
|
||||||
|
GatewayDispatchEvents["VoiceStateUpdate"] = "VOICE_STATE_UPDATE";
|
||||||
|
GatewayDispatchEvents["WebhooksUpdate"] = "WEBHOOKS_UPDATE";
|
||||||
|
})(GatewayDispatchEvents || (exports.GatewayDispatchEvents = GatewayDispatchEvents = {}));
|
||||||
|
/**
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/gateway-events#voice-channel-effect-send-animation-types}
|
||||||
|
*/
|
||||||
|
var VoiceChannelEffectSendAnimationType;
|
||||||
|
(function (VoiceChannelEffectSendAnimationType) {
|
||||||
|
/**
|
||||||
|
* A fun animation, sent by a Nitro subscriber
|
||||||
|
*/
|
||||||
|
VoiceChannelEffectSendAnimationType[VoiceChannelEffectSendAnimationType["Premium"] = 0] = "Premium";
|
||||||
|
/**
|
||||||
|
* The standard animation
|
||||||
|
*/
|
||||||
|
VoiceChannelEffectSendAnimationType[VoiceChannelEffectSendAnimationType["Basic"] = 1] = "Basic";
|
||||||
|
})(VoiceChannelEffectSendAnimationType || (exports.VoiceChannelEffectSendAnimationType = VoiceChannelEffectSendAnimationType = {}));
|
||||||
|
// #endregion Shared
|
||||||
|
//# sourceMappingURL=v10.js.map
|
||||||
1
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v10.js.map
generated
vendored
Normal file
1
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v10.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"v10.js","sourceRoot":"","sources":["v10.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAqDU,QAAA,cAAc,GAAG,IAAI,CAAC;AAEnC;;GAEG;AACH,IAAY,cAkDX;AAlDD,WAAY,cAAc;IACzB;;OAEG;IACH,2DAAQ,CAAA;IACR;;;OAGG;IACH,6DAAS,CAAA;IACT;;OAEG;IACH,2DAAQ,CAAA;IACR;;OAEG;IACH,uEAAc,CAAA;IACd;;OAEG;IACH,2EAAgB,CAAA;IAChB;;OAEG;IACH,uDAAU,CAAA;IACV;;OAEG;IACH,6DAAS,CAAA;IACT;;OAEG;IACH,iFAAmB,CAAA;IACnB;;OAEG;IACH,uEAAc,CAAA;IACd;;OAEG;IACH,sDAAK,CAAA;IACL;;OAEG;IACH,oEAAY,CAAA;IACZ;;OAEG;IACH,0FAA4B,CAAA;AAC7B,CAAC,EAlDW,cAAc,8BAAd,cAAc,QAkDzB;AAED;;GAEG;AACH,IAAY,iBA6EX;AA7ED,WAAY,iBAAiB;IAC5B;;OAEG;IACH,4EAAoB,CAAA;IACpB;;;;OAIG;IACH,8EAAa,CAAA;IACb;;;;OAIG;IACH,0EAAW,CAAA;IACX;;;;OAIG;IACH,oFAAgB,CAAA;IAChB;;;;OAIG;IACH,4FAAoB,CAAA;IACpB;;OAEG;IACH,4FAAoB,CAAA;IACpB;;;;OAIG;IACH,wEAAkB,CAAA;IAClB;;OAEG;IACH,0EAAW,CAAA;IACX;;OAEG;IACH,kFAAe,CAAA;IACf;;;;OAIG;IACH,4EAAY,CAAA;IACZ;;;;OAIG;IACH,oFAAgB,CAAA;IAChB;;OAEG;IACH,sFAAiB,CAAA;IACjB;;;;OAIG;IACH,gFAAc,CAAA;IACd;;;;;;OAMG;IACH,sFAAiB,CAAA;AAClB,CAAC,EA7EW,iBAAiB,iCAAjB,iBAAiB,QA6E5B;AAED;;GAEG;AACH,IAAY,iBA8BX;AA9BD,WAAY,iBAAiB;IAC5B,6DAAe,CAAA;IACf,yEAAqB,CAAA;IACrB,+EAAwB,CAAA;IACxB;;OAEG;IACH,mEAA2B,CAAA;IAC3B,iFAAyB,CAAA;IACzB;;OAEG;IACH,6FAAyC,CAAA;IACzC,oFAA0B,CAAA;IAC1B,4EAAsB,CAAA;IACtB,0EAAqB,CAAA;IACrB,mFAAyB,CAAA;IACzB,+EAAuB,CAAA;IACvB,6EAAsB,CAAA;IACtB,8FAA+B,CAAA;IAC/B,wFAA4B,CAAA;IAC5B,gFAAwB,CAAA;IACxB,gGAAgC,CAAA;IAChC,2FAA6B,CAAA;IAC7B,iFAAwB,CAAA;IACxB,6FAA8B,CAAA;IAC9B,6GAAqC,CAAA;IACrC,qGAAiC,CAAA;IACjC,0FAA2B,CAAA;IAC3B,4FAA4B,CAAA;AAC7B,CAAC,EA9BW,iBAAiB,iCAAjB,iBAAiB,QA8B5B;AAED;;GAEG;AACH,IAAY,qBA6EX;AA7ED,WAAY,qBAAqB;IAChC,uGAA8E,CAAA;IAC9E,2FAAkE,CAAA;IAClE,iFAAwD,CAAA;IACxD,iFAAwD,CAAA;IACxD,iFAAwD,CAAA;IACxD,yDAAgC,CAAA;IAChC,yDAAgC,CAAA;IAChC,kEAAyC,CAAA;IACzC,yDAAgC,CAAA;IAChC,iEAAwC,CAAA;IACxC,iEAAwC,CAAA;IACxC,iEAAwC,CAAA;IACxC,kFAAyD,CAAA;IACzD,sDAA6B,CAAA;IAC7B,4DAAmC,CAAA;IACnC,qDAA4B,CAAA;IAC5B,qDAA4B,CAAA;IAC5B,kEAAyC,CAAA;IACzC,8EAAqD,CAAA;IACrD,4DAAmC,CAAA;IACnC,kEAAyC,CAAA;IACzC,kEAAyC,CAAA;IACzC,kEAAyC,CAAA;IACzC,8DAAqC,CAAA;IACrC,8DAAqC,CAAA;IACrC,8DAAqC,CAAA;IACrC,mFAA0D,CAAA;IAC1D,mFAA0D,CAAA;IAC1D,mFAA0D,CAAA;IAC1D,sFAA6D,CAAA;IAC7D,4FAAmE,CAAA;IACnE,qFAA4D,CAAA;IAC5D,qFAA4D,CAAA;IAC5D,uFAA8D,CAAA;IAC9D,qFAA4D,CAAA;IAC5D,+DAAsC,CAAA;IACtC,sEAA6C,CAAA;IAC7C,qDAA4B,CAAA;IAC5B,iEAAwC,CAAA;IACxC,iEAAwC,CAAA;IACxC,iEAAwC,CAAA;IACxC,iEAAwC,CAAA;IACxC,uDAA8B,CAAA;IAC9B,uDAA8B,CAAA;IAC9B,yDAAgC,CAAA;IAChC,yDAAgC,CAAA;IAChC,kEAAyC,CAAA;IACzC,qEAA4C,CAAA;IAC5C,2EAAkD,CAAA;IAClD,oEAA2C,CAAA;IAC3C,0EAAiD,CAAA;IACjD,iFAAwD,CAAA;IACxD,qFAA4D,CAAA;IAC5D,yDAAgC,CAAA;IAChC,2DAAkC,CAAA;IAClC,qDAA4B,CAAA;IAC5B,wCAAe,CAAA;IACf,4CAAmB,CAAA;IACnB,sEAA6C,CAAA;IAC7C,sEAA6C,CAAA;IAC7C,sEAA6C,CAAA;IAC7C,mEAA0C,CAAA;IAC1C,mEAA0C,CAAA;IAC1C,mEAA0C,CAAA;IAC1C,uDAA8B,CAAA;IAC9B,uDAA8B,CAAA;IAC9B,4DAAmC,CAAA;IACnC,sEAA6C,CAAA;IAC7C,oEAA2C,CAAA;IAC3C,uDAA8B,CAAA;IAC9B,qDAA4B,CAAA;IAC5B,mDAA0B,CAAA;IAC1B,6EAAoD,CAAA;IACpD,kEAAyC,CAAA;IACzC,gEAAuC,CAAA;IACvC,2DAAkC,CAAA;AACnC,CAAC,EA7EW,qBAAqB,qCAArB,qBAAqB,QA6EhC;AA4uDD;;GAEG;AACH,IAAY,mCASX;AATD,WAAY,mCAAmC;IAC9C;;OAEG;IACH,mGAAO,CAAA;IACP;;OAEG;IACH,+FAAK,CAAA;AACN,CAAC,EATW,mCAAmC,mDAAnC,mCAAmC,QAS9C;AAogBD,oBAAoB"}
|
||||||
9
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v10.mjs
generated
vendored
Normal file
9
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v10.mjs
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import mod from "./v10.js";
|
||||||
|
|
||||||
|
export default mod;
|
||||||
|
export const GatewayCloseCodes = mod.GatewayCloseCodes;
|
||||||
|
export const GatewayDispatchEvents = mod.GatewayDispatchEvents;
|
||||||
|
export const GatewayIntentBits = mod.GatewayIntentBits;
|
||||||
|
export const GatewayOpcodes = mod.GatewayOpcodes;
|
||||||
|
export const GatewayVersion = mod.GatewayVersion;
|
||||||
|
export const VoiceChannelEffectSendAnimationType = mod.VoiceChannelEffectSendAnimationType;
|
||||||
658
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v6.d.ts
generated
vendored
Normal file
658
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v6.d.ts
generated
vendored
Normal file
@@ -0,0 +1,658 @@
|
|||||||
|
/**
|
||||||
|
* Types extracted from https://discord.com/developers/docs/topics/gateway
|
||||||
|
*/
|
||||||
|
import type { APIChannel, APIEmoji, APIGuild, APIGuildMember, APIMessage, APIRole, APIUnavailableGuild, APIUser, GatewayActivity, GatewayPresenceUpdate as RawGatewayPresenceUpdate, GatewayVoiceState, InviteTargetUserType, PresenceUpdateStatus } from '../payloads/v6/index';
|
||||||
|
export type * from './common';
|
||||||
|
/**
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export declare const GatewayVersion = "6";
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/opcodes-and-status-codes#gateway-gateway-opcodes
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export declare enum GatewayOPCodes {
|
||||||
|
Dispatch = 0,
|
||||||
|
Heartbeat = 1,
|
||||||
|
Identify = 2,
|
||||||
|
PresenceUpdate = 3,
|
||||||
|
VoiceStateUpdate = 4,
|
||||||
|
Resume = 6,
|
||||||
|
Reconnect = 7,
|
||||||
|
RequestGuildMembers = 8,
|
||||||
|
InvalidSession = 9,
|
||||||
|
Hello = 10,
|
||||||
|
HeartbeatAck = 11
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/opcodes-and-status-codes#gateway-gateway-close-event-codes
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export declare enum GatewayCloseCodes {
|
||||||
|
UnknownError = 4000,
|
||||||
|
UnknownOpCode = 4001,
|
||||||
|
DecodeError = 4002,
|
||||||
|
NotAuthenticated = 4003,
|
||||||
|
AuthenticationFailed = 4004,
|
||||||
|
AlreadyAuthenticated = 4005,
|
||||||
|
InvalidSeq = 4007,
|
||||||
|
RateLimited = 4008,
|
||||||
|
SessionTimedOut = 4009,
|
||||||
|
InvalidShard = 4010,
|
||||||
|
ShardingRequired = 4011,
|
||||||
|
InvalidAPIVersion = 4012,
|
||||||
|
InvalidIntents = 4013,
|
||||||
|
DisallowedIntents = 4014
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/opcodes-and-status-codes#voice-voice-opcodes
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export declare enum VoiceOPCodes {
|
||||||
|
Identify = 0,
|
||||||
|
SelectProtocol = 1,
|
||||||
|
Ready = 2,
|
||||||
|
Heartbeat = 3,
|
||||||
|
SessionDescription = 4,
|
||||||
|
Speaking = 5,
|
||||||
|
HeartbeatAck = 6,
|
||||||
|
Resume = 7,
|
||||||
|
Hello = 8,
|
||||||
|
Resumed = 9,
|
||||||
|
ClientDisconnect = 13
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/opcodes-and-status-codes#voice-voice-close-event-codes
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export declare enum VoiceCloseCodes {
|
||||||
|
UnknownOpCode = 4001,
|
||||||
|
NotAuthenticated = 4003,
|
||||||
|
AuthenticationFailed = 4004,
|
||||||
|
AlreadyAuthenticated = 4005,
|
||||||
|
SessionNoLongerValid = 4006,
|
||||||
|
SessionTimeout = 4009,
|
||||||
|
ServerNotFound = 4011,
|
||||||
|
UnknownProtocol = 4012,
|
||||||
|
Disconnected = 4014,
|
||||||
|
VoiceServerCrashed = 4015,
|
||||||
|
UnknownEncryptionMode = 4016
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#list-of-intents
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export declare enum GatewayIntentBits {
|
||||||
|
GUILDS = 1,
|
||||||
|
GUILD_MEMBERS = 2,
|
||||||
|
GUILD_BANS = 4,
|
||||||
|
GUILD_EMOJIS = 8,
|
||||||
|
GUILD_INTEGRATIONS = 16,
|
||||||
|
GUILD_WEBHOOKS = 32,
|
||||||
|
GUILD_INVITES = 64,
|
||||||
|
GUILD_VOICE_STATES = 128,
|
||||||
|
GUILD_PRESENCES = 256,
|
||||||
|
GUILD_MESSAGES = 512,
|
||||||
|
GUILD_MESSAGE_REACTIONS = 1024,
|
||||||
|
GUILD_MESSAGE_TYPING = 2048,
|
||||||
|
DIRECT_MESSAGES = 4096,
|
||||||
|
DIRECT_MESSAGE_REACTIONS = 8192,
|
||||||
|
DIRECT_MESSAGE_TYPING = 16384
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#commands-and-events-gateway-events
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export declare enum GatewayDispatchEvents {
|
||||||
|
Ready = "READY",
|
||||||
|
Resumed = "RESUMED",
|
||||||
|
ChannelCreate = "CHANNEL_CREATE",
|
||||||
|
ChannelUpdate = "CHANNEL_UPDATE",
|
||||||
|
ChannelDelete = "CHANNEL_DELETE",
|
||||||
|
ChannelPinsUpdate = "CHANNEL_PINS_UPDATE",
|
||||||
|
GuildCreate = "GUILD_CREATE",
|
||||||
|
GuildUpdate = "GUILD_UPDATE",
|
||||||
|
GuildDelete = "GUILD_DELETE",
|
||||||
|
GuildBanAdd = "GUILD_BAN_ADD",
|
||||||
|
GuildBanRemove = "GUILD_BAN_REMOVE",
|
||||||
|
GuildEmojisUpdate = "GUILD_EMOJIS_UPDATE",
|
||||||
|
GuildIntegrationsUpdate = "GUILD_INTEGRATIONS_UPDATE",
|
||||||
|
GuildMemberAdd = "GUILD_MEMBER_ADD",
|
||||||
|
GuildMemberRemove = "GUILD_MEMBER_REMOVE",
|
||||||
|
GuildMemberUpdate = "GUILD_MEMBER_UPDATE",
|
||||||
|
GuildMembersChunk = "GUILD_MEMBERS_CHUNK",
|
||||||
|
GuildRoleCreate = "GUILD_ROLE_CREATE",
|
||||||
|
GuildRoleUpdate = "GUILD_ROLE_UPDATE",
|
||||||
|
GuildRoleDelete = "GUILD_ROLE_DELETE",
|
||||||
|
InviteCreate = "INVITE_CREATE",
|
||||||
|
InviteDelete = "INVITE_DELETE",
|
||||||
|
MessageCreate = "MESSAGE_CREATE",
|
||||||
|
MessageUpdate = "MESSAGE_UPDATE",
|
||||||
|
MessageDelete = "MESSAGE_DELETE",
|
||||||
|
MessageDeleteBulk = "MESSAGE_DELETE_BULK",
|
||||||
|
MessageReactionAdd = "MESSAGE_REACTION_ADD",
|
||||||
|
MessageReactionRemove = "MESSAGE_REACTION_REMOVE",
|
||||||
|
MessageReactionRemoveAll = "MESSAGE_REACTION_REMOVE_ALL",
|
||||||
|
MessageReactionRemoveEmoji = "MESSAGE_REACTION_REMOVE_EMOJI",
|
||||||
|
PresenceUpdate = "PRESENCE_UPDATE",
|
||||||
|
TypingStart = "TYPING_START",
|
||||||
|
UserUpdate = "USER_UPDATE",
|
||||||
|
VoiceStateUpdate = "VOICE_STATE_UPDATE",
|
||||||
|
VoiceServerUpdate = "VOICE_SERVER_UPDATE",
|
||||||
|
WebhooksUpdate = "WEBHOOKS_UPDATE"
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewaySendPayload = GatewayHeartbeat | GatewayIdentify | GatewayRequestGuildMembers | GatewayResume | GatewayUpdatePresence | GatewayVoiceStateUpdate;
|
||||||
|
/**
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayReceivePayload = GatewayDispatchPayload | GatewayHeartbeatAck | GatewayHeartbeatRequest | GatewayHello | GatewayInvalidSession | GatewayReconnect;
|
||||||
|
/**
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayDispatchPayload = GatewayChannelModifyDispatch | GatewayChannelPinsUpdateDispatch | GatewayGuildBanModifyDispatch | GatewayGuildDeleteDispatch | GatewayGuildEmojisUpdateDispatch | GatewayGuildIntegrationsUpdateDispatch | GatewayGuildMemberAddDispatch | GatewayGuildMemberRemoveDispatch | GatewayGuildMembersChunkDispatch | GatewayGuildMemberUpdateDispatch | GatewayGuildModifyDispatch | GatewayGuildRoleDeleteDispatch | GatewayGuildRoleModifyDispatch | GatewayInviteCreateDispatch | GatewayInviteDeleteDispatch | GatewayMessageCreateDispatch | GatewayMessageDeleteBulkDispatch | GatewayMessageDeleteDispatch | GatewayMessageReactionAddDispatch | GatewayMessageReactionRemoveAllDispatch | GatewayMessageReactionRemoveDispatch | GatewayMessageReactionRemoveEmojiDispatch | GatewayMessageUpdateDispatch | GatewayPresenceUpdateDispatch | GatewayReadyDispatch | GatewayResumedDispatch | GatewayTypingStartDispatch | GatewayUserUpdateDispatch | GatewayVoiceServerUpdateDispatch | GatewayVoiceStateUpdateDispatch | GatewayWebhooksUpdateDispatch;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#hello
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export interface GatewayHello extends NonDispatchPayload {
|
||||||
|
op: GatewayOPCodes.Hello;
|
||||||
|
d: {
|
||||||
|
heartbeat_interval: number;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#heartbeating
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export interface GatewayHeartbeatRequest extends NonDispatchPayload {
|
||||||
|
op: GatewayOPCodes.Heartbeat;
|
||||||
|
d: never;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#heartbeating-example-gateway-heartbeat-ack
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export interface GatewayHeartbeatAck extends NonDispatchPayload {
|
||||||
|
op: GatewayOPCodes.HeartbeatAck;
|
||||||
|
d: never;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#invalid-session
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export interface GatewayInvalidSession extends NonDispatchPayload {
|
||||||
|
op: GatewayOPCodes.InvalidSession;
|
||||||
|
d: boolean;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#reconnect
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export interface GatewayReconnect extends NonDispatchPayload {
|
||||||
|
op: GatewayOPCodes.Reconnect;
|
||||||
|
d: never;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#ready
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayReadyDispatch = DataPayload<GatewayDispatchEvents.Ready, {
|
||||||
|
v: number;
|
||||||
|
user: APIUser;
|
||||||
|
session_id: string;
|
||||||
|
private_channels: [];
|
||||||
|
guilds: APIUnavailableGuild[];
|
||||||
|
shard?: [number, number];
|
||||||
|
}>;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#resumed
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayResumedDispatch = DataPayload<GatewayDispatchEvents.Resumed, never>;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#channel-create
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#channel-update
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#channel-delete
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayChannelModifyDispatch = DataPayload<GatewayDispatchEvents.ChannelCreate | GatewayDispatchEvents.ChannelDelete | GatewayDispatchEvents.ChannelUpdate, APIChannel>;
|
||||||
|
/**
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayChannelCreateDispatch = GatewayChannelModifyDispatch;
|
||||||
|
/**
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayChannelUpdateDispatch = GatewayChannelModifyDispatch;
|
||||||
|
/**
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayChannelDeleteDispatch = GatewayChannelModifyDispatch;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#channel-pins-update
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayChannelPinsUpdateDispatch = DataPayload<GatewayDispatchEvents.ChannelPinsUpdate, {
|
||||||
|
guild_id?: string;
|
||||||
|
channel_id: string;
|
||||||
|
last_pin_timestamp?: string;
|
||||||
|
}>;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#guild-create
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#guild-update
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayGuildModifyDispatch = DataPayload<GatewayDispatchEvents.GuildCreate | GatewayDispatchEvents.GuildUpdate, APIGuild>;
|
||||||
|
/**
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayGuildCreateDispatch = GatewayGuildModifyDispatch;
|
||||||
|
/**
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayGuildUpdateDispatch = GatewayGuildModifyDispatch;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#guild-delete
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayGuildDeleteDispatch = DataPayload<GatewayDispatchEvents.GuildDelete, APIUnavailableGuild>;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#guild-ban-add
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#guild-ban-remove
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayGuildBanModifyDispatch = DataPayload<GatewayDispatchEvents.GuildBanAdd | GatewayDispatchEvents.GuildBanRemove, {
|
||||||
|
guild_id: string;
|
||||||
|
user: APIUser;
|
||||||
|
}>;
|
||||||
|
/**
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayGuildBanAddDispatch = GatewayGuildBanModifyDispatch;
|
||||||
|
/**
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayGuildBanRemoveDispatch = GatewayGuildBanModifyDispatch;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#guild-emojis-update
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayGuildEmojisUpdateDispatch = DataPayload<GatewayDispatchEvents.GuildEmojisUpdate, {
|
||||||
|
guild_id: string;
|
||||||
|
emojis: APIEmoji[];
|
||||||
|
}>;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#guild-integrations-update
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayGuildIntegrationsUpdateDispatch = DataPayload<GatewayDispatchEvents.GuildIntegrationsUpdate, {
|
||||||
|
guild_id: string;
|
||||||
|
}>;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#guild-member-add
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayGuildMemberAddDispatch = DataPayload<GatewayDispatchEvents.GuildMemberAdd, APIGuildMember & {
|
||||||
|
guild_id: string;
|
||||||
|
}>;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#guild-member-remove
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayGuildMemberRemoveDispatch = DataPayload<GatewayDispatchEvents.GuildMemberRemove, {
|
||||||
|
guild_id: string;
|
||||||
|
user: APIUser;
|
||||||
|
}>;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#guild-member-update
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayGuildMemberUpdateDispatch = DataPayload<GatewayDispatchEvents.GuildMemberUpdate, Omit<APIGuildMember, 'deaf' | 'mute'> & {
|
||||||
|
guild_id: string;
|
||||||
|
}>;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#guild-members-chunk
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayGuildMembersChunkDispatch = DataPayload<GatewayDispatchEvents.GuildMembersChunk, {
|
||||||
|
guild_id: string;
|
||||||
|
members: APIGuildMember[];
|
||||||
|
chunk_index?: number;
|
||||||
|
chunk_count?: number;
|
||||||
|
not_found?: unknown[];
|
||||||
|
presences?: RawGatewayPresenceUpdate[];
|
||||||
|
nonce?: string;
|
||||||
|
}>;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#guild-role-create
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#guild-role-update
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayGuildRoleModifyDispatch = DataPayload<GatewayDispatchEvents.GuildRoleCreate | GatewayDispatchEvents.GuildRoleUpdate, {
|
||||||
|
guild_id: string;
|
||||||
|
role: APIRole;
|
||||||
|
}>;
|
||||||
|
/**
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayGuildRoleCreateDispatch = GatewayGuildRoleModifyDispatch;
|
||||||
|
/**
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayGuildRoleUpdateDispatch = GatewayGuildRoleModifyDispatch;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#guild-role-delete
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayGuildRoleDeleteDispatch = DataPayload<GatewayDispatchEvents.GuildRoleDelete, {
|
||||||
|
guild_id: string;
|
||||||
|
role_id: string;
|
||||||
|
}>;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#invite-create
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayInviteCreateDispatch = DataPayload<GatewayDispatchEvents.InviteCreate, {
|
||||||
|
channel_id: string;
|
||||||
|
code: string;
|
||||||
|
created_at: number;
|
||||||
|
guild_id?: string;
|
||||||
|
inviter?: APIUser;
|
||||||
|
max_age: number;
|
||||||
|
max_uses: number;
|
||||||
|
target_user?: APIUser;
|
||||||
|
target_user_type?: InviteTargetUserType;
|
||||||
|
temporary: boolean;
|
||||||
|
uses: 0;
|
||||||
|
}>;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#invite-delete
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayInviteDeleteDispatch = DataPayload<GatewayDispatchEvents.InviteDelete, {
|
||||||
|
channel_id: string;
|
||||||
|
guild_id?: string;
|
||||||
|
code: string;
|
||||||
|
}>;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#message-create
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayMessageCreateDispatch = DataPayload<GatewayDispatchEvents.MessageCreate, APIMessage>;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#message-update
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayMessageUpdateDispatch = DataPayload<GatewayDispatchEvents.MessageUpdate, Partial<APIMessage> & {
|
||||||
|
id: string;
|
||||||
|
channel_id: string;
|
||||||
|
}>;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#message-delete
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayMessageDeleteDispatch = DataPayload<GatewayDispatchEvents.MessageDelete, {
|
||||||
|
id: string;
|
||||||
|
channel_id: string;
|
||||||
|
guild_id?: string;
|
||||||
|
}>;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#message-delete-bulk
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayMessageDeleteBulkDispatch = DataPayload<GatewayDispatchEvents.MessageDeleteBulk, {
|
||||||
|
ids: string[];
|
||||||
|
channel_id: string;
|
||||||
|
guild_id?: string;
|
||||||
|
}>;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#message-reaction-add
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayMessageReactionAddDispatch = ReactionData<GatewayDispatchEvents.MessageReactionAdd>;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#message-reaction-remove
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayMessageReactionRemoveDispatch = ReactionData<GatewayDispatchEvents.MessageReactionRemove, 'member'>;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#message-reaction-remove-all
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayMessageReactionRemoveAllDispatch = DataPayload<GatewayDispatchEvents.MessageReactionRemoveAll, MessageReactionRemoveData>;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#message-reaction-remove-emoji
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayMessageReactionRemoveEmojiDispatch = DataPayload<GatewayDispatchEvents.MessageReactionRemoveEmoji, MessageReactionRemoveData & {
|
||||||
|
emoji: APIEmoji;
|
||||||
|
}>;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#presence-update
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayPresenceUpdateDispatch = DataPayload<GatewayDispatchEvents.PresenceUpdate, RawGatewayPresenceUpdate>;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#typing-start
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayTypingStartDispatch = DataPayload<GatewayDispatchEvents.TypingStart, {
|
||||||
|
channel_id: string;
|
||||||
|
guild_id?: string;
|
||||||
|
user_id: string;
|
||||||
|
timestamp: number;
|
||||||
|
member?: APIGuildMember;
|
||||||
|
}>;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#user-update
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayUserUpdateDispatch = DataPayload<GatewayDispatchEvents.UserUpdate, APIUser>;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#voice-state-update
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayVoiceStateUpdateDispatch = DataPayload<GatewayDispatchEvents.VoiceStateUpdate, GatewayVoiceState>;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#voice-server-update
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayVoiceServerUpdateDispatch = DataPayload<GatewayDispatchEvents.VoiceServerUpdate, {
|
||||||
|
token: string;
|
||||||
|
guild_id: string;
|
||||||
|
endpoint: string;
|
||||||
|
}>;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#webhooks-update
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export type GatewayWebhooksUpdateDispatch = DataPayload<GatewayDispatchEvents.WebhooksUpdate, {
|
||||||
|
guild_id: string;
|
||||||
|
channel_id: string;
|
||||||
|
}>;
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#heartbeating
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export interface GatewayHeartbeat {
|
||||||
|
op: GatewayOPCodes.Heartbeat;
|
||||||
|
d: number;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#identify-identify-connection-properties
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export interface GatewayIdentifyProperties {
|
||||||
|
$os: string;
|
||||||
|
$browser: string;
|
||||||
|
$device: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#identify
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export interface GatewayIdentify {
|
||||||
|
op: GatewayOPCodes.Identify;
|
||||||
|
d: {
|
||||||
|
token: string;
|
||||||
|
properties: GatewayIdentifyProperties;
|
||||||
|
compress?: boolean;
|
||||||
|
large_threshold?: number;
|
||||||
|
shard?: [shard_id: number, shard_count: number];
|
||||||
|
presence?: RawGatewayPresenceUpdate;
|
||||||
|
guild_subscriptions?: boolean;
|
||||||
|
intents?: number;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#resume
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export interface GatewayResume {
|
||||||
|
op: GatewayOPCodes.Resume;
|
||||||
|
d: {
|
||||||
|
token: string;
|
||||||
|
session_id: string;
|
||||||
|
seq: number;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#request-guild-members
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export interface GatewayRequestGuildMembers {
|
||||||
|
op: GatewayOPCodes.RequestGuildMembers;
|
||||||
|
d: {
|
||||||
|
guild_id: string[] | string;
|
||||||
|
query?: string;
|
||||||
|
limit: number;
|
||||||
|
presences?: boolean;
|
||||||
|
user_ids?: string[] | string;
|
||||||
|
nonce?: string;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#update-voice-state
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export interface GatewayVoiceStateUpdate {
|
||||||
|
op: GatewayOPCodes.VoiceStateUpdate;
|
||||||
|
d: {
|
||||||
|
guild_id: string;
|
||||||
|
channel_id: string | null;
|
||||||
|
self_mute: boolean;
|
||||||
|
self_deaf: boolean;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#update-status
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export interface GatewayUpdatePresence {
|
||||||
|
op: GatewayOPCodes.PresenceUpdate;
|
||||||
|
d: GatewayPresenceUpdateData;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#update-status-gateway-status-update-structure
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
export interface GatewayPresenceUpdateData {
|
||||||
|
since: number | null;
|
||||||
|
game: GatewayActivity | null;
|
||||||
|
status: PresenceUpdateStatus;
|
||||||
|
afk: boolean;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
interface BasePayload {
|
||||||
|
op: GatewayOPCodes;
|
||||||
|
s: number;
|
||||||
|
d?: unknown;
|
||||||
|
t?: string;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
type NonDispatchPayload = Omit<BasePayload, 't'>;
|
||||||
|
/**
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
interface DataPayload<Event extends GatewayDispatchEvents, D = unknown> extends BasePayload {
|
||||||
|
op: GatewayOPCodes.Dispatch;
|
||||||
|
t: Event;
|
||||||
|
d: D;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
type ReactionData<E extends GatewayDispatchEvents, O extends string = never> = DataPayload<E, Omit<{
|
||||||
|
user_id: string;
|
||||||
|
channel_id: string;
|
||||||
|
message_id: string;
|
||||||
|
guild_id?: string;
|
||||||
|
member?: APIGuildMember;
|
||||||
|
emoji: APIEmoji;
|
||||||
|
}, O>>;
|
||||||
|
/**
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
interface MessageReactionRemoveData {
|
||||||
|
channel_id: string;
|
||||||
|
message_id: string;
|
||||||
|
guild_id?: string;
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=v6.d.ts.map
|
||||||
1
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v6.d.ts.map
generated
vendored
Normal file
1
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v6.d.ts.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
158
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v6.js
generated
vendored
Normal file
158
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v6.js
generated
vendored
Normal file
@@ -0,0 +1,158 @@
|
|||||||
|
"use strict";
|
||||||
|
/**
|
||||||
|
* Types extracted from https://discord.com/developers/docs/topics/gateway
|
||||||
|
*/
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.GatewayDispatchEvents = exports.GatewayIntentBits = exports.VoiceCloseCodes = exports.VoiceOPCodes = exports.GatewayCloseCodes = exports.GatewayOPCodes = exports.GatewayVersion = void 0;
|
||||||
|
/**
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
exports.GatewayVersion = '6';
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/opcodes-and-status-codes#gateway-gateway-opcodes
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
var GatewayOPCodes;
|
||||||
|
(function (GatewayOPCodes) {
|
||||||
|
GatewayOPCodes[GatewayOPCodes["Dispatch"] = 0] = "Dispatch";
|
||||||
|
GatewayOPCodes[GatewayOPCodes["Heartbeat"] = 1] = "Heartbeat";
|
||||||
|
GatewayOPCodes[GatewayOPCodes["Identify"] = 2] = "Identify";
|
||||||
|
GatewayOPCodes[GatewayOPCodes["PresenceUpdate"] = 3] = "PresenceUpdate";
|
||||||
|
GatewayOPCodes[GatewayOPCodes["VoiceStateUpdate"] = 4] = "VoiceStateUpdate";
|
||||||
|
GatewayOPCodes[GatewayOPCodes["Resume"] = 6] = "Resume";
|
||||||
|
GatewayOPCodes[GatewayOPCodes["Reconnect"] = 7] = "Reconnect";
|
||||||
|
GatewayOPCodes[GatewayOPCodes["RequestGuildMembers"] = 8] = "RequestGuildMembers";
|
||||||
|
GatewayOPCodes[GatewayOPCodes["InvalidSession"] = 9] = "InvalidSession";
|
||||||
|
GatewayOPCodes[GatewayOPCodes["Hello"] = 10] = "Hello";
|
||||||
|
GatewayOPCodes[GatewayOPCodes["HeartbeatAck"] = 11] = "HeartbeatAck";
|
||||||
|
})(GatewayOPCodes || (exports.GatewayOPCodes = GatewayOPCodes = {}));
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/opcodes-and-status-codes#gateway-gateway-close-event-codes
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
var GatewayCloseCodes;
|
||||||
|
(function (GatewayCloseCodes) {
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["UnknownError"] = 4000] = "UnknownError";
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["UnknownOpCode"] = 4001] = "UnknownOpCode";
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["DecodeError"] = 4002] = "DecodeError";
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["NotAuthenticated"] = 4003] = "NotAuthenticated";
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["AuthenticationFailed"] = 4004] = "AuthenticationFailed";
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["AlreadyAuthenticated"] = 4005] = "AlreadyAuthenticated";
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["InvalidSeq"] = 4007] = "InvalidSeq";
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["RateLimited"] = 4008] = "RateLimited";
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["SessionTimedOut"] = 4009] = "SessionTimedOut";
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["InvalidShard"] = 4010] = "InvalidShard";
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["ShardingRequired"] = 4011] = "ShardingRequired";
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["InvalidAPIVersion"] = 4012] = "InvalidAPIVersion";
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["InvalidIntents"] = 4013] = "InvalidIntents";
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["DisallowedIntents"] = 4014] = "DisallowedIntents";
|
||||||
|
})(GatewayCloseCodes || (exports.GatewayCloseCodes = GatewayCloseCodes = {}));
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/opcodes-and-status-codes#voice-voice-opcodes
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
var VoiceOPCodes;
|
||||||
|
(function (VoiceOPCodes) {
|
||||||
|
VoiceOPCodes[VoiceOPCodes["Identify"] = 0] = "Identify";
|
||||||
|
VoiceOPCodes[VoiceOPCodes["SelectProtocol"] = 1] = "SelectProtocol";
|
||||||
|
VoiceOPCodes[VoiceOPCodes["Ready"] = 2] = "Ready";
|
||||||
|
VoiceOPCodes[VoiceOPCodes["Heartbeat"] = 3] = "Heartbeat";
|
||||||
|
VoiceOPCodes[VoiceOPCodes["SessionDescription"] = 4] = "SessionDescription";
|
||||||
|
VoiceOPCodes[VoiceOPCodes["Speaking"] = 5] = "Speaking";
|
||||||
|
VoiceOPCodes[VoiceOPCodes["HeartbeatAck"] = 6] = "HeartbeatAck";
|
||||||
|
VoiceOPCodes[VoiceOPCodes["Resume"] = 7] = "Resume";
|
||||||
|
VoiceOPCodes[VoiceOPCodes["Hello"] = 8] = "Hello";
|
||||||
|
VoiceOPCodes[VoiceOPCodes["Resumed"] = 9] = "Resumed";
|
||||||
|
VoiceOPCodes[VoiceOPCodes["ClientDisconnect"] = 13] = "ClientDisconnect";
|
||||||
|
})(VoiceOPCodes || (exports.VoiceOPCodes = VoiceOPCodes = {}));
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/opcodes-and-status-codes#voice-voice-close-event-codes
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
var VoiceCloseCodes;
|
||||||
|
(function (VoiceCloseCodes) {
|
||||||
|
VoiceCloseCodes[VoiceCloseCodes["UnknownOpCode"] = 4001] = "UnknownOpCode";
|
||||||
|
VoiceCloseCodes[VoiceCloseCodes["NotAuthenticated"] = 4003] = "NotAuthenticated";
|
||||||
|
VoiceCloseCodes[VoiceCloseCodes["AuthenticationFailed"] = 4004] = "AuthenticationFailed";
|
||||||
|
VoiceCloseCodes[VoiceCloseCodes["AlreadyAuthenticated"] = 4005] = "AlreadyAuthenticated";
|
||||||
|
VoiceCloseCodes[VoiceCloseCodes["SessionNoLongerValid"] = 4006] = "SessionNoLongerValid";
|
||||||
|
VoiceCloseCodes[VoiceCloseCodes["SessionTimeout"] = 4009] = "SessionTimeout";
|
||||||
|
VoiceCloseCodes[VoiceCloseCodes["ServerNotFound"] = 4011] = "ServerNotFound";
|
||||||
|
VoiceCloseCodes[VoiceCloseCodes["UnknownProtocol"] = 4012] = "UnknownProtocol";
|
||||||
|
VoiceCloseCodes[VoiceCloseCodes["Disconnected"] = 4014] = "Disconnected";
|
||||||
|
VoiceCloseCodes[VoiceCloseCodes["VoiceServerCrashed"] = 4015] = "VoiceServerCrashed";
|
||||||
|
VoiceCloseCodes[VoiceCloseCodes["UnknownEncryptionMode"] = 4016] = "UnknownEncryptionMode";
|
||||||
|
})(VoiceCloseCodes || (exports.VoiceCloseCodes = VoiceCloseCodes = {}));
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#list-of-intents
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
var GatewayIntentBits;
|
||||||
|
(function (GatewayIntentBits) {
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GUILDS"] = 1] = "GUILDS";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GUILD_MEMBERS"] = 2] = "GUILD_MEMBERS";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GUILD_BANS"] = 4] = "GUILD_BANS";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GUILD_EMOJIS"] = 8] = "GUILD_EMOJIS";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GUILD_INTEGRATIONS"] = 16] = "GUILD_INTEGRATIONS";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GUILD_WEBHOOKS"] = 32] = "GUILD_WEBHOOKS";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GUILD_INVITES"] = 64] = "GUILD_INVITES";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GUILD_VOICE_STATES"] = 128] = "GUILD_VOICE_STATES";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GUILD_PRESENCES"] = 256] = "GUILD_PRESENCES";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GUILD_MESSAGES"] = 512] = "GUILD_MESSAGES";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GUILD_MESSAGE_REACTIONS"] = 1024] = "GUILD_MESSAGE_REACTIONS";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GUILD_MESSAGE_TYPING"] = 2048] = "GUILD_MESSAGE_TYPING";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["DIRECT_MESSAGES"] = 4096] = "DIRECT_MESSAGES";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["DIRECT_MESSAGE_REACTIONS"] = 8192] = "DIRECT_MESSAGE_REACTIONS";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["DIRECT_MESSAGE_TYPING"] = 16384] = "DIRECT_MESSAGE_TYPING";
|
||||||
|
})(GatewayIntentBits || (exports.GatewayIntentBits = GatewayIntentBits = {}));
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#commands-and-events-gateway-events
|
||||||
|
*
|
||||||
|
* @deprecated Gateway v6 is deprecated and the types will not receive further updates, please update to v8.
|
||||||
|
*/
|
||||||
|
var GatewayDispatchEvents;
|
||||||
|
(function (GatewayDispatchEvents) {
|
||||||
|
GatewayDispatchEvents["Ready"] = "READY";
|
||||||
|
GatewayDispatchEvents["Resumed"] = "RESUMED";
|
||||||
|
GatewayDispatchEvents["ChannelCreate"] = "CHANNEL_CREATE";
|
||||||
|
GatewayDispatchEvents["ChannelUpdate"] = "CHANNEL_UPDATE";
|
||||||
|
GatewayDispatchEvents["ChannelDelete"] = "CHANNEL_DELETE";
|
||||||
|
GatewayDispatchEvents["ChannelPinsUpdate"] = "CHANNEL_PINS_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildCreate"] = "GUILD_CREATE";
|
||||||
|
GatewayDispatchEvents["GuildUpdate"] = "GUILD_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildDelete"] = "GUILD_DELETE";
|
||||||
|
GatewayDispatchEvents["GuildBanAdd"] = "GUILD_BAN_ADD";
|
||||||
|
GatewayDispatchEvents["GuildBanRemove"] = "GUILD_BAN_REMOVE";
|
||||||
|
GatewayDispatchEvents["GuildEmojisUpdate"] = "GUILD_EMOJIS_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildIntegrationsUpdate"] = "GUILD_INTEGRATIONS_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildMemberAdd"] = "GUILD_MEMBER_ADD";
|
||||||
|
GatewayDispatchEvents["GuildMemberRemove"] = "GUILD_MEMBER_REMOVE";
|
||||||
|
GatewayDispatchEvents["GuildMemberUpdate"] = "GUILD_MEMBER_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildMembersChunk"] = "GUILD_MEMBERS_CHUNK";
|
||||||
|
GatewayDispatchEvents["GuildRoleCreate"] = "GUILD_ROLE_CREATE";
|
||||||
|
GatewayDispatchEvents["GuildRoleUpdate"] = "GUILD_ROLE_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildRoleDelete"] = "GUILD_ROLE_DELETE";
|
||||||
|
GatewayDispatchEvents["InviteCreate"] = "INVITE_CREATE";
|
||||||
|
GatewayDispatchEvents["InviteDelete"] = "INVITE_DELETE";
|
||||||
|
GatewayDispatchEvents["MessageCreate"] = "MESSAGE_CREATE";
|
||||||
|
GatewayDispatchEvents["MessageUpdate"] = "MESSAGE_UPDATE";
|
||||||
|
GatewayDispatchEvents["MessageDelete"] = "MESSAGE_DELETE";
|
||||||
|
GatewayDispatchEvents["MessageDeleteBulk"] = "MESSAGE_DELETE_BULK";
|
||||||
|
GatewayDispatchEvents["MessageReactionAdd"] = "MESSAGE_REACTION_ADD";
|
||||||
|
GatewayDispatchEvents["MessageReactionRemove"] = "MESSAGE_REACTION_REMOVE";
|
||||||
|
GatewayDispatchEvents["MessageReactionRemoveAll"] = "MESSAGE_REACTION_REMOVE_ALL";
|
||||||
|
GatewayDispatchEvents["MessageReactionRemoveEmoji"] = "MESSAGE_REACTION_REMOVE_EMOJI";
|
||||||
|
GatewayDispatchEvents["PresenceUpdate"] = "PRESENCE_UPDATE";
|
||||||
|
GatewayDispatchEvents["TypingStart"] = "TYPING_START";
|
||||||
|
GatewayDispatchEvents["UserUpdate"] = "USER_UPDATE";
|
||||||
|
GatewayDispatchEvents["VoiceStateUpdate"] = "VOICE_STATE_UPDATE";
|
||||||
|
GatewayDispatchEvents["VoiceServerUpdate"] = "VOICE_SERVER_UPDATE";
|
||||||
|
GatewayDispatchEvents["WebhooksUpdate"] = "WEBHOOKS_UPDATE";
|
||||||
|
})(GatewayDispatchEvents || (exports.GatewayDispatchEvents = GatewayDispatchEvents = {}));
|
||||||
|
// #endregion Shared
|
||||||
|
//# sourceMappingURL=v6.js.map
|
||||||
1
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v6.js.map
generated
vendored
Normal file
1
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v6.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"v6.js","sourceRoot":"","sources":["v6.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAoBH;;GAEG;AACU,QAAA,cAAc,GAAG,GAAG,CAAC;AAElC;;;;GAIG;AACH,IAAY,cAaX;AAbD,WAAY,cAAc;IACzB,2DAAQ,CAAA;IACR,6DAAS,CAAA;IACT,2DAAQ,CAAA;IACR,uEAAc,CAAA;IACd,2EAAgB,CAAA;IAEhB,uDAAU,CAAA;IACV,6DAAS,CAAA;IACT,iFAAmB,CAAA;IACnB,uEAAc,CAAA;IACd,sDAAK,CAAA;IACL,oEAAY,CAAA;AACb,CAAC,EAbW,cAAc,8BAAd,cAAc,QAazB;AAED;;;;GAIG;AACH,IAAY,iBAgBX;AAhBD,WAAY,iBAAiB;IAC5B,4EAAoB,CAAA;IACpB,8EAAa,CAAA;IACb,0EAAW,CAAA;IACX,oFAAgB,CAAA;IAChB,4FAAoB,CAAA;IACpB,4FAAoB,CAAA;IAEpB,wEAAkB,CAAA;IAClB,0EAAW,CAAA;IACX,kFAAe,CAAA;IACf,4EAAY,CAAA;IACZ,oFAAgB,CAAA;IAChB,sFAAiB,CAAA;IACjB,gFAAc,CAAA;IACd,sFAAiB,CAAA;AAClB,CAAC,EAhBW,iBAAiB,iCAAjB,iBAAiB,QAgB5B;AAED;;;;GAIG;AACH,IAAY,YAaX;AAbD,WAAY,YAAY;IACvB,uDAAQ,CAAA;IACR,mEAAc,CAAA;IACd,iDAAK,CAAA;IACL,yDAAS,CAAA;IACT,2EAAkB,CAAA;IAClB,uDAAQ,CAAA;IACR,+DAAY,CAAA;IACZ,mDAAM,CAAA;IACN,iDAAK,CAAA;IACL,qDAAO,CAAA;IAEP,wEAAqB,CAAA;AACtB,CAAC,EAbW,YAAY,4BAAZ,YAAY,QAavB;AAED;;;;GAIG;AACH,IAAY,eAgBX;AAhBD,WAAY,eAAe;IAC1B,0EAAqB,CAAA;IAErB,gFAAwB,CAAA;IACxB,wFAAoB,CAAA;IACpB,wFAAoB,CAAA;IACpB,wFAAoB,CAAA;IAEpB,4EAAsB,CAAA;IAEtB,4EAAsB,CAAA;IACtB,8EAAe,CAAA;IAEf,wEAAoB,CAAA;IACpB,oFAAkB,CAAA;IAClB,0FAAqB,CAAA;AACtB,CAAC,EAhBW,eAAe,+BAAf,eAAe,QAgB1B;AAED;;;;GAIG;AACH,IAAY,iBAgBX;AAhBD,WAAY,iBAAiB;IAC5B,6DAAe,CAAA;IACf,2EAAsB,CAAA;IACtB,qEAAmB,CAAA;IACnB,yEAAqB,CAAA;IACrB,sFAA2B,CAAA;IAC3B,8EAAuB,CAAA;IACvB,4EAAsB,CAAA;IACtB,uFAA2B,CAAA;IAC3B,iFAAwB,CAAA;IACxB,+EAAuB,CAAA;IACvB,kGAAiC,CAAA;IACjC,4FAA8B,CAAA;IAC9B,kFAAyB,CAAA;IACzB,oGAAkC,CAAA;IAClC,+FAA+B,CAAA;AAChC,CAAC,EAhBW,iBAAiB,iCAAjB,iBAAiB,QAgB5B;AAED;;;;GAIG;AACH,IAAY,qBAqCX;AArCD,WAAY,qBAAqB;IAChC,wCAAe,CAAA;IACf,4CAAmB,CAAA;IACnB,yDAAgC,CAAA;IAChC,yDAAgC,CAAA;IAChC,yDAAgC,CAAA;IAChC,kEAAyC,CAAA;IACzC,qDAA4B,CAAA;IAC5B,qDAA4B,CAAA;IAC5B,qDAA4B,CAAA;IAC5B,sDAA6B,CAAA;IAC7B,4DAAmC,CAAA;IACnC,kEAAyC,CAAA;IACzC,8EAAqD,CAAA;IACrD,4DAAmC,CAAA;IACnC,kEAAyC,CAAA;IACzC,kEAAyC,CAAA;IACzC,kEAAyC,CAAA;IACzC,8DAAqC,CAAA;IACrC,8DAAqC,CAAA;IACrC,8DAAqC,CAAA;IACrC,uDAA8B,CAAA;IAC9B,uDAA8B,CAAA;IAC9B,yDAAgC,CAAA;IAChC,yDAAgC,CAAA;IAChC,yDAAgC,CAAA;IAChC,kEAAyC,CAAA;IACzC,oEAA2C,CAAA;IAC3C,0EAAiD,CAAA;IACjD,iFAAwD,CAAA;IACxD,qFAA4D,CAAA;IAC5D,2DAAkC,CAAA;IAClC,qDAA4B,CAAA;IAC5B,mDAA0B,CAAA;IAC1B,gEAAuC,CAAA;IACvC,kEAAyC,CAAA;IACzC,2DAAkC,CAAA;AACnC,CAAC,EArCW,qBAAqB,qCAArB,qBAAqB,QAqChC;AAirBD,oBAAoB"}
|
||||||
10
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v6.mjs
generated
vendored
Normal file
10
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v6.mjs
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
import mod from "./v6.js";
|
||||||
|
|
||||||
|
export default mod;
|
||||||
|
export const GatewayCloseCodes = mod.GatewayCloseCodes;
|
||||||
|
export const GatewayDispatchEvents = mod.GatewayDispatchEvents;
|
||||||
|
export const GatewayIntentBits = mod.GatewayIntentBits;
|
||||||
|
export const GatewayOPCodes = mod.GatewayOPCodes;
|
||||||
|
export const GatewayVersion = mod.GatewayVersion;
|
||||||
|
export const VoiceCloseCodes = mod.VoiceCloseCodes;
|
||||||
|
export const VoiceOPCodes = mod.VoiceOPCodes;
|
||||||
1575
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v8.d.ts
generated
vendored
Normal file
1575
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v8.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v8.d.ts.map
generated
vendored
Normal file
1
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v8.d.ts.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
231
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v8.js
generated
vendored
Normal file
231
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v8.js
generated
vendored
Normal file
@@ -0,0 +1,231 @@
|
|||||||
|
"use strict";
|
||||||
|
/**
|
||||||
|
* Types extracted from https://discord.com/developers/docs/topics/gateway
|
||||||
|
*/
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.GatewayDispatchEvents = exports.GatewayIntentBits = exports.GatewayCloseCodes = exports.GatewayOpcodes = exports.GatewayVersion = void 0;
|
||||||
|
/**
|
||||||
|
* @deprecated API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.
|
||||||
|
*/
|
||||||
|
exports.GatewayVersion = '8';
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/opcodes-and-status-codes#gateway-gateway-opcodes
|
||||||
|
*
|
||||||
|
* @deprecated API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.
|
||||||
|
*/
|
||||||
|
var GatewayOpcodes;
|
||||||
|
(function (GatewayOpcodes) {
|
||||||
|
/**
|
||||||
|
* An event was dispatched
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["Dispatch"] = 0] = "Dispatch";
|
||||||
|
/**
|
||||||
|
* A bidirectional opcode to maintain an active gateway connection.
|
||||||
|
* Fired periodically by the client, or fired by the gateway to request an immediate heartbeat from the client.
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["Heartbeat"] = 1] = "Heartbeat";
|
||||||
|
/**
|
||||||
|
* Starts a new session during the initial handshake
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["Identify"] = 2] = "Identify";
|
||||||
|
/**
|
||||||
|
* Update the client's presence
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["PresenceUpdate"] = 3] = "PresenceUpdate";
|
||||||
|
/**
|
||||||
|
* Used to join/leave or move between voice channels
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["VoiceStateUpdate"] = 4] = "VoiceStateUpdate";
|
||||||
|
/**
|
||||||
|
* Resume a previous session that was disconnected
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["Resume"] = 6] = "Resume";
|
||||||
|
/**
|
||||||
|
* You should attempt to reconnect and resume immediately
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["Reconnect"] = 7] = "Reconnect";
|
||||||
|
/**
|
||||||
|
* Request information about offline guild members in a large guild
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["RequestGuildMembers"] = 8] = "RequestGuildMembers";
|
||||||
|
/**
|
||||||
|
* The session has been invalidated. You should reconnect and identify/resume accordingly
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["InvalidSession"] = 9] = "InvalidSession";
|
||||||
|
/**
|
||||||
|
* Sent immediately after connecting, contains the `heartbeat_interval` to use
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["Hello"] = 10] = "Hello";
|
||||||
|
/**
|
||||||
|
* Sent in response to receiving a heartbeat to acknowledge that it has been received
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["HeartbeatAck"] = 11] = "HeartbeatAck";
|
||||||
|
})(GatewayOpcodes || (exports.GatewayOpcodes = GatewayOpcodes = {}));
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/opcodes-and-status-codes#gateway-gateway-close-event-codes
|
||||||
|
*
|
||||||
|
* @deprecated API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.
|
||||||
|
*/
|
||||||
|
var GatewayCloseCodes;
|
||||||
|
(function (GatewayCloseCodes) {
|
||||||
|
/**
|
||||||
|
* We're not sure what went wrong. Try reconnecting?
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["UnknownError"] = 4000] = "UnknownError";
|
||||||
|
/**
|
||||||
|
* You sent an invalid Gateway opcode or an invalid payload for an opcode. Don't do that!
|
||||||
|
*
|
||||||
|
* See https://discord.com/developers/docs/topics/gateway#payloads-and-opcodes
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["UnknownOpcode"] = 4001] = "UnknownOpcode";
|
||||||
|
/**
|
||||||
|
* You sent an invalid payload to us. Don't do that!
|
||||||
|
*
|
||||||
|
* See https://discord.com/developers/docs/topics/gateway#sending-payloads
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["DecodeError"] = 4002] = "DecodeError";
|
||||||
|
/**
|
||||||
|
* You sent us a payload prior to identifying
|
||||||
|
*
|
||||||
|
* See https://discord.com/developers/docs/topics/gateway#identify
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["NotAuthenticated"] = 4003] = "NotAuthenticated";
|
||||||
|
/**
|
||||||
|
* The account token sent with your identify payload is incorrect
|
||||||
|
*
|
||||||
|
* See https://discord.com/developers/docs/topics/gateway#identify
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["AuthenticationFailed"] = 4004] = "AuthenticationFailed";
|
||||||
|
/**
|
||||||
|
* You sent more than one identify payload. Don't do that!
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["AlreadyAuthenticated"] = 4005] = "AlreadyAuthenticated";
|
||||||
|
/**
|
||||||
|
* The sequence sent when resuming the session was invalid. Reconnect and start a new session
|
||||||
|
*
|
||||||
|
* See https://discord.com/developers/docs/topics/gateway#resume
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["InvalidSeq"] = 4007] = "InvalidSeq";
|
||||||
|
/**
|
||||||
|
* Woah nelly! You're sending payloads to us too quickly. Slow it down! You will be disconnected on receiving this
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["RateLimited"] = 4008] = "RateLimited";
|
||||||
|
/**
|
||||||
|
* Your session timed out. Reconnect and start a new one
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["SessionTimedOut"] = 4009] = "SessionTimedOut";
|
||||||
|
/**
|
||||||
|
* You sent us an invalid shard when identifying
|
||||||
|
*
|
||||||
|
* See https://discord.com/developers/docs/topics/gateway#sharding
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["InvalidShard"] = 4010] = "InvalidShard";
|
||||||
|
/**
|
||||||
|
* The session would have handled too many guilds - you are required to shard your connection in order to connect
|
||||||
|
*
|
||||||
|
* See https://discord.com/developers/docs/topics/gateway#sharding
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["ShardingRequired"] = 4011] = "ShardingRequired";
|
||||||
|
/**
|
||||||
|
* You sent an invalid version for the gateway
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["InvalidAPIVersion"] = 4012] = "InvalidAPIVersion";
|
||||||
|
/**
|
||||||
|
* You sent an invalid intent for a Gateway Intent. You may have incorrectly calculated the bitwise value
|
||||||
|
*
|
||||||
|
* See https://discord.com/developers/docs/topics/gateway#gateway-intents
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["InvalidIntents"] = 4013] = "InvalidIntents";
|
||||||
|
/**
|
||||||
|
* You sent a disallowed intent for a Gateway Intent. You may have tried to specify an intent that you have not
|
||||||
|
* enabled or are not whitelisted for
|
||||||
|
*
|
||||||
|
* See https://discord.com/developers/docs/topics/gateway#gateway-intents
|
||||||
|
*
|
||||||
|
* See https://discord.com/developers/docs/topics/gateway#privileged-intents
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["DisallowedIntents"] = 4014] = "DisallowedIntents";
|
||||||
|
})(GatewayCloseCodes || (exports.GatewayCloseCodes = GatewayCloseCodes = {}));
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#list-of-intents
|
||||||
|
*
|
||||||
|
* @deprecated API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.
|
||||||
|
*/
|
||||||
|
var GatewayIntentBits;
|
||||||
|
(function (GatewayIntentBits) {
|
||||||
|
GatewayIntentBits[GatewayIntentBits["Guilds"] = 1] = "Guilds";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildMembers"] = 2] = "GuildMembers";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildBans"] = 4] = "GuildBans";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildEmojisAndStickers"] = 8] = "GuildEmojisAndStickers";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildIntegrations"] = 16] = "GuildIntegrations";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildWebhooks"] = 32] = "GuildWebhooks";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildInvites"] = 64] = "GuildInvites";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildVoiceStates"] = 128] = "GuildVoiceStates";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildPresences"] = 256] = "GuildPresences";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildMessages"] = 512] = "GuildMessages";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildMessageReactions"] = 1024] = "GuildMessageReactions";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildMessageTyping"] = 2048] = "GuildMessageTyping";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["DirectMessages"] = 4096] = "DirectMessages";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["DirectMessageReactions"] = 8192] = "DirectMessageReactions";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["DirectMessageTyping"] = 16384] = "DirectMessageTyping";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildScheduledEvents"] = 65536] = "GuildScheduledEvents";
|
||||||
|
})(GatewayIntentBits || (exports.GatewayIntentBits = GatewayIntentBits = {}));
|
||||||
|
/**
|
||||||
|
* https://discord.com/developers/docs/topics/gateway#commands-and-events-gateway-events
|
||||||
|
*
|
||||||
|
* @deprecated API and gateway v8 are deprecated and the types will not receive further updates, please update to v10.
|
||||||
|
*/
|
||||||
|
var GatewayDispatchEvents;
|
||||||
|
(function (GatewayDispatchEvents) {
|
||||||
|
GatewayDispatchEvents["ChannelCreate"] = "CHANNEL_CREATE";
|
||||||
|
GatewayDispatchEvents["ChannelDelete"] = "CHANNEL_DELETE";
|
||||||
|
GatewayDispatchEvents["ChannelPinsUpdate"] = "CHANNEL_PINS_UPDATE";
|
||||||
|
GatewayDispatchEvents["ChannelUpdate"] = "CHANNEL_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildBanAdd"] = "GUILD_BAN_ADD";
|
||||||
|
GatewayDispatchEvents["GuildBanRemove"] = "GUILD_BAN_REMOVE";
|
||||||
|
GatewayDispatchEvents["GuildCreate"] = "GUILD_CREATE";
|
||||||
|
GatewayDispatchEvents["GuildDelete"] = "GUILD_DELETE";
|
||||||
|
GatewayDispatchEvents["GuildEmojisUpdate"] = "GUILD_EMOJIS_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildIntegrationsUpdate"] = "GUILD_INTEGRATIONS_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildMemberAdd"] = "GUILD_MEMBER_ADD";
|
||||||
|
GatewayDispatchEvents["GuildMemberRemove"] = "GUILD_MEMBER_REMOVE";
|
||||||
|
GatewayDispatchEvents["GuildMembersChunk"] = "GUILD_MEMBERS_CHUNK";
|
||||||
|
GatewayDispatchEvents["GuildMemberUpdate"] = "GUILD_MEMBER_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildRoleCreate"] = "GUILD_ROLE_CREATE";
|
||||||
|
GatewayDispatchEvents["GuildRoleDelete"] = "GUILD_ROLE_DELETE";
|
||||||
|
GatewayDispatchEvents["GuildRoleUpdate"] = "GUILD_ROLE_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildStickersUpdate"] = "GUILD_STICKERS_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildUpdate"] = "GUILD_UPDATE";
|
||||||
|
GatewayDispatchEvents["IntegrationCreate"] = "INTEGRATION_CREATE";
|
||||||
|
GatewayDispatchEvents["IntegrationDelete"] = "INTEGRATION_DELETE";
|
||||||
|
GatewayDispatchEvents["IntegrationUpdate"] = "INTEGRATION_UPDATE";
|
||||||
|
GatewayDispatchEvents["InteractionCreate"] = "INTERACTION_CREATE";
|
||||||
|
GatewayDispatchEvents["InviteCreate"] = "INVITE_CREATE";
|
||||||
|
GatewayDispatchEvents["InviteDelete"] = "INVITE_DELETE";
|
||||||
|
GatewayDispatchEvents["MessageCreate"] = "MESSAGE_CREATE";
|
||||||
|
GatewayDispatchEvents["MessageDelete"] = "MESSAGE_DELETE";
|
||||||
|
GatewayDispatchEvents["MessageDeleteBulk"] = "MESSAGE_DELETE_BULK";
|
||||||
|
GatewayDispatchEvents["MessageReactionAdd"] = "MESSAGE_REACTION_ADD";
|
||||||
|
GatewayDispatchEvents["MessageReactionRemove"] = "MESSAGE_REACTION_REMOVE";
|
||||||
|
GatewayDispatchEvents["MessageReactionRemoveAll"] = "MESSAGE_REACTION_REMOVE_ALL";
|
||||||
|
GatewayDispatchEvents["MessageReactionRemoveEmoji"] = "MESSAGE_REACTION_REMOVE_EMOJI";
|
||||||
|
GatewayDispatchEvents["MessageUpdate"] = "MESSAGE_UPDATE";
|
||||||
|
GatewayDispatchEvents["PresenceUpdate"] = "PRESENCE_UPDATE";
|
||||||
|
GatewayDispatchEvents["StageInstanceCreate"] = "STAGE_INSTANCE_CREATE";
|
||||||
|
GatewayDispatchEvents["StageInstanceDelete"] = "STAGE_INSTANCE_DELETE";
|
||||||
|
GatewayDispatchEvents["StageInstanceUpdate"] = "STAGE_INSTANCE_UPDATE";
|
||||||
|
GatewayDispatchEvents["Ready"] = "READY";
|
||||||
|
GatewayDispatchEvents["Resumed"] = "RESUMED";
|
||||||
|
GatewayDispatchEvents["TypingStart"] = "TYPING_START";
|
||||||
|
GatewayDispatchEvents["UserUpdate"] = "USER_UPDATE";
|
||||||
|
GatewayDispatchEvents["VoiceServerUpdate"] = "VOICE_SERVER_UPDATE";
|
||||||
|
GatewayDispatchEvents["VoiceStateUpdate"] = "VOICE_STATE_UPDATE";
|
||||||
|
GatewayDispatchEvents["WebhooksUpdate"] = "WEBHOOKS_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildScheduledEventCreate"] = "GUILD_SCHEDULED_EVENT_CREATE";
|
||||||
|
GatewayDispatchEvents["GuildScheduledEventUpdate"] = "GUILD_SCHEDULED_EVENT_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildScheduledEventDelete"] = "GUILD_SCHEDULED_EVENT_DELETE";
|
||||||
|
GatewayDispatchEvents["GuildScheduledEventUserAdd"] = "GUILD_SCHEDULED_EVENT_USER_ADD";
|
||||||
|
GatewayDispatchEvents["GuildScheduledEventUserRemove"] = "GUILD_SCHEDULED_EVENT_USER_REMOVE";
|
||||||
|
})(GatewayDispatchEvents || (exports.GatewayDispatchEvents = GatewayDispatchEvents = {}));
|
||||||
|
// #endregion Shared
|
||||||
|
//# sourceMappingURL=v8.js.map
|
||||||
1
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v8.js.map
generated
vendored
Normal file
1
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v8.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"v8.js","sourceRoot":"","sources":["v8.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AA4BH;;GAEG;AACU,QAAA,cAAc,GAAG,GAAG,CAAC;AAElC;;;;GAIG;AACH,IAAY,cA8CX;AA9CD,WAAY,cAAc;IACzB;;OAEG;IACH,2DAAQ,CAAA;IACR;;;OAGG;IACH,6DAAS,CAAA;IACT;;OAEG;IACH,2DAAQ,CAAA;IACR;;OAEG;IACH,uEAAc,CAAA;IACd;;OAEG;IACH,2EAAgB,CAAA;IAChB;;OAEG;IACH,uDAAU,CAAA;IACV;;OAEG;IACH,6DAAS,CAAA;IACT;;OAEG;IACH,iFAAmB,CAAA;IACnB;;OAEG;IACH,uEAAc,CAAA;IACd;;OAEG;IACH,sDAAK,CAAA;IACL;;OAEG;IACH,oEAAY,CAAA;AACb,CAAC,EA9CW,cAAc,8BAAd,cAAc,QA8CzB;AAED;;;;GAIG;AACH,IAAY,iBA8EX;AA9ED,WAAY,iBAAiB;IAC5B;;OAEG;IACH,4EAAoB,CAAA;IACpB;;;;OAIG;IACH,8EAAa,CAAA;IACb;;;;OAIG;IACH,0EAAW,CAAA;IACX;;;;OAIG;IACH,oFAAgB,CAAA;IAChB;;;;OAIG;IACH,4FAAoB,CAAA;IACpB;;OAEG;IACH,4FAAoB,CAAA;IACpB;;;;OAIG;IACH,wEAAkB,CAAA;IAClB;;OAEG;IACH,0EAAW,CAAA;IACX;;OAEG;IACH,kFAAe,CAAA;IACf;;;;OAIG;IACH,4EAAY,CAAA;IACZ;;;;OAIG;IACH,oFAAgB,CAAA;IAChB;;OAEG;IACH,sFAAiB,CAAA;IACjB;;;;OAIG;IACH,gFAAc,CAAA;IACd;;;;;;;OAOG;IACH,sFAAiB,CAAA;AAClB,CAAC,EA9EW,iBAAiB,iCAAjB,iBAAiB,QA8E5B;AAED;;;;GAIG;AACH,IAAY,iBAiBX;AAjBD,WAAY,iBAAiB;IAC5B,6DAAe,CAAA;IACf,yEAAqB,CAAA;IACrB,mEAAkB,CAAA;IAClB,6FAA+B,CAAA;IAC/B,oFAA0B,CAAA;IAC1B,4EAAsB,CAAA;IACtB,0EAAqB,CAAA;IACrB,mFAAyB,CAAA;IACzB,+EAAuB,CAAA;IACvB,6EAAsB,CAAA;IACtB,8FAA+B,CAAA;IAC/B,wFAA4B,CAAA;IAC5B,gFAAwB,CAAA;IACxB,gGAAgC,CAAA;IAChC,2FAA6B,CAAA;IAC7B,6FAA8B,CAAA;AAC/B,CAAC,EAjBW,iBAAiB,iCAAjB,iBAAiB,QAiB5B;AAED;;;;GAIG;AACH,IAAY,qBAkDX;AAlDD,WAAY,qBAAqB;IAChC,yDAAgC,CAAA;IAChC,yDAAgC,CAAA;IAChC,kEAAyC,CAAA;IACzC,yDAAgC,CAAA;IAChC,sDAA6B,CAAA;IAC7B,4DAAmC,CAAA;IACnC,qDAA4B,CAAA;IAC5B,qDAA4B,CAAA;IAC5B,kEAAyC,CAAA;IACzC,8EAAqD,CAAA;IACrD,4DAAmC,CAAA;IACnC,kEAAyC,CAAA;IACzC,kEAAyC,CAAA;IACzC,kEAAyC,CAAA;IACzC,8DAAqC,CAAA;IACrC,8DAAqC,CAAA;IACrC,8DAAqC,CAAA;IACrC,sEAA6C,CAAA;IAC7C,qDAA4B,CAAA;IAC5B,iEAAwC,CAAA;IACxC,iEAAwC,CAAA;IACxC,iEAAwC,CAAA;IACxC,iEAAwC,CAAA;IACxC,uDAA8B,CAAA;IAC9B,uDAA8B,CAAA;IAC9B,yDAAgC,CAAA;IAChC,yDAAgC,CAAA;IAChC,kEAAyC,CAAA;IACzC,oEAA2C,CAAA;IAC3C,0EAAiD,CAAA;IACjD,iFAAwD,CAAA;IACxD,qFAA4D,CAAA;IAC5D,yDAAgC,CAAA;IAChC,2DAAkC,CAAA;IAClC,sEAA6C,CAAA;IAC7C,sEAA6C,CAAA;IAC7C,sEAA6C,CAAA;IAC7C,wCAAe,CAAA;IACf,4CAAmB,CAAA;IACnB,qDAA4B,CAAA;IAC5B,mDAA0B,CAAA;IAC1B,kEAAyC,CAAA;IACzC,gEAAuC,CAAA;IACvC,2DAAkC,CAAA;IAClC,mFAA0D,CAAA;IAC1D,mFAA0D,CAAA;IAC1D,mFAA0D,CAAA;IAC1D,sFAA6D,CAAA;IAC7D,4FAAmE,CAAA;AACpE,CAAC,EAlDW,qBAAqB,qCAArB,qBAAqB,QAkDhC;AAgoDD,oBAAoB"}
|
||||||
8
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v8.mjs
generated
vendored
Normal file
8
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v8.mjs
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
import mod from "./v8.js";
|
||||||
|
|
||||||
|
export default mod;
|
||||||
|
export const GatewayCloseCodes = mod.GatewayCloseCodes;
|
||||||
|
export const GatewayDispatchEvents = mod.GatewayDispatchEvents;
|
||||||
|
export const GatewayIntentBits = mod.GatewayIntentBits;
|
||||||
|
export const GatewayOpcodes = mod.GatewayOpcodes;
|
||||||
|
export const GatewayVersion = mod.GatewayVersion;
|
||||||
2053
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v9.d.ts
generated
vendored
Normal file
2053
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v9.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v9.d.ts.map
generated
vendored
Normal file
1
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v9.d.ts.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
276
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v9.js
generated
vendored
Normal file
276
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v9.js
generated
vendored
Normal file
@@ -0,0 +1,276 @@
|
|||||||
|
"use strict";
|
||||||
|
/**
|
||||||
|
* Types extracted from https://discord.com/developers/docs/topics/gateway
|
||||||
|
*/
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.VoiceChannelEffectSendAnimationType = exports.GatewayDispatchEvents = exports.GatewayIntentBits = exports.GatewayCloseCodes = exports.GatewayOpcodes = exports.GatewayVersion = void 0;
|
||||||
|
exports.GatewayVersion = '9';
|
||||||
|
/**
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/opcodes-and-status-codes#gateway-gateway-opcodes}
|
||||||
|
*/
|
||||||
|
var GatewayOpcodes;
|
||||||
|
(function (GatewayOpcodes) {
|
||||||
|
/**
|
||||||
|
* An event was dispatched
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["Dispatch"] = 0] = "Dispatch";
|
||||||
|
/**
|
||||||
|
* A bidirectional opcode to maintain an active gateway connection.
|
||||||
|
* Fired periodically by the client, or fired by the gateway to request an immediate heartbeat from the client.
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["Heartbeat"] = 1] = "Heartbeat";
|
||||||
|
/**
|
||||||
|
* Starts a new session during the initial handshake
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["Identify"] = 2] = "Identify";
|
||||||
|
/**
|
||||||
|
* Update the client's presence
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["PresenceUpdate"] = 3] = "PresenceUpdate";
|
||||||
|
/**
|
||||||
|
* Used to join/leave or move between voice channels
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["VoiceStateUpdate"] = 4] = "VoiceStateUpdate";
|
||||||
|
/**
|
||||||
|
* Resume a previous session that was disconnected
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["Resume"] = 6] = "Resume";
|
||||||
|
/**
|
||||||
|
* You should attempt to reconnect and resume immediately
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["Reconnect"] = 7] = "Reconnect";
|
||||||
|
/**
|
||||||
|
* Request information about offline guild members in a large guild
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["RequestGuildMembers"] = 8] = "RequestGuildMembers";
|
||||||
|
/**
|
||||||
|
* The session has been invalidated. You should reconnect and identify/resume accordingly
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["InvalidSession"] = 9] = "InvalidSession";
|
||||||
|
/**
|
||||||
|
* Sent immediately after connecting, contains the `heartbeat_interval` to use
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["Hello"] = 10] = "Hello";
|
||||||
|
/**
|
||||||
|
* Sent in response to receiving a heartbeat to acknowledge that it has been received
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["HeartbeatAck"] = 11] = "HeartbeatAck";
|
||||||
|
/**
|
||||||
|
* Request information about soundboard sounds in a set of guilds
|
||||||
|
*/
|
||||||
|
GatewayOpcodes[GatewayOpcodes["RequestSoundboardSounds"] = 31] = "RequestSoundboardSounds";
|
||||||
|
})(GatewayOpcodes || (exports.GatewayOpcodes = GatewayOpcodes = {}));
|
||||||
|
/**
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/opcodes-and-status-codes#gateway-gateway-close-event-codes}
|
||||||
|
*/
|
||||||
|
var GatewayCloseCodes;
|
||||||
|
(function (GatewayCloseCodes) {
|
||||||
|
/**
|
||||||
|
* We're not sure what went wrong. Try reconnecting?
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["UnknownError"] = 4000] = "UnknownError";
|
||||||
|
/**
|
||||||
|
* You sent an invalid Gateway opcode or an invalid payload for an opcode. Don't do that!
|
||||||
|
*
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/gateway-events#payload-structure}
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["UnknownOpcode"] = 4001] = "UnknownOpcode";
|
||||||
|
/**
|
||||||
|
* You sent an invalid payload to us. Don't do that!
|
||||||
|
*
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/gateway#sending-events}
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["DecodeError"] = 4002] = "DecodeError";
|
||||||
|
/**
|
||||||
|
* You sent us a payload prior to identifying
|
||||||
|
*
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/gateway-events#identify}
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["NotAuthenticated"] = 4003] = "NotAuthenticated";
|
||||||
|
/**
|
||||||
|
* The account token sent with your identify payload is incorrect
|
||||||
|
*
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/gateway-events#identify}
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["AuthenticationFailed"] = 4004] = "AuthenticationFailed";
|
||||||
|
/**
|
||||||
|
* You sent more than one identify payload. Don't do that!
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["AlreadyAuthenticated"] = 4005] = "AlreadyAuthenticated";
|
||||||
|
/**
|
||||||
|
* The sequence sent when resuming the session was invalid. Reconnect and start a new session
|
||||||
|
*
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/gateway-events#resume}
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["InvalidSeq"] = 4007] = "InvalidSeq";
|
||||||
|
/**
|
||||||
|
* Woah nelly! You're sending payloads to us too quickly. Slow it down! You will be disconnected on receiving this
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["RateLimited"] = 4008] = "RateLimited";
|
||||||
|
/**
|
||||||
|
* Your session timed out. Reconnect and start a new one
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["SessionTimedOut"] = 4009] = "SessionTimedOut";
|
||||||
|
/**
|
||||||
|
* You sent us an invalid shard when identifying
|
||||||
|
*
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/gateway#sharding}
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["InvalidShard"] = 4010] = "InvalidShard";
|
||||||
|
/**
|
||||||
|
* The session would have handled too many guilds - you are required to shard your connection in order to connect
|
||||||
|
*
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/gateway#sharding}
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["ShardingRequired"] = 4011] = "ShardingRequired";
|
||||||
|
/**
|
||||||
|
* You sent an invalid version for the gateway
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["InvalidAPIVersion"] = 4012] = "InvalidAPIVersion";
|
||||||
|
/**
|
||||||
|
* You sent an invalid intent for a Gateway Intent. You may have incorrectly calculated the bitwise value
|
||||||
|
*
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/gateway#gateway-intents}
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["InvalidIntents"] = 4013] = "InvalidIntents";
|
||||||
|
/**
|
||||||
|
* You sent a disallowed intent for a Gateway Intent. You may have tried to specify an intent that you have not
|
||||||
|
* enabled or are not whitelisted for
|
||||||
|
*
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/gateway#gateway-intents}
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/gateway#privileged-intents}
|
||||||
|
*/
|
||||||
|
GatewayCloseCodes[GatewayCloseCodes["DisallowedIntents"] = 4014] = "DisallowedIntents";
|
||||||
|
})(GatewayCloseCodes || (exports.GatewayCloseCodes = GatewayCloseCodes = {}));
|
||||||
|
/**
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/gateway#list-of-intents}
|
||||||
|
*/
|
||||||
|
var GatewayIntentBits;
|
||||||
|
(function (GatewayIntentBits) {
|
||||||
|
GatewayIntentBits[GatewayIntentBits["Guilds"] = 1] = "Guilds";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildMembers"] = 2] = "GuildMembers";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildModeration"] = 4] = "GuildModeration";
|
||||||
|
/**
|
||||||
|
* @deprecated This is the old name for {@link GatewayIntentBits.GuildModeration}
|
||||||
|
*/
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildBans"] = 4] = "GuildBans";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildExpressions"] = 8] = "GuildExpressions";
|
||||||
|
/**
|
||||||
|
* @deprecated This is the old name for {@link GatewayIntentBits.GuildExpressions}
|
||||||
|
*/
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildEmojisAndStickers"] = 8] = "GuildEmojisAndStickers";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildIntegrations"] = 16] = "GuildIntegrations";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildWebhooks"] = 32] = "GuildWebhooks";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildInvites"] = 64] = "GuildInvites";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildVoiceStates"] = 128] = "GuildVoiceStates";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildPresences"] = 256] = "GuildPresences";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildMessages"] = 512] = "GuildMessages";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildMessageReactions"] = 1024] = "GuildMessageReactions";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildMessageTyping"] = 2048] = "GuildMessageTyping";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["DirectMessages"] = 4096] = "DirectMessages";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["DirectMessageReactions"] = 8192] = "DirectMessageReactions";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["DirectMessageTyping"] = 16384] = "DirectMessageTyping";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildScheduledEvents"] = 65536] = "GuildScheduledEvents";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["AutoModerationConfiguration"] = 1048576] = "AutoModerationConfiguration";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["AutoModerationExecution"] = 2097152] = "AutoModerationExecution";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["GuildMessagePolls"] = 16777216] = "GuildMessagePolls";
|
||||||
|
GatewayIntentBits[GatewayIntentBits["DirectMessagePolls"] = 33554432] = "DirectMessagePolls";
|
||||||
|
})(GatewayIntentBits || (exports.GatewayIntentBits = GatewayIntentBits = {}));
|
||||||
|
/**
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/gateway-events#receive-events}
|
||||||
|
*/
|
||||||
|
var GatewayDispatchEvents;
|
||||||
|
(function (GatewayDispatchEvents) {
|
||||||
|
GatewayDispatchEvents["ApplicationCommandPermissionsUpdate"] = "APPLICATION_COMMAND_PERMISSIONS_UPDATE";
|
||||||
|
GatewayDispatchEvents["AutoModerationActionExecution"] = "AUTO_MODERATION_ACTION_EXECUTION";
|
||||||
|
GatewayDispatchEvents["AutoModerationRuleCreate"] = "AUTO_MODERATION_RULE_CREATE";
|
||||||
|
GatewayDispatchEvents["AutoModerationRuleDelete"] = "AUTO_MODERATION_RULE_DELETE";
|
||||||
|
GatewayDispatchEvents["AutoModerationRuleUpdate"] = "AUTO_MODERATION_RULE_UPDATE";
|
||||||
|
GatewayDispatchEvents["ChannelCreate"] = "CHANNEL_CREATE";
|
||||||
|
GatewayDispatchEvents["ChannelDelete"] = "CHANNEL_DELETE";
|
||||||
|
GatewayDispatchEvents["ChannelPinsUpdate"] = "CHANNEL_PINS_UPDATE";
|
||||||
|
GatewayDispatchEvents["ChannelUpdate"] = "CHANNEL_UPDATE";
|
||||||
|
GatewayDispatchEvents["EntitlementCreate"] = "ENTITLEMENT_CREATE";
|
||||||
|
GatewayDispatchEvents["EntitlementDelete"] = "ENTITLEMENT_DELETE";
|
||||||
|
GatewayDispatchEvents["EntitlementUpdate"] = "ENTITLEMENT_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildAuditLogEntryCreate"] = "GUILD_AUDIT_LOG_ENTRY_CREATE";
|
||||||
|
GatewayDispatchEvents["GuildBanAdd"] = "GUILD_BAN_ADD";
|
||||||
|
GatewayDispatchEvents["GuildBanRemove"] = "GUILD_BAN_REMOVE";
|
||||||
|
GatewayDispatchEvents["GuildCreate"] = "GUILD_CREATE";
|
||||||
|
GatewayDispatchEvents["GuildDelete"] = "GUILD_DELETE";
|
||||||
|
GatewayDispatchEvents["GuildEmojisUpdate"] = "GUILD_EMOJIS_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildIntegrationsUpdate"] = "GUILD_INTEGRATIONS_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildMemberAdd"] = "GUILD_MEMBER_ADD";
|
||||||
|
GatewayDispatchEvents["GuildMemberRemove"] = "GUILD_MEMBER_REMOVE";
|
||||||
|
GatewayDispatchEvents["GuildMembersChunk"] = "GUILD_MEMBERS_CHUNK";
|
||||||
|
GatewayDispatchEvents["GuildMemberUpdate"] = "GUILD_MEMBER_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildRoleCreate"] = "GUILD_ROLE_CREATE";
|
||||||
|
GatewayDispatchEvents["GuildRoleDelete"] = "GUILD_ROLE_DELETE";
|
||||||
|
GatewayDispatchEvents["GuildRoleUpdate"] = "GUILD_ROLE_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildScheduledEventCreate"] = "GUILD_SCHEDULED_EVENT_CREATE";
|
||||||
|
GatewayDispatchEvents["GuildScheduledEventDelete"] = "GUILD_SCHEDULED_EVENT_DELETE";
|
||||||
|
GatewayDispatchEvents["GuildScheduledEventUpdate"] = "GUILD_SCHEDULED_EVENT_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildScheduledEventUserAdd"] = "GUILD_SCHEDULED_EVENT_USER_ADD";
|
||||||
|
GatewayDispatchEvents["GuildScheduledEventUserRemove"] = "GUILD_SCHEDULED_EVENT_USER_REMOVE";
|
||||||
|
GatewayDispatchEvents["GuildSoundboardSoundCreate"] = "GUILD_SOUNDBOARD_SOUND_CREATE";
|
||||||
|
GatewayDispatchEvents["GuildSoundboardSoundDelete"] = "GUILD_SOUNDBOARD_SOUND_DELETE";
|
||||||
|
GatewayDispatchEvents["GuildSoundboardSoundsUpdate"] = "GUILD_SOUNDBOARD_SOUNDS_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildSoundboardSoundUpdate"] = "GUILD_SOUNDBOARD_SOUND_UPDATE";
|
||||||
|
GatewayDispatchEvents["SoundboardSounds"] = "SOUNDBOARD_SOUNDS";
|
||||||
|
GatewayDispatchEvents["GuildStickersUpdate"] = "GUILD_STICKERS_UPDATE";
|
||||||
|
GatewayDispatchEvents["GuildUpdate"] = "GUILD_UPDATE";
|
||||||
|
GatewayDispatchEvents["IntegrationCreate"] = "INTEGRATION_CREATE";
|
||||||
|
GatewayDispatchEvents["IntegrationDelete"] = "INTEGRATION_DELETE";
|
||||||
|
GatewayDispatchEvents["IntegrationUpdate"] = "INTEGRATION_UPDATE";
|
||||||
|
GatewayDispatchEvents["InteractionCreate"] = "INTERACTION_CREATE";
|
||||||
|
GatewayDispatchEvents["InviteCreate"] = "INVITE_CREATE";
|
||||||
|
GatewayDispatchEvents["InviteDelete"] = "INVITE_DELETE";
|
||||||
|
GatewayDispatchEvents["MessageCreate"] = "MESSAGE_CREATE";
|
||||||
|
GatewayDispatchEvents["MessageDelete"] = "MESSAGE_DELETE";
|
||||||
|
GatewayDispatchEvents["MessageDeleteBulk"] = "MESSAGE_DELETE_BULK";
|
||||||
|
GatewayDispatchEvents["MessagePollVoteAdd"] = "MESSAGE_POLL_VOTE_ADD";
|
||||||
|
GatewayDispatchEvents["MessagePollVoteRemove"] = "MESSAGE_POLL_VOTE_REMOVE";
|
||||||
|
GatewayDispatchEvents["MessageReactionAdd"] = "MESSAGE_REACTION_ADD";
|
||||||
|
GatewayDispatchEvents["MessageReactionRemove"] = "MESSAGE_REACTION_REMOVE";
|
||||||
|
GatewayDispatchEvents["MessageReactionRemoveAll"] = "MESSAGE_REACTION_REMOVE_ALL";
|
||||||
|
GatewayDispatchEvents["MessageReactionRemoveEmoji"] = "MESSAGE_REACTION_REMOVE_EMOJI";
|
||||||
|
GatewayDispatchEvents["MessageUpdate"] = "MESSAGE_UPDATE";
|
||||||
|
GatewayDispatchEvents["PresenceUpdate"] = "PRESENCE_UPDATE";
|
||||||
|
GatewayDispatchEvents["RateLimited"] = "RATE_LIMITED";
|
||||||
|
GatewayDispatchEvents["Ready"] = "READY";
|
||||||
|
GatewayDispatchEvents["Resumed"] = "RESUMED";
|
||||||
|
GatewayDispatchEvents["StageInstanceCreate"] = "STAGE_INSTANCE_CREATE";
|
||||||
|
GatewayDispatchEvents["StageInstanceDelete"] = "STAGE_INSTANCE_DELETE";
|
||||||
|
GatewayDispatchEvents["StageInstanceUpdate"] = "STAGE_INSTANCE_UPDATE";
|
||||||
|
GatewayDispatchEvents["SubscriptionCreate"] = "SUBSCRIPTION_CREATE";
|
||||||
|
GatewayDispatchEvents["SubscriptionDelete"] = "SUBSCRIPTION_DELETE";
|
||||||
|
GatewayDispatchEvents["SubscriptionUpdate"] = "SUBSCRIPTION_UPDATE";
|
||||||
|
GatewayDispatchEvents["ThreadCreate"] = "THREAD_CREATE";
|
||||||
|
GatewayDispatchEvents["ThreadDelete"] = "THREAD_DELETE";
|
||||||
|
GatewayDispatchEvents["ThreadListSync"] = "THREAD_LIST_SYNC";
|
||||||
|
GatewayDispatchEvents["ThreadMembersUpdate"] = "THREAD_MEMBERS_UPDATE";
|
||||||
|
GatewayDispatchEvents["ThreadMemberUpdate"] = "THREAD_MEMBER_UPDATE";
|
||||||
|
GatewayDispatchEvents["ThreadUpdate"] = "THREAD_UPDATE";
|
||||||
|
GatewayDispatchEvents["TypingStart"] = "TYPING_START";
|
||||||
|
GatewayDispatchEvents["UserUpdate"] = "USER_UPDATE";
|
||||||
|
GatewayDispatchEvents["VoiceChannelEffectSend"] = "VOICE_CHANNEL_EFFECT_SEND";
|
||||||
|
GatewayDispatchEvents["VoiceServerUpdate"] = "VOICE_SERVER_UPDATE";
|
||||||
|
GatewayDispatchEvents["VoiceStateUpdate"] = "VOICE_STATE_UPDATE";
|
||||||
|
GatewayDispatchEvents["WebhooksUpdate"] = "WEBHOOKS_UPDATE";
|
||||||
|
})(GatewayDispatchEvents || (exports.GatewayDispatchEvents = GatewayDispatchEvents = {}));
|
||||||
|
/**
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/gateway-events#voice-channel-effect-send-animation-types}
|
||||||
|
*/
|
||||||
|
var VoiceChannelEffectSendAnimationType;
|
||||||
|
(function (VoiceChannelEffectSendAnimationType) {
|
||||||
|
/**
|
||||||
|
* A fun animation, sent by a Nitro subscriber
|
||||||
|
*/
|
||||||
|
VoiceChannelEffectSendAnimationType[VoiceChannelEffectSendAnimationType["Premium"] = 0] = "Premium";
|
||||||
|
/**
|
||||||
|
* The standard animation
|
||||||
|
*/
|
||||||
|
VoiceChannelEffectSendAnimationType[VoiceChannelEffectSendAnimationType["Basic"] = 1] = "Basic";
|
||||||
|
})(VoiceChannelEffectSendAnimationType || (exports.VoiceChannelEffectSendAnimationType = VoiceChannelEffectSendAnimationType = {}));
|
||||||
|
// #endregion Shared
|
||||||
|
//# sourceMappingURL=v9.js.map
|
||||||
1
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v9.js.map
generated
vendored
Normal file
1
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v9.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"v9.js","sourceRoot":"","sources":["v9.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAqDU,QAAA,cAAc,GAAG,GAAG,CAAC;AAElC;;GAEG;AACH,IAAY,cAkDX;AAlDD,WAAY,cAAc;IACzB;;OAEG;IACH,2DAAQ,CAAA;IACR;;;OAGG;IACH,6DAAS,CAAA;IACT;;OAEG;IACH,2DAAQ,CAAA;IACR;;OAEG;IACH,uEAAc,CAAA;IACd;;OAEG;IACH,2EAAgB,CAAA;IAChB;;OAEG;IACH,uDAAU,CAAA;IACV;;OAEG;IACH,6DAAS,CAAA;IACT;;OAEG;IACH,iFAAmB,CAAA;IACnB;;OAEG;IACH,uEAAc,CAAA;IACd;;OAEG;IACH,sDAAK,CAAA;IACL;;OAEG;IACH,oEAAY,CAAA;IACZ;;OAEG;IACH,0FAA4B,CAAA;AAC7B,CAAC,EAlDW,cAAc,8BAAd,cAAc,QAkDzB;AAED;;GAEG;AACH,IAAY,iBA6EX;AA7ED,WAAY,iBAAiB;IAC5B;;OAEG;IACH,4EAAoB,CAAA;IACpB;;;;OAIG;IACH,8EAAa,CAAA;IACb;;;;OAIG;IACH,0EAAW,CAAA;IACX;;;;OAIG;IACH,oFAAgB,CAAA;IAChB;;;;OAIG;IACH,4FAAoB,CAAA;IACpB;;OAEG;IACH,4FAAoB,CAAA;IACpB;;;;OAIG;IACH,wEAAkB,CAAA;IAClB;;OAEG;IACH,0EAAW,CAAA;IACX;;OAEG;IACH,kFAAe,CAAA;IACf;;;;OAIG;IACH,4EAAY,CAAA;IACZ;;;;OAIG;IACH,oFAAgB,CAAA;IAChB;;OAEG;IACH,sFAAiB,CAAA;IACjB;;;;OAIG;IACH,gFAAc,CAAA;IACd;;;;;;OAMG;IACH,sFAAiB,CAAA;AAClB,CAAC,EA7EW,iBAAiB,iCAAjB,iBAAiB,QA6E5B;AAED;;GAEG;AACH,IAAY,iBA6BX;AA7BD,WAAY,iBAAiB;IAC5B,6DAAe,CAAA;IACf,yEAAqB,CAAA;IACrB,+EAAwB,CAAA;IACxB;;OAEG;IACH,mEAA2B,CAAA;IAC3B,iFAAyB,CAAA;IACzB;;OAEG;IACH,6FAAyC,CAAA;IACzC,oFAA0B,CAAA;IAC1B,4EAAsB,CAAA;IACtB,0EAAqB,CAAA;IACrB,mFAAyB,CAAA;IACzB,+EAAuB,CAAA;IACvB,6EAAsB,CAAA;IACtB,8FAA+B,CAAA;IAC/B,wFAA4B,CAAA;IAC5B,gFAAwB,CAAA;IACxB,gGAAgC,CAAA;IAChC,2FAA6B,CAAA;IAC7B,6FAA8B,CAAA;IAC9B,6GAAqC,CAAA;IACrC,qGAAiC,CAAA;IACjC,0FAA2B,CAAA;IAC3B,4FAA4B,CAAA;AAC7B,CAAC,EA7BW,iBAAiB,iCAAjB,iBAAiB,QA6B5B;AAED;;GAEG;AACH,IAAY,qBA6EX;AA7ED,WAAY,qBAAqB;IAChC,uGAA8E,CAAA;IAC9E,2FAAkE,CAAA;IAClE,iFAAwD,CAAA;IACxD,iFAAwD,CAAA;IACxD,iFAAwD,CAAA;IACxD,yDAAgC,CAAA;IAChC,yDAAgC,CAAA;IAChC,kEAAyC,CAAA;IACzC,yDAAgC,CAAA;IAChC,iEAAwC,CAAA;IACxC,iEAAwC,CAAA;IACxC,iEAAwC,CAAA;IACxC,kFAAyD,CAAA;IACzD,sDAA6B,CAAA;IAC7B,4DAAmC,CAAA;IACnC,qDAA4B,CAAA;IAC5B,qDAA4B,CAAA;IAC5B,kEAAyC,CAAA;IACzC,8EAAqD,CAAA;IACrD,4DAAmC,CAAA;IACnC,kEAAyC,CAAA;IACzC,kEAAyC,CAAA;IACzC,kEAAyC,CAAA;IACzC,8DAAqC,CAAA;IACrC,8DAAqC,CAAA;IACrC,8DAAqC,CAAA;IACrC,mFAA0D,CAAA;IAC1D,mFAA0D,CAAA;IAC1D,mFAA0D,CAAA;IAC1D,sFAA6D,CAAA;IAC7D,4FAAmE,CAAA;IACnE,qFAA4D,CAAA;IAC5D,qFAA4D,CAAA;IAC5D,uFAA8D,CAAA;IAC9D,qFAA4D,CAAA;IAC5D,+DAAsC,CAAA;IACtC,sEAA6C,CAAA;IAC7C,qDAA4B,CAAA;IAC5B,iEAAwC,CAAA;IACxC,iEAAwC,CAAA;IACxC,iEAAwC,CAAA;IACxC,iEAAwC,CAAA;IACxC,uDAA8B,CAAA;IAC9B,uDAA8B,CAAA;IAC9B,yDAAgC,CAAA;IAChC,yDAAgC,CAAA;IAChC,kEAAyC,CAAA;IACzC,qEAA4C,CAAA;IAC5C,2EAAkD,CAAA;IAClD,oEAA2C,CAAA;IAC3C,0EAAiD,CAAA;IACjD,iFAAwD,CAAA;IACxD,qFAA4D,CAAA;IAC5D,yDAAgC,CAAA;IAChC,2DAAkC,CAAA;IAClC,qDAA4B,CAAA;IAC5B,wCAAe,CAAA;IACf,4CAAmB,CAAA;IACnB,sEAA6C,CAAA;IAC7C,sEAA6C,CAAA;IAC7C,sEAA6C,CAAA;IAC7C,mEAA0C,CAAA;IAC1C,mEAA0C,CAAA;IAC1C,mEAA0C,CAAA;IAC1C,uDAA8B,CAAA;IAC9B,uDAA8B,CAAA;IAC9B,4DAAmC,CAAA;IACnC,sEAA6C,CAAA;IAC7C,oEAA2C,CAAA;IAC3C,uDAA8B,CAAA;IAC9B,qDAA4B,CAAA;IAC5B,mDAA0B,CAAA;IAC1B,6EAAoD,CAAA;IACpD,kEAAyC,CAAA;IACzC,gEAAuC,CAAA;IACvC,2DAAkC,CAAA;AACnC,CAAC,EA7EW,qBAAqB,qCAArB,qBAAqB,QA6EhC;AA4uDD;;GAEG;AACH,IAAY,mCASX;AATD,WAAY,mCAAmC;IAC9C;;OAEG;IACH,mGAAO,CAAA;IACP;;OAEG;IACH,+FAAK,CAAA;AACN,CAAC,EATW,mCAAmC,mDAAnC,mCAAmC,QAS9C;AAogBD,oBAAoB"}
|
||||||
9
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v9.mjs
generated
vendored
Normal file
9
node_modules/@discordjs/builders/node_modules/discord-api-types/gateway/v9.mjs
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import mod from "./v9.js";
|
||||||
|
|
||||||
|
export default mod;
|
||||||
|
export const GatewayCloseCodes = mod.GatewayCloseCodes;
|
||||||
|
export const GatewayDispatchEvents = mod.GatewayDispatchEvents;
|
||||||
|
export const GatewayIntentBits = mod.GatewayIntentBits;
|
||||||
|
export const GatewayOpcodes = mod.GatewayOpcodes;
|
||||||
|
export const GatewayVersion = mod.GatewayVersion;
|
||||||
|
export const VoiceChannelEffectSendAnimationType = mod.VoiceChannelEffectSendAnimationType;
|
||||||
102
node_modules/@discordjs/builders/node_modules/discord-api-types/globals.d.ts
generated
vendored
Normal file
102
node_modules/@discordjs/builders/node_modules/discord-api-types/globals.d.ts
generated
vendored
Normal file
@@ -0,0 +1,102 @@
|
|||||||
|
/**
|
||||||
|
* @see {@link https://discord.com/developers/docs/reference#snowflakes}
|
||||||
|
*/
|
||||||
|
export type Snowflake = string;
|
||||||
|
/**
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/permissions}
|
||||||
|
*/
|
||||||
|
export type Permissions = string;
|
||||||
|
/**
|
||||||
|
* @see {@link https://discord.com/developers/docs/reference#message-formatting-formats}
|
||||||
|
*/
|
||||||
|
export declare const FormattingPatterns: {
|
||||||
|
/**
|
||||||
|
* Regular expression for matching a user mention, strictly without a nickname
|
||||||
|
*
|
||||||
|
* The `id` group property is present on the `exec` result of this expression
|
||||||
|
*/
|
||||||
|
readonly User: RegExp;
|
||||||
|
/**
|
||||||
|
* Regular expression for matching a user mention, strictly with a nickname
|
||||||
|
*
|
||||||
|
* The `id` group property is present on the `exec` result of this expression
|
||||||
|
*
|
||||||
|
* @deprecated Passing `!` in user mentions is no longer necessary / supported, and future message contents won't have it
|
||||||
|
*/
|
||||||
|
readonly UserWithNickname: RegExp;
|
||||||
|
/**
|
||||||
|
* Regular expression for matching a user mention, with or without a nickname
|
||||||
|
*
|
||||||
|
* The `id` group property is present on the `exec` result of this expression
|
||||||
|
*
|
||||||
|
* @deprecated Passing `!` in user mentions is no longer necessary / supported, and future message contents won't have it
|
||||||
|
*/
|
||||||
|
readonly UserWithOptionalNickname: RegExp;
|
||||||
|
/**
|
||||||
|
* Regular expression for matching a channel mention
|
||||||
|
*
|
||||||
|
* The `id` group property is present on the `exec` result of this expression
|
||||||
|
*/
|
||||||
|
readonly Channel: RegExp;
|
||||||
|
/**
|
||||||
|
* Regular expression for matching a role mention
|
||||||
|
*
|
||||||
|
* The `id` group property is present on the `exec` result of this expression
|
||||||
|
*/
|
||||||
|
readonly Role: RegExp;
|
||||||
|
/**
|
||||||
|
* Regular expression for matching a application command mention
|
||||||
|
*
|
||||||
|
* The `fullName` (possibly including `name`, `subcommandOrGroup` and `subcommand`) and `id` group properties are present on the `exec` result of this expression
|
||||||
|
*/
|
||||||
|
readonly SlashCommand: RegExp;
|
||||||
|
/**
|
||||||
|
* Regular expression for matching a custom emoji, either static or animated
|
||||||
|
*
|
||||||
|
* The `animated`, `name` and `id` group properties are present on the `exec` result of this expression
|
||||||
|
*/
|
||||||
|
readonly Emoji: RegExp;
|
||||||
|
/**
|
||||||
|
* Regular expression for matching strictly an animated custom emoji
|
||||||
|
*
|
||||||
|
* The `animated`, `name` and `id` group properties are present on the `exec` result of this expression
|
||||||
|
*/
|
||||||
|
readonly AnimatedEmoji: RegExp;
|
||||||
|
/**
|
||||||
|
* Regular expression for matching strictly a static custom emoji
|
||||||
|
*
|
||||||
|
* The `name` and `id` group properties are present on the `exec` result of this expression
|
||||||
|
*/
|
||||||
|
readonly StaticEmoji: RegExp;
|
||||||
|
/**
|
||||||
|
* Regular expression for matching a timestamp, either default or custom styled
|
||||||
|
*
|
||||||
|
* The `timestamp` and `style` group properties are present on the `exec` result of this expression
|
||||||
|
*/
|
||||||
|
readonly Timestamp: RegExp;
|
||||||
|
/**
|
||||||
|
* Regular expression for matching strictly default styled timestamps
|
||||||
|
*
|
||||||
|
* The `timestamp` group property is present on the `exec` result of this expression
|
||||||
|
*/
|
||||||
|
readonly DefaultStyledTimestamp: RegExp;
|
||||||
|
/**
|
||||||
|
* Regular expression for matching strictly custom styled timestamps
|
||||||
|
*
|
||||||
|
* The `timestamp` and `style` group properties are present on the `exec` result of this expression
|
||||||
|
*/
|
||||||
|
readonly StyledTimestamp: RegExp;
|
||||||
|
/**
|
||||||
|
* Regular expression for matching a guild navigation mention
|
||||||
|
*
|
||||||
|
* The `type` group property is present on the `exec` result of this expression
|
||||||
|
*/
|
||||||
|
readonly GuildNavigation: RegExp;
|
||||||
|
/**
|
||||||
|
* Regular expression for matching a linked role mention
|
||||||
|
*
|
||||||
|
* The `id` group property is present on the `exec` result of this expression
|
||||||
|
*/
|
||||||
|
readonly LinkedRole: RegExp;
|
||||||
|
};
|
||||||
|
//# sourceMappingURL=globals.d.ts.map
|
||||||
1
node_modules/@discordjs/builders/node_modules/discord-api-types/globals.d.ts.map
generated
vendored
Normal file
1
node_modules/@discordjs/builders/node_modules/discord-api-types/globals.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["globals.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,kBAAkB;IAC9B;;;;OAIG;;IAEH;;;;;;OAMG;;IAEH;;;;;;OAMG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAGH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAGH;;;;OAIG;;IAEH;;;;OAIG;;IAGH;;;;OAIG;;IAEH;;;;OAIG;;CAEM,CAAC"}
|
||||||
105
node_modules/@discordjs/builders/node_modules/discord-api-types/globals.js
generated
vendored
Normal file
105
node_modules/@discordjs/builders/node_modules/discord-api-types/globals.js
generated
vendored
Normal file
@@ -0,0 +1,105 @@
|
|||||||
|
"use strict";
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.FormattingPatterns = void 0;
|
||||||
|
/**
|
||||||
|
* @see {@link https://discord.com/developers/docs/reference#message-formatting-formats}
|
||||||
|
*/
|
||||||
|
exports.FormattingPatterns = {
|
||||||
|
/**
|
||||||
|
* Regular expression for matching a user mention, strictly without a nickname
|
||||||
|
*
|
||||||
|
* The `id` group property is present on the `exec` result of this expression
|
||||||
|
*/
|
||||||
|
User: /<@(?<id>\d{17,20})>/,
|
||||||
|
/**
|
||||||
|
* Regular expression for matching a user mention, strictly with a nickname
|
||||||
|
*
|
||||||
|
* The `id` group property is present on the `exec` result of this expression
|
||||||
|
*
|
||||||
|
* @deprecated Passing `!` in user mentions is no longer necessary / supported, and future message contents won't have it
|
||||||
|
*/
|
||||||
|
UserWithNickname: /<@!(?<id>\d{17,20})>/,
|
||||||
|
/**
|
||||||
|
* Regular expression for matching a user mention, with or without a nickname
|
||||||
|
*
|
||||||
|
* The `id` group property is present on the `exec` result of this expression
|
||||||
|
*
|
||||||
|
* @deprecated Passing `!` in user mentions is no longer necessary / supported, and future message contents won't have it
|
||||||
|
*/
|
||||||
|
UserWithOptionalNickname: /<@!?(?<id>\d{17,20})>/,
|
||||||
|
/**
|
||||||
|
* Regular expression for matching a channel mention
|
||||||
|
*
|
||||||
|
* The `id` group property is present on the `exec` result of this expression
|
||||||
|
*/
|
||||||
|
Channel: /<#(?<id>\d{17,20})>/,
|
||||||
|
/**
|
||||||
|
* Regular expression for matching a role mention
|
||||||
|
*
|
||||||
|
* The `id` group property is present on the `exec` result of this expression
|
||||||
|
*/
|
||||||
|
Role: /<@&(?<id>\d{17,20})>/,
|
||||||
|
/**
|
||||||
|
* Regular expression for matching a application command mention
|
||||||
|
*
|
||||||
|
* The `fullName` (possibly including `name`, `subcommandOrGroup` and `subcommand`) and `id` group properties are present on the `exec` result of this expression
|
||||||
|
*/
|
||||||
|
SlashCommand: /<\/(?<fullName>(?<name>[-_\p{Letter}\p{Number}\p{sc=Deva}\p{sc=Thai}]{1,32})(?: (?<subcommandOrGroup>[-_\p{Letter}\p{Number}\p{sc=Deva}\p{sc=Thai}]{1,32}))?(?: (?<subcommand>[-_\p{Letter}\p{Number}\p{sc=Deva}\p{sc=Thai}]{1,32}))?):(?<id>\d{17,20})>/u,
|
||||||
|
/**
|
||||||
|
* Regular expression for matching a custom emoji, either static or animated
|
||||||
|
*
|
||||||
|
* The `animated`, `name` and `id` group properties are present on the `exec` result of this expression
|
||||||
|
*/
|
||||||
|
Emoji: /<(?<animated>a)?:(?<name>\w{2,32}):(?<id>\d{17,20})>/,
|
||||||
|
/**
|
||||||
|
* Regular expression for matching strictly an animated custom emoji
|
||||||
|
*
|
||||||
|
* The `animated`, `name` and `id` group properties are present on the `exec` result of this expression
|
||||||
|
*/
|
||||||
|
AnimatedEmoji: /<(?<animated>a):(?<name>\w{2,32}):(?<id>\d{17,20})>/,
|
||||||
|
/**
|
||||||
|
* Regular expression for matching strictly a static custom emoji
|
||||||
|
*
|
||||||
|
* The `name` and `id` group properties are present on the `exec` result of this expression
|
||||||
|
*/
|
||||||
|
StaticEmoji: /<:(?<name>\w{2,32}):(?<id>\d{17,20})>/,
|
||||||
|
/**
|
||||||
|
* Regular expression for matching a timestamp, either default or custom styled
|
||||||
|
*
|
||||||
|
* The `timestamp` and `style` group properties are present on the `exec` result of this expression
|
||||||
|
*/
|
||||||
|
// eslint-disable-next-line prefer-named-capture-group, unicorn/better-regex
|
||||||
|
Timestamp: /<t:(?<timestamp>-?\d{1,13})(:(?<style>[DFRSTdfst]))?>/,
|
||||||
|
/**
|
||||||
|
* Regular expression for matching strictly default styled timestamps
|
||||||
|
*
|
||||||
|
* The `timestamp` group property is present on the `exec` result of this expression
|
||||||
|
*/
|
||||||
|
DefaultStyledTimestamp: /<t:(?<timestamp>-?\d{1,13})>/,
|
||||||
|
/**
|
||||||
|
* Regular expression for matching strictly custom styled timestamps
|
||||||
|
*
|
||||||
|
* The `timestamp` and `style` group properties are present on the `exec` result of this expression
|
||||||
|
*/
|
||||||
|
// eslint-disable-next-line unicorn/better-regex
|
||||||
|
StyledTimestamp: /<t:(?<timestamp>-?\d{1,13}):(?<style>[DFRSTdfst])>/,
|
||||||
|
/**
|
||||||
|
* Regular expression for matching a guild navigation mention
|
||||||
|
*
|
||||||
|
* The `type` group property is present on the `exec` result of this expression
|
||||||
|
*/
|
||||||
|
GuildNavigation: /<id:(?<type>customize|browse|guide|linked-roles)>/,
|
||||||
|
/**
|
||||||
|
* Regular expression for matching a linked role mention
|
||||||
|
*
|
||||||
|
* The `id` group property is present on the `exec` result of this expression
|
||||||
|
*/
|
||||||
|
LinkedRole: /<id:linked-roles:(?<id>\d{17,20})>/,
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Freezes the formatting patterns
|
||||||
|
*
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
|
Object.freeze(exports.FormattingPatterns);
|
||||||
|
//# sourceMappingURL=globals.js.map
|
||||||
1
node_modules/@discordjs/builders/node_modules/discord-api-types/globals.js.map
generated
vendored
Normal file
1
node_modules/@discordjs/builders/node_modules/discord-api-types/globals.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"globals.js","sourceRoot":"","sources":["globals.ts"],"names":[],"mappings":";;;AAUA;;GAEG;AACU,QAAA,kBAAkB,GAAG;IACjC;;;;OAIG;IACH,IAAI,EAAE,qBAAqB;IAC3B;;;;;;OAMG;IACH,gBAAgB,EAAE,sBAAsB;IACxC;;;;;;OAMG;IACH,wBAAwB,EAAE,uBAAuB;IACjD;;;;OAIG;IACH,OAAO,EAAE,qBAAqB;IAC9B;;;;OAIG;IACH,IAAI,EAAE,sBAAsB;IAC5B;;;;OAIG;IACH,YAAY,EACX,2PAA2P;IAC5P;;;;OAIG;IACH,KAAK,EAAE,sDAAsD;IAC7D;;;;OAIG;IACH,aAAa,EAAE,qDAAqD;IACpE;;;;OAIG;IACH,WAAW,EAAE,uCAAuC;IACpD;;;;OAIG;IACH,4EAA4E;IAC5E,SAAS,EAAE,uDAAuD;IAClE;;;;OAIG;IACH,sBAAsB,EAAE,8BAA8B;IACtD;;;;OAIG;IACH,gDAAgD;IAChD,eAAe,EAAE,oDAAoD;IACrE;;;;OAIG;IACH,eAAe,EAAE,mDAAmD;IACpE;;;;OAIG;IACH,UAAU,EAAE,oCAAoC;CACvC,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,CAAC,0BAAkB,CAAC,CAAC"}
|
||||||
4
node_modules/@discordjs/builders/node_modules/discord-api-types/globals.mjs
generated
vendored
Normal file
4
node_modules/@discordjs/builders/node_modules/discord-api-types/globals.mjs
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
import mod from "./globals.js";
|
||||||
|
|
||||||
|
export default mod;
|
||||||
|
export const FormattingPatterns = mod.FormattingPatterns;
|
||||||
215
node_modules/@discordjs/builders/node_modules/discord-api-types/package.json
generated
vendored
Normal file
215
node_modules/@discordjs/builders/node_modules/discord-api-types/package.json
generated
vendored
Normal file
@@ -0,0 +1,215 @@
|
|||||||
|
{
|
||||||
|
"name": "discord-api-types",
|
||||||
|
"version": "0.38.35",
|
||||||
|
"description": "Discord API typings that are kept up to date for use in bot library creation.",
|
||||||
|
"homepage": "https://discord-api-types.dev",
|
||||||
|
"workspaces": [
|
||||||
|
"scripts/actions/documentation"
|
||||||
|
],
|
||||||
|
"exports": {
|
||||||
|
"./globals": {
|
||||||
|
"types": "./globals.d.ts",
|
||||||
|
"require": "./globals.js",
|
||||||
|
"import": "./globals.mjs"
|
||||||
|
},
|
||||||
|
"./v6": {
|
||||||
|
"types": "./v6.d.ts",
|
||||||
|
"require": "./v6.js",
|
||||||
|
"import": "./v6.mjs"
|
||||||
|
},
|
||||||
|
"./v8": {
|
||||||
|
"types": "./v8.d.ts",
|
||||||
|
"require": "./v8.js",
|
||||||
|
"import": "./v8.mjs"
|
||||||
|
},
|
||||||
|
"./v9": {
|
||||||
|
"types": "./v9.d.ts",
|
||||||
|
"require": "./v9.js",
|
||||||
|
"import": "./v9.mjs"
|
||||||
|
},
|
||||||
|
"./v10": {
|
||||||
|
"types": "./v10.d.ts",
|
||||||
|
"require": "./v10.js",
|
||||||
|
"import": "./v10.mjs"
|
||||||
|
},
|
||||||
|
"./gateway": {
|
||||||
|
"types": "./gateway/index.d.ts",
|
||||||
|
"require": "./gateway/index.js",
|
||||||
|
"import": "./gateway/index.mjs"
|
||||||
|
},
|
||||||
|
"./gateway/v*": {
|
||||||
|
"types": "./gateway/v*.d.ts",
|
||||||
|
"require": "./gateway/v*.js",
|
||||||
|
"import": "./gateway/v*.mjs"
|
||||||
|
},
|
||||||
|
"./payloads": {
|
||||||
|
"types": "./payloads/index.d.ts",
|
||||||
|
"require": "./payloads/index.js",
|
||||||
|
"import": "./payloads/index.mjs"
|
||||||
|
},
|
||||||
|
"./payloads/v*": {
|
||||||
|
"types": "./payloads/v*/index.d.ts",
|
||||||
|
"require": "./payloads/v*/index.js",
|
||||||
|
"import": "./payloads/v*/index.mjs"
|
||||||
|
},
|
||||||
|
"./rest": {
|
||||||
|
"types": "./rest/index.d.ts",
|
||||||
|
"require": "./rest/index.js",
|
||||||
|
"import": "./rest/index.mjs"
|
||||||
|
},
|
||||||
|
"./rest/v*": {
|
||||||
|
"types": "./rest/v*/index.d.ts",
|
||||||
|
"require": "./rest/v*/index.js",
|
||||||
|
"import": "./rest/v*/index.mjs"
|
||||||
|
},
|
||||||
|
"./rpc": {
|
||||||
|
"types": "./rpc/index.d.ts",
|
||||||
|
"require": "./rpc/index.js",
|
||||||
|
"import": "./rpc/index.mjs"
|
||||||
|
},
|
||||||
|
"./rpc/v*": {
|
||||||
|
"types": "./rpc/v*.d.ts",
|
||||||
|
"require": "./rpc/v*.js",
|
||||||
|
"import": "./rpc/v*.mjs"
|
||||||
|
},
|
||||||
|
"./voice": {
|
||||||
|
"types": "./voice/index.d.ts",
|
||||||
|
"require": "./voice/index.js",
|
||||||
|
"import": "./voice/index.mjs"
|
||||||
|
},
|
||||||
|
"./voice/v*": {
|
||||||
|
"types": "./voice/v*.d.ts",
|
||||||
|
"require": "./voice/v*.js",
|
||||||
|
"import": "./voice/v*.mjs"
|
||||||
|
},
|
||||||
|
"./utils": {
|
||||||
|
"types": "./utils/index.d.ts",
|
||||||
|
"require": "./utils/index.js",
|
||||||
|
"import": "./utils/index.mjs"
|
||||||
|
},
|
||||||
|
"./utils/v*": {
|
||||||
|
"types": "./utils/v*.d.ts",
|
||||||
|
"require": "./utils/v*.js",
|
||||||
|
"import": "./utils/v*.mjs"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"build:ci": "tsc --noEmit --incremental false",
|
||||||
|
"build:deno": "node ./scripts/deno.mjs",
|
||||||
|
"build:generated": "tsx ./scripts/generate-prettier-routes-interface.ts",
|
||||||
|
"build:node": "yarn build:generated && tsc && run-p 'esm:*'",
|
||||||
|
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
||||||
|
"ci:pr": "run-s changelog lint build:deno && node ./scripts/bump-website-version.mjs",
|
||||||
|
"clean:deno": "rimraf deno/",
|
||||||
|
"clean:node": "rimraf --glob \"{gateway,payloads,rest,rpc,voice,utils}/**/*.{js,mjs,d.ts,*map}\" \"{globals,v*}.{js,mjs,d.ts,*map}\"",
|
||||||
|
"clean": "run-p 'clean:*'",
|
||||||
|
"esm:gateway": "gen-esm-wrapper ./gateway/index.js ./gateway/index.mjs",
|
||||||
|
"esm:globals": "gen-esm-wrapper ./globals.js ./globals.mjs",
|
||||||
|
"esm:payloads": "gen-esm-wrapper ./payloads/index.js ./payloads/index.mjs",
|
||||||
|
"esm:rest": "gen-esm-wrapper ./rest/index.js ./rest/index.mjs",
|
||||||
|
"esm:rpc": "gen-esm-wrapper ./rpc/index.js ./rpc/index.mjs",
|
||||||
|
"esm:utils": "gen-esm-wrapper ./utils/index.js ./utils/index.mjs",
|
||||||
|
"esm:versions": "node ./scripts/versions.mjs",
|
||||||
|
"esm:voice": "gen-esm-wrapper ./voice/index.js ./voice/index.mjs",
|
||||||
|
"lint": "prettier --write . && eslint --format=pretty --fix --ext mjs,ts \"{gateway,payloads,rest,rpc,voice,utils}/**/*.ts\" \"{globals,v*}.ts\" \"scripts/**/*.mjs\"",
|
||||||
|
"postinstallDev": "is-ci || husky",
|
||||||
|
"prepack": "run-s clean test:lint build:node",
|
||||||
|
"postpack": "run-s clean:node build:deno && git checkout -- './deno/**/*.ts' './rest/**/*.ts'",
|
||||||
|
"test:lint": "prettier --check . && eslint --format=pretty --ext mjs,ts \"{gateway,payloads,rest,rpc,voice,utils}/**/*.ts\" \"{globals,v*}.ts\" \"scripts/**/*.mjs\"",
|
||||||
|
"test:types": "tsc -p tests"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"discord",
|
||||||
|
"discord api",
|
||||||
|
"types",
|
||||||
|
"discordjs"
|
||||||
|
],
|
||||||
|
"author": "Vlad Frangu <me@vladfrangu.dev>",
|
||||||
|
"license": "MIT",
|
||||||
|
"files": [
|
||||||
|
"_generated_/**/*.{js,js.map,d.ts,d.ts.map,mjs}",
|
||||||
|
"{gateway,payloads,rest,rpc,voice,utils}/**/*.{js,js.map,d.ts,d.ts.map,mjs}",
|
||||||
|
"{globals,v*}.{js,js.map,d.ts,d.ts.map,mjs}"
|
||||||
|
],
|
||||||
|
"devDependencies": {
|
||||||
|
"@commitlint/cli": "^20.0.0",
|
||||||
|
"@commitlint/config-angular": "^20.0.0",
|
||||||
|
"@favware/npm-deprecate": "^2.0.0",
|
||||||
|
"@octokit/action": "^8.0.2",
|
||||||
|
"@octokit/webhooks-types": "^7.6.1",
|
||||||
|
"@sapphire/prettier-config": "^2.0.0",
|
||||||
|
"@types/lodash.merge": "^4",
|
||||||
|
"@types/node": "^24.0.0",
|
||||||
|
"@typescript-eslint/utils": "^8.33.0",
|
||||||
|
"conventional-changelog": "^7.0.2",
|
||||||
|
"conventional-changelog-angular": "^8.0.0",
|
||||||
|
"conventional-recommended-bump": "^11.1.0",
|
||||||
|
"eslint": "^9.28.0",
|
||||||
|
"eslint-config-neon": "^0.2.7",
|
||||||
|
"eslint-formatter-pretty": "^7.0.0",
|
||||||
|
"eslint-import-resolver-typescript": "^4.4.2",
|
||||||
|
"gen-esm-wrapper": "^1.1.3",
|
||||||
|
"husky": "^9.1.7",
|
||||||
|
"is-ci": "^4.1.0",
|
||||||
|
"lint-staged": "^16.1.0",
|
||||||
|
"lodash.merge": "^4.6.2",
|
||||||
|
"npm-run-all2": "^8.0.4",
|
||||||
|
"prettier": "^3.5.3",
|
||||||
|
"pretty-quick": "^4.1.1",
|
||||||
|
"rimraf": "^6.0.1",
|
||||||
|
"ts-morph": "^27.0.0",
|
||||||
|
"tsutils": "^3.21.0",
|
||||||
|
"tsx": "^4.20.3",
|
||||||
|
"typescript": "^5.8.3",
|
||||||
|
"typescript-eslint": "^8.33.0"
|
||||||
|
},
|
||||||
|
"publishConfig": {
|
||||||
|
"provenance": true,
|
||||||
|
"access": "public",
|
||||||
|
"registry": "https://registry.npmjs.org"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/discordjs/discord-api-types"
|
||||||
|
},
|
||||||
|
"lint-staged": {
|
||||||
|
"{gateway,payloads,rest,rpc,voice,utils}/**/*.{mjs,js,ts}": "eslint --fix --ext mjs,js,ts",
|
||||||
|
"{globals,v*}.ts": "eslint --fix --ext mjs,js,ts"
|
||||||
|
},
|
||||||
|
"commitlint": {
|
||||||
|
"extends": [
|
||||||
|
"@commitlint/config-angular"
|
||||||
|
],
|
||||||
|
"rules": {
|
||||||
|
"type-enum": [
|
||||||
|
2,
|
||||||
|
"always",
|
||||||
|
[
|
||||||
|
"chore",
|
||||||
|
"build",
|
||||||
|
"ci",
|
||||||
|
"docs",
|
||||||
|
"feat",
|
||||||
|
"fix",
|
||||||
|
"perf",
|
||||||
|
"refactor",
|
||||||
|
"revert",
|
||||||
|
"style",
|
||||||
|
"test",
|
||||||
|
"types",
|
||||||
|
"wip"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"scope-case": [
|
||||||
|
1,
|
||||||
|
"always",
|
||||||
|
"pascal-case"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"packageManager": "yarn@4.12.0",
|
||||||
|
"volta": {
|
||||||
|
"node": "24.11.1",
|
||||||
|
"yarn": "4.12.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
344
node_modules/@discordjs/builders/node_modules/discord-api-types/payloads/common.d.ts
generated
vendored
Normal file
344
node_modules/@discordjs/builders/node_modules/discord-api-types/payloads/common.d.ts
generated
vendored
Normal file
@@ -0,0 +1,344 @@
|
|||||||
|
import type { Locale } from '../rest/common';
|
||||||
|
/**
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags}
|
||||||
|
*
|
||||||
|
* These flags are exported as `BigInt`s and NOT numbers. Wrapping them in `Number()`
|
||||||
|
* may cause issues, try to use BigInts as much as possible or modules that can
|
||||||
|
* replicate them in some way
|
||||||
|
*/
|
||||||
|
export declare const PermissionFlagsBits: {
|
||||||
|
/**
|
||||||
|
* Allows creation of instant invites
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
readonly CreateInstantInvite: bigint;
|
||||||
|
/**
|
||||||
|
* Allows kicking members
|
||||||
|
*/
|
||||||
|
readonly KickMembers: bigint;
|
||||||
|
/**
|
||||||
|
* Allows banning members
|
||||||
|
*/
|
||||||
|
readonly BanMembers: bigint;
|
||||||
|
/**
|
||||||
|
* Allows all permissions and bypasses channel permission overwrites
|
||||||
|
*/
|
||||||
|
readonly Administrator: bigint;
|
||||||
|
/**
|
||||||
|
* Allows management and editing of channels
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
readonly ManageChannels: bigint;
|
||||||
|
/**
|
||||||
|
* Allows management and editing of the guild
|
||||||
|
*/
|
||||||
|
readonly ManageGuild: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for the addition of reactions to messages
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
readonly AddReactions: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for viewing of audit logs
|
||||||
|
*/
|
||||||
|
readonly ViewAuditLog: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for using priority speaker in a voice channel
|
||||||
|
*
|
||||||
|
* Applies to channel types: Voice
|
||||||
|
*/
|
||||||
|
readonly PrioritySpeaker: bigint;
|
||||||
|
/**
|
||||||
|
* Allows the user to go live
|
||||||
|
*
|
||||||
|
* Applies to channel types: Voice, Stage
|
||||||
|
*/
|
||||||
|
readonly Stream: bigint;
|
||||||
|
/**
|
||||||
|
* Allows guild members to view a channel, which includes reading messages in text channels and joining voice channels
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
readonly ViewChannel: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for sending messages in a channel and creating threads in a forum
|
||||||
|
* (does not allow sending messages in threads)
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
readonly SendMessages: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for sending of `/tts` messages
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
readonly SendTTSMessages: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for deletion of other users messages
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
readonly ManageMessages: bigint;
|
||||||
|
/**
|
||||||
|
* Links sent by users with this permission will be auto-embedded
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
readonly EmbedLinks: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for uploading images and files
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
readonly AttachFiles: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for reading of message history
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
readonly ReadMessageHistory: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for using the `@everyone` tag to notify all users in a channel,
|
||||||
|
* and the `@here` tag to notify all online users in a channel
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
readonly MentionEveryone: bigint;
|
||||||
|
/**
|
||||||
|
* Allows the usage of custom emojis from other servers
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
readonly UseExternalEmojis: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for viewing guild insights
|
||||||
|
*/
|
||||||
|
readonly ViewGuildInsights: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for joining of a voice channel
|
||||||
|
*
|
||||||
|
* Applies to channel types: Voice, Stage
|
||||||
|
*/
|
||||||
|
readonly Connect: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for speaking in a voice channel
|
||||||
|
*
|
||||||
|
* Applies to channel types: Voice
|
||||||
|
*/
|
||||||
|
readonly Speak: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for muting members in a voice channel
|
||||||
|
*
|
||||||
|
* Applies to channel types: Voice, Stage
|
||||||
|
*/
|
||||||
|
readonly MuteMembers: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for deafening of members in a voice channel
|
||||||
|
*
|
||||||
|
* Applies to channel types: Voice
|
||||||
|
*/
|
||||||
|
readonly DeafenMembers: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for moving of members between voice channels
|
||||||
|
*
|
||||||
|
* Applies to channel types: Voice, Stage
|
||||||
|
*/
|
||||||
|
readonly MoveMembers: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for using voice-activity-detection in a voice channel
|
||||||
|
*
|
||||||
|
* Applies to channel types: Voice
|
||||||
|
*/
|
||||||
|
readonly UseVAD: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for modification of own nickname
|
||||||
|
*/
|
||||||
|
readonly ChangeNickname: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for modification of other users nicknames
|
||||||
|
*/
|
||||||
|
readonly ManageNicknames: bigint;
|
||||||
|
/**
|
||||||
|
* Allows management and editing of roles
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
readonly ManageRoles: bigint;
|
||||||
|
/**
|
||||||
|
* Allows management and editing of webhooks
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
readonly ManageWebhooks: bigint;
|
||||||
|
/**
|
||||||
|
* Allows management and editing of emojis, stickers, and soundboard sounds
|
||||||
|
*
|
||||||
|
* @deprecated This is the old name for {@link PermissionFlagsBits.ManageGuildExpressions}
|
||||||
|
*/
|
||||||
|
readonly ManageEmojisAndStickers: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for editing and deleting emojis, stickers, and soundboard sounds created by all users
|
||||||
|
*/
|
||||||
|
readonly ManageGuildExpressions: bigint;
|
||||||
|
/**
|
||||||
|
* Allows members to use application commands, including slash commands and context menu commands
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
readonly UseApplicationCommands: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for requesting to speak in stage channels
|
||||||
|
*
|
||||||
|
* Applies to channel types: Stage
|
||||||
|
*/
|
||||||
|
readonly RequestToSpeak: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for editing and deleting scheduled events created by all users
|
||||||
|
*
|
||||||
|
* Applies to channel types: Voice, Stage
|
||||||
|
*/
|
||||||
|
readonly ManageEvents: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for deleting and archiving threads, and viewing all private threads
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text
|
||||||
|
*/
|
||||||
|
readonly ManageThreads: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for creating public and announcement threads
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text
|
||||||
|
*/
|
||||||
|
readonly CreatePublicThreads: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for creating private threads
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text
|
||||||
|
*/
|
||||||
|
readonly CreatePrivateThreads: bigint;
|
||||||
|
/**
|
||||||
|
* Allows the usage of custom stickers from other servers
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
readonly UseExternalStickers: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for sending messages in threads
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text
|
||||||
|
*/
|
||||||
|
readonly SendMessagesInThreads: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for using Activities (applications with the {@link ApplicationFlags.Embedded} flag) in a voice channel
|
||||||
|
*
|
||||||
|
* Applies to channel types: Voice
|
||||||
|
*/
|
||||||
|
readonly UseEmbeddedActivities: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for timing out users to prevent them from sending or reacting to messages in chat and threads,
|
||||||
|
* and from speaking in voice and stage channels
|
||||||
|
*/
|
||||||
|
readonly ModerateMembers: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for viewing role subscription insights
|
||||||
|
*/
|
||||||
|
readonly ViewCreatorMonetizationAnalytics: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for using soundboard in a voice channel
|
||||||
|
*
|
||||||
|
* Applies to channel types: Voice
|
||||||
|
*/
|
||||||
|
readonly UseSoundboard: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for creating emojis, stickers, and soundboard sounds, and editing and deleting those created by the current user
|
||||||
|
*/
|
||||||
|
readonly CreateGuildExpressions: bigint;
|
||||||
|
/**
|
||||||
|
* Allows for creating scheduled events, and editing and deleting those created by the current user
|
||||||
|
*
|
||||||
|
* Applies to channel types: Voice, Stage
|
||||||
|
*/
|
||||||
|
readonly CreateEvents: bigint;
|
||||||
|
/**
|
||||||
|
* Allows the usage of custom soundboard sounds from other servers
|
||||||
|
*
|
||||||
|
* Applies to channel types: Voice
|
||||||
|
*/
|
||||||
|
readonly UseExternalSounds: bigint;
|
||||||
|
/**
|
||||||
|
* Allows sending voice messages
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
readonly SendVoiceMessages: bigint;
|
||||||
|
/**
|
||||||
|
* Allows sending polls
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
readonly SendPolls: bigint;
|
||||||
|
/**
|
||||||
|
* Allows user-installed apps to send public responses. When disabled, users will still be allowed to use their apps but the responses will be ephemeral. This only applies to apps not also installed to the server
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
readonly UseExternalApps: bigint;
|
||||||
|
/**
|
||||||
|
* Allows pinning and unpinning messages
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text
|
||||||
|
*/
|
||||||
|
readonly PinMessages: bigint;
|
||||||
|
/**
|
||||||
|
* @unstable Allows for bypassing slowmode restrictions. Not (yet) documented.
|
||||||
|
*
|
||||||
|
* Applies to text-based and thread-based channel types.
|
||||||
|
*/
|
||||||
|
readonly BypassSlowmode: bigint;
|
||||||
|
};
|
||||||
|
export type LocalizationMap = Partial<Record<Locale, string | null>>;
|
||||||
|
/**
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/opcodes-and-status-codes#json}
|
||||||
|
*/
|
||||||
|
export interface RESTError {
|
||||||
|
code: number;
|
||||||
|
message: string;
|
||||||
|
errors?: RESTErrorData;
|
||||||
|
}
|
||||||
|
export interface RESTErrorFieldInformation {
|
||||||
|
code: string;
|
||||||
|
message: string;
|
||||||
|
}
|
||||||
|
export interface RESTErrorGroupWrapper {
|
||||||
|
_errors: RESTErrorData[];
|
||||||
|
}
|
||||||
|
export type RESTErrorData = RESTErrorFieldInformation | RESTErrorGroupWrapper | string | {
|
||||||
|
[k: string]: RESTErrorData;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/rate-limits#exceeding-a-rate-limit-rate-limit-response-structure}
|
||||||
|
*/
|
||||||
|
export interface RESTRateLimit {
|
||||||
|
/**
|
||||||
|
* An error code for some limits
|
||||||
|
*
|
||||||
|
* {@link RESTJSONErrorCodes}
|
||||||
|
*/
|
||||||
|
code?: number;
|
||||||
|
/**
|
||||||
|
* A value indicating if you are being globally rate limited or not
|
||||||
|
*/
|
||||||
|
global: boolean;
|
||||||
|
/**
|
||||||
|
* A message saying you are being rate limited.
|
||||||
|
*/
|
||||||
|
message: string;
|
||||||
|
/**
|
||||||
|
* The number of seconds to wait before submitting another request.
|
||||||
|
*/
|
||||||
|
retry_after: number;
|
||||||
|
}
|
||||||
|
//# sourceMappingURL=common.d.ts.map
|
||||||
1
node_modules/@discordjs/builders/node_modules/discord-api-types/payloads/common.d.ts.map
generated
vendored
Normal file
1
node_modules/@discordjs/builders/node_modules/discord-api-types/payloads/common.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;IAC/B;;;;OAIG;;IAEH;;OAEG;;IAGH;;OAEG;;IAEH;;OAEG;;IAEH;;;;OAIG;;IAEH;;OAEG;;IAEH;;;;OAIG;;IAEH;;OAEG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;;OAKG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;;OAKG;;IAEH;;;;OAIG;;IAEH;;OAEG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;OAEG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;OAGG;;IAEH;;OAEG;;IAEH;;;;OAIG;;IAEH;;OAEG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;CAEM,CAAC;AASX,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,SAAS;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,MAAM,WAAW,yBAAyB;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,qBAAqB;IACrC,OAAO,EAAE,aAAa,EAAE,CAAC;CACzB;AAED,MAAM,MAAM,aAAa,GAAG,yBAAyB,GAAG,qBAAqB,GAAG,MAAM,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,aAAa,CAAA;CAAE,CAAC;AAExH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACpB"}
|
||||||
310
node_modules/@discordjs/builders/node_modules/discord-api-types/payloads/common.js
generated
vendored
Normal file
310
node_modules/@discordjs/builders/node_modules/discord-api-types/payloads/common.js
generated
vendored
Normal file
@@ -0,0 +1,310 @@
|
|||||||
|
"use strict";
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
exports.PermissionFlagsBits = void 0;
|
||||||
|
/**
|
||||||
|
* @see {@link https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags}
|
||||||
|
*
|
||||||
|
* These flags are exported as `BigInt`s and NOT numbers. Wrapping them in `Number()`
|
||||||
|
* may cause issues, try to use BigInts as much as possible or modules that can
|
||||||
|
* replicate them in some way
|
||||||
|
*/
|
||||||
|
exports.PermissionFlagsBits = {
|
||||||
|
/**
|
||||||
|
* Allows creation of instant invites
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
CreateInstantInvite: 1n << 0n,
|
||||||
|
/**
|
||||||
|
* Allows kicking members
|
||||||
|
*/
|
||||||
|
KickMembers: 1n << 1n,
|
||||||
|
/**
|
||||||
|
* Allows banning members
|
||||||
|
*/
|
||||||
|
BanMembers: 1n << 2n,
|
||||||
|
/**
|
||||||
|
* Allows all permissions and bypasses channel permission overwrites
|
||||||
|
*/
|
||||||
|
Administrator: 1n << 3n,
|
||||||
|
/**
|
||||||
|
* Allows management and editing of channels
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
ManageChannels: 1n << 4n,
|
||||||
|
/**
|
||||||
|
* Allows management and editing of the guild
|
||||||
|
*/
|
||||||
|
ManageGuild: 1n << 5n,
|
||||||
|
/**
|
||||||
|
* Allows for the addition of reactions to messages
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
AddReactions: 1n << 6n,
|
||||||
|
/**
|
||||||
|
* Allows for viewing of audit logs
|
||||||
|
*/
|
||||||
|
ViewAuditLog: 1n << 7n,
|
||||||
|
/**
|
||||||
|
* Allows for using priority speaker in a voice channel
|
||||||
|
*
|
||||||
|
* Applies to channel types: Voice
|
||||||
|
*/
|
||||||
|
PrioritySpeaker: 1n << 8n,
|
||||||
|
/**
|
||||||
|
* Allows the user to go live
|
||||||
|
*
|
||||||
|
* Applies to channel types: Voice, Stage
|
||||||
|
*/
|
||||||
|
Stream: 1n << 9n,
|
||||||
|
/**
|
||||||
|
* Allows guild members to view a channel, which includes reading messages in text channels and joining voice channels
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
ViewChannel: 1n << 10n,
|
||||||
|
/**
|
||||||
|
* Allows for sending messages in a channel and creating threads in a forum
|
||||||
|
* (does not allow sending messages in threads)
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
SendMessages: 1n << 11n,
|
||||||
|
/**
|
||||||
|
* Allows for sending of `/tts` messages
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
SendTTSMessages: 1n << 12n,
|
||||||
|
/**
|
||||||
|
* Allows for deletion of other users messages
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
ManageMessages: 1n << 13n,
|
||||||
|
/**
|
||||||
|
* Links sent by users with this permission will be auto-embedded
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
EmbedLinks: 1n << 14n,
|
||||||
|
/**
|
||||||
|
* Allows for uploading images and files
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
AttachFiles: 1n << 15n,
|
||||||
|
/**
|
||||||
|
* Allows for reading of message history
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
ReadMessageHistory: 1n << 16n,
|
||||||
|
/**
|
||||||
|
* Allows for using the `@everyone` tag to notify all users in a channel,
|
||||||
|
* and the `@here` tag to notify all online users in a channel
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
MentionEveryone: 1n << 17n,
|
||||||
|
/**
|
||||||
|
* Allows the usage of custom emojis from other servers
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
UseExternalEmojis: 1n << 18n,
|
||||||
|
/**
|
||||||
|
* Allows for viewing guild insights
|
||||||
|
*/
|
||||||
|
ViewGuildInsights: 1n << 19n,
|
||||||
|
/**
|
||||||
|
* Allows for joining of a voice channel
|
||||||
|
*
|
||||||
|
* Applies to channel types: Voice, Stage
|
||||||
|
*/
|
||||||
|
Connect: 1n << 20n,
|
||||||
|
/**
|
||||||
|
* Allows for speaking in a voice channel
|
||||||
|
*
|
||||||
|
* Applies to channel types: Voice
|
||||||
|
*/
|
||||||
|
Speak: 1n << 21n,
|
||||||
|
/**
|
||||||
|
* Allows for muting members in a voice channel
|
||||||
|
*
|
||||||
|
* Applies to channel types: Voice, Stage
|
||||||
|
*/
|
||||||
|
MuteMembers: 1n << 22n,
|
||||||
|
/**
|
||||||
|
* Allows for deafening of members in a voice channel
|
||||||
|
*
|
||||||
|
* Applies to channel types: Voice
|
||||||
|
*/
|
||||||
|
DeafenMembers: 1n << 23n,
|
||||||
|
/**
|
||||||
|
* Allows for moving of members between voice channels
|
||||||
|
*
|
||||||
|
* Applies to channel types: Voice, Stage
|
||||||
|
*/
|
||||||
|
MoveMembers: 1n << 24n,
|
||||||
|
/**
|
||||||
|
* Allows for using voice-activity-detection in a voice channel
|
||||||
|
*
|
||||||
|
* Applies to channel types: Voice
|
||||||
|
*/
|
||||||
|
UseVAD: 1n << 25n,
|
||||||
|
/**
|
||||||
|
* Allows for modification of own nickname
|
||||||
|
*/
|
||||||
|
ChangeNickname: 1n << 26n,
|
||||||
|
/**
|
||||||
|
* Allows for modification of other users nicknames
|
||||||
|
*/
|
||||||
|
ManageNicknames: 1n << 27n,
|
||||||
|
/**
|
||||||
|
* Allows management and editing of roles
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
ManageRoles: 1n << 28n,
|
||||||
|
/**
|
||||||
|
* Allows management and editing of webhooks
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
ManageWebhooks: 1n << 29n,
|
||||||
|
/**
|
||||||
|
* Allows management and editing of emojis, stickers, and soundboard sounds
|
||||||
|
*
|
||||||
|
* @deprecated This is the old name for {@link PermissionFlagsBits.ManageGuildExpressions}
|
||||||
|
*/
|
||||||
|
ManageEmojisAndStickers: 1n << 30n,
|
||||||
|
/**
|
||||||
|
* Allows for editing and deleting emojis, stickers, and soundboard sounds created by all users
|
||||||
|
*/
|
||||||
|
ManageGuildExpressions: 1n << 30n,
|
||||||
|
/**
|
||||||
|
* Allows members to use application commands, including slash commands and context menu commands
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
UseApplicationCommands: 1n << 31n,
|
||||||
|
/**
|
||||||
|
* Allows for requesting to speak in stage channels
|
||||||
|
*
|
||||||
|
* Applies to channel types: Stage
|
||||||
|
*/
|
||||||
|
RequestToSpeak: 1n << 32n,
|
||||||
|
/**
|
||||||
|
* Allows for editing and deleting scheduled events created by all users
|
||||||
|
*
|
||||||
|
* Applies to channel types: Voice, Stage
|
||||||
|
*/
|
||||||
|
ManageEvents: 1n << 33n,
|
||||||
|
/**
|
||||||
|
* Allows for deleting and archiving threads, and viewing all private threads
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text
|
||||||
|
*/
|
||||||
|
ManageThreads: 1n << 34n,
|
||||||
|
/**
|
||||||
|
* Allows for creating public and announcement threads
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text
|
||||||
|
*/
|
||||||
|
CreatePublicThreads: 1n << 35n,
|
||||||
|
/**
|
||||||
|
* Allows for creating private threads
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text
|
||||||
|
*/
|
||||||
|
CreatePrivateThreads: 1n << 36n,
|
||||||
|
/**
|
||||||
|
* Allows the usage of custom stickers from other servers
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
UseExternalStickers: 1n << 37n,
|
||||||
|
/**
|
||||||
|
* Allows for sending messages in threads
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text
|
||||||
|
*/
|
||||||
|
SendMessagesInThreads: 1n << 38n,
|
||||||
|
/**
|
||||||
|
* Allows for using Activities (applications with the {@link ApplicationFlags.Embedded} flag) in a voice channel
|
||||||
|
*
|
||||||
|
* Applies to channel types: Voice
|
||||||
|
*/
|
||||||
|
UseEmbeddedActivities: 1n << 39n,
|
||||||
|
/**
|
||||||
|
* Allows for timing out users to prevent them from sending or reacting to messages in chat and threads,
|
||||||
|
* and from speaking in voice and stage channels
|
||||||
|
*/
|
||||||
|
ModerateMembers: 1n << 40n,
|
||||||
|
/**
|
||||||
|
* Allows for viewing role subscription insights
|
||||||
|
*/
|
||||||
|
ViewCreatorMonetizationAnalytics: 1n << 41n,
|
||||||
|
/**
|
||||||
|
* Allows for using soundboard in a voice channel
|
||||||
|
*
|
||||||
|
* Applies to channel types: Voice
|
||||||
|
*/
|
||||||
|
UseSoundboard: 1n << 42n,
|
||||||
|
/**
|
||||||
|
* Allows for creating emojis, stickers, and soundboard sounds, and editing and deleting those created by the current user
|
||||||
|
*/
|
||||||
|
CreateGuildExpressions: 1n << 43n,
|
||||||
|
/**
|
||||||
|
* Allows for creating scheduled events, and editing and deleting those created by the current user
|
||||||
|
*
|
||||||
|
* Applies to channel types: Voice, Stage
|
||||||
|
*/
|
||||||
|
CreateEvents: 1n << 44n,
|
||||||
|
/**
|
||||||
|
* Allows the usage of custom soundboard sounds from other servers
|
||||||
|
*
|
||||||
|
* Applies to channel types: Voice
|
||||||
|
*/
|
||||||
|
UseExternalSounds: 1n << 45n,
|
||||||
|
/**
|
||||||
|
* Allows sending voice messages
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
SendVoiceMessages: 1n << 46n,
|
||||||
|
/**
|
||||||
|
* Allows sending polls
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
SendPolls: 1n << 49n,
|
||||||
|
/**
|
||||||
|
* Allows user-installed apps to send public responses. When disabled, users will still be allowed to use their apps but the responses will be ephemeral. This only applies to apps not also installed to the server
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text, Voice, Stage
|
||||||
|
*/
|
||||||
|
UseExternalApps: 1n << 50n,
|
||||||
|
/**
|
||||||
|
* Allows pinning and unpinning messages
|
||||||
|
*
|
||||||
|
* Applies to channel types: Text
|
||||||
|
*/
|
||||||
|
PinMessages: 1n << 51n,
|
||||||
|
/**
|
||||||
|
* @unstable Allows for bypassing slowmode restrictions. Not (yet) documented.
|
||||||
|
*
|
||||||
|
* Applies to text-based and thread-based channel types.
|
||||||
|
*/
|
||||||
|
BypassSlowmode: 1n << 52n,
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* Freeze the object of bits, preventing any modifications to it
|
||||||
|
*
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
|
Object.freeze(exports.PermissionFlagsBits);
|
||||||
|
//# sourceMappingURL=common.js.map
|
||||||
1
node_modules/@discordjs/builders/node_modules/discord-api-types/payloads/common.js.map
generated
vendored
Normal file
1
node_modules/@discordjs/builders/node_modules/discord-api-types/payloads/common.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"common.js","sourceRoot":"","sources":["common.ts"],"names":[],"mappings":";;;AAEA;;;;;;GAMG;AACU,QAAA,mBAAmB,GAAG;IAClC;;;;OAIG;IACH,mBAAmB,EAAE,EAAE,IAAI,EAAE;IAC7B;;OAEG;IAEH,WAAW,EAAE,EAAE,IAAI,EAAE;IACrB;;OAEG;IACH,UAAU,EAAE,EAAE,IAAI,EAAE;IACpB;;OAEG;IACH,aAAa,EAAE,EAAE,IAAI,EAAE;IACvB;;;;OAIG;IACH,cAAc,EAAE,EAAE,IAAI,EAAE;IACxB;;OAEG;IACH,WAAW,EAAE,EAAE,IAAI,EAAE;IACrB;;;;OAIG;IACH,YAAY,EAAE,EAAE,IAAI,EAAE;IACtB;;OAEG;IACH,YAAY,EAAE,EAAE,IAAI,EAAE;IACtB;;;;OAIG;IACH,eAAe,EAAE,EAAE,IAAI,EAAE;IACzB;;;;OAIG;IACH,MAAM,EAAE,EAAE,IAAI,EAAE;IAChB;;;;OAIG;IACH,WAAW,EAAE,EAAE,IAAI,GAAG;IACtB;;;;;OAKG;IACH,YAAY,EAAE,EAAE,IAAI,GAAG;IACvB;;;;OAIG;IACH,eAAe,EAAE,EAAE,IAAI,GAAG;IAC1B;;;;OAIG;IACH,cAAc,EAAE,EAAE,IAAI,GAAG;IACzB;;;;OAIG;IACH,UAAU,EAAE,EAAE,IAAI,GAAG;IACrB;;;;OAIG;IACH,WAAW,EAAE,EAAE,IAAI,GAAG;IACtB;;;;OAIG;IACH,kBAAkB,EAAE,EAAE,IAAI,GAAG;IAC7B;;;;;OAKG;IACH,eAAe,EAAE,EAAE,IAAI,GAAG;IAC1B;;;;OAIG;IACH,iBAAiB,EAAE,EAAE,IAAI,GAAG;IAC5B;;OAEG;IACH,iBAAiB,EAAE,EAAE,IAAI,GAAG;IAC5B;;;;OAIG;IACH,OAAO,EAAE,EAAE,IAAI,GAAG;IAClB;;;;OAIG;IACH,KAAK,EAAE,EAAE,IAAI,GAAG;IAChB;;;;OAIG;IACH,WAAW,EAAE,EAAE,IAAI,GAAG;IACtB;;;;OAIG;IACH,aAAa,EAAE,EAAE,IAAI,GAAG;IACxB;;;;OAIG;IACH,WAAW,EAAE,EAAE,IAAI,GAAG;IACtB;;;;OAIG;IACH,MAAM,EAAE,EAAE,IAAI,GAAG;IACjB;;OAEG;IACH,cAAc,EAAE,EAAE,IAAI,GAAG;IACzB;;OAEG;IACH,eAAe,EAAE,EAAE,IAAI,GAAG;IAC1B;;;;OAIG;IACH,WAAW,EAAE,EAAE,IAAI,GAAG;IACtB;;;;OAIG;IACH,cAAc,EAAE,EAAE,IAAI,GAAG;IACzB;;;;OAIG;IACH,uBAAuB,EAAE,EAAE,IAAI,GAAG;IAClC;;OAEG;IACH,sBAAsB,EAAE,EAAE,IAAI,GAAG;IACjC;;;;OAIG;IACH,sBAAsB,EAAE,EAAE,IAAI,GAAG;IACjC;;;;OAIG;IACH,cAAc,EAAE,EAAE,IAAI,GAAG;IACzB;;;;OAIG;IACH,YAAY,EAAE,EAAE,IAAI,GAAG;IACvB;;;;OAIG;IACH,aAAa,EAAE,EAAE,IAAI,GAAG;IACxB;;;;OAIG;IACH,mBAAmB,EAAE,EAAE,IAAI,GAAG;IAC9B;;;;OAIG;IACH,oBAAoB,EAAE,EAAE,IAAI,GAAG;IAC/B;;;;OAIG;IACH,mBAAmB,EAAE,EAAE,IAAI,GAAG;IAC9B;;;;OAIG;IACH,qBAAqB,EAAE,EAAE,IAAI,GAAG;IAChC;;;;OAIG;IACH,qBAAqB,EAAE,EAAE,IAAI,GAAG;IAChC;;;OAGG;IACH,eAAe,EAAE,EAAE,IAAI,GAAG;IAC1B;;OAEG;IACH,gCAAgC,EAAE,EAAE,IAAI,GAAG;IAC3C;;;;OAIG;IACH,aAAa,EAAE,EAAE,IAAI,GAAG;IACxB;;OAEG;IACH,sBAAsB,EAAE,EAAE,IAAI,GAAG;IACjC;;;;OAIG;IACH,YAAY,EAAE,EAAE,IAAI,GAAG;IACvB;;;;OAIG;IACH,iBAAiB,EAAE,EAAE,IAAI,GAAG;IAC5B;;;;OAIG;IACH,iBAAiB,EAAE,EAAE,IAAI,GAAG;IAC5B;;;;OAIG;IACH,SAAS,EAAE,EAAE,IAAI,GAAG;IACpB;;;;OAIG;IACH,eAAe,EAAE,EAAE,IAAI,GAAG;IAC1B;;;;OAIG;IACH,WAAW,EAAE,EAAE,IAAI,GAAG;IACtB;;;;OAIG;IACH,cAAc,EAAE,EAAE,IAAI,GAAG;CAChB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,CAAC,2BAAmB,CAAC,CAAC"}
|
||||||
2
node_modules/@discordjs/builders/node_modules/discord-api-types/payloads/index.d.ts
generated
vendored
Normal file
2
node_modules/@discordjs/builders/node_modules/discord-api-types/payloads/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
export * from './v10/index';
|
||||||
|
//# sourceMappingURL=index.d.ts.map
|
||||||
1
node_modules/@discordjs/builders/node_modules/discord-api-types/payloads/index.d.ts.map
generated
vendored
Normal file
1
node_modules/@discordjs/builders/node_modules/discord-api-types/payloads/index.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,cAAc,aAAa,CAAC"}
|
||||||
20
node_modules/@discordjs/builders/node_modules/discord-api-types/payloads/index.js
generated
vendored
Normal file
20
node_modules/@discordjs/builders/node_modules/discord-api-types/payloads/index.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
"use strict";
|
||||||
|
// This file exports all the payloads available in the recommended API version
|
||||||
|
// Thereby, things MAY break in the future. Try sticking to imports from a specific version
|
||||||
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||||
|
if (k2 === undefined) k2 = k;
|
||||||
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||||
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||||
|
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||||
|
}
|
||||||
|
Object.defineProperty(o, k2, desc);
|
||||||
|
}) : (function(o, m, k, k2) {
|
||||||
|
if (k2 === undefined) k2 = k;
|
||||||
|
o[k2] = m[k];
|
||||||
|
}));
|
||||||
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
||||||
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
||||||
|
};
|
||||||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
|
__exportStar(require("./v10/index"), exports);
|
||||||
|
//# sourceMappingURL=index.js.map
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user