유병우

Create discordbot with slash commands

Showing 1000 changed files with 2097 additions and 0 deletions

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

1 +{
2 + "clientId": "951774447977771068",
3 + "token": "OTUxNzc0NDQ3OTc3NzcxMDY4.YisXBw.GRzmw_os4hM2yHsEqTl5CyQN30A",
4 + "guildIds": ["951774261612265522", "915096999152484393", "917734102466195507"]
5 +}
...\ No newline at end of file ...\ No newline at end of file
1 +const fs = require("fs");
2 +const { SlashCommandBuilder } = require("@discordjs/builders");
3 +const { REST } = require("@discordjs/rest");
4 +const { Routes } = require("discord-api-types/v9");
5 +const { clientId, guildIds, token } = require("./config.json");
6 +
7 +const commandFiles = fs
8 + .readdirSync("./commands")
9 + .filter((file) => file.endsWith(".js"));
10 +
11 +const commands = [];
12 +
13 +for (const file of commandFiles) {
14 + const command = require(`./commands/${file}`);
15 + commands.push(command.data.toJSON());
16 +}
17 +
18 +const rest = new REST({ version: "9" }).setToken(token);
19 +
20 +(async () => {
21 + guildIds.map(async (guildId) => {
22 + try {
23 + await rest.put(Routes.applicationGuildCommands(clientId, guildId), {body: commands});
24 + console.log(`${guildId} 서버 성공`);
25 + }
26 + catch (error) {
27 + console.error(error);
28 + }
29 + });
30 +})();
...\ No newline at end of file ...\ No newline at end of file
1 +const { Client, Collection, Intents } = require("discord.js");
2 +const { token } = require("./config.json");
3 +const fs = require("fs");
4 +
5 +const client = new Client({ intents: [Intents.FLAGS.GUILDS] });
6 +
7 +client.commands = new Collection();
8 +const commandFiles = fs
9 + .readdirSync("./commands")
10 + .filter((file) => file.endsWith(".js"));
11 +
12 +for (const file of commandFiles) {
13 + const command = require(`./commands/${file}`);
14 + client.commands.set(command.data.name, command);
15 +}
16 +
17 +client.once("ready", () => {
18 + console.log("서버 준비 완료!");
19 +});
20 +
21 +client.on("interactionCreate", async (interaction) => {
22 + if (!interaction.isCommand()) return;
23 + const command = client.commands.get(interaction.commandName);
24 +
25 + if (!command) return;
26 +
27 + try {
28 + await command.execute(interaction);
29 + } catch (error) {
30 + console.error(error);
31 + await interaction.reply({
32 + content: "There was an error while executing this command!",
33 + ephemeral: true,
34 + });
35 + }
36 +});
37 +
38 +client.login(token);
...\ No newline at end of file ...\ No newline at end of file
1 +#!/bin/sh
2 +basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3 +
4 +case `uname` in
5 + *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
6 +esac
7 +
8 +if [ -x "$basedir/node" ]; then
9 + exec "$basedir/node" "$basedir/../is-docker/cli.js" "$@"
10 +else
11 + exec node "$basedir/../is-docker/cli.js" "$@"
12 +fi
1 +@ECHO off
2 +GOTO start
3 +:find_dp0
4 +SET dp0=%~dp0
5 +EXIT /b
6 +:start
7 +SETLOCAL
8 +CALL :find_dp0
9 +
10 +IF EXIST "%dp0%\node.exe" (
11 + SET "_prog=%dp0%\node.exe"
12 +) ELSE (
13 + SET "_prog=node"
14 + SET PATHEXT=%PATHEXT:;.JS;=;%
15 +)
16 +
17 +endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\is-docker\cli.js" %*
1 +#!/usr/bin/env pwsh
2 +$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
3 +
4 +$exe=""
5 +if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
6 + # Fix case when both the Windows and Linux builds of Node
7 + # are installed in the same directory
8 + $exe=".exe"
9 +}
10 +$ret=0
11 +if (Test-Path "$basedir/node$exe") {
12 + # Support pipeline input
13 + if ($MyInvocation.ExpectingInput) {
14 + $input | & "$basedir/node$exe" "$basedir/../is-docker/cli.js" $args
15 + } else {
16 + & "$basedir/node$exe" "$basedir/../is-docker/cli.js" $args
17 + }
18 + $ret=$LASTEXITCODE
19 +} else {
20 + # Support pipeline input
21 + if ($MyInvocation.ExpectingInput) {
22 + $input | & "node$exe" "$basedir/../is-docker/cli.js" $args
23 + } else {
24 + & "node$exe" "$basedir/../is-docker/cli.js" $args
25 + }
26 + $ret=$LASTEXITCODE
27 +}
28 +exit $ret
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
1 +<div align="center">
2 + <br />
3 + <p>
4 + <a href="https://discord.js.org"><img src="https://discord.js.org/static/logo.svg" width="546" alt="discord.js" /></a>
5 + </p>
6 + <br />
7 + <p>
8 + <a href="https://discord.gg/djs"><img src="https://img.shields.io/discord/222078108977594368?color=5865F2&logo=discord&logoColor=white" alt="Discord server" /></a>
9 + <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>
10 + <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>
11 + <a href="https://github.com/discordjs/builders/actions"><img src="https://github.com/discordjs/builders/workflows/Tests/badge.svg" alt="Build status" /></a>
12 + <a href="https://codecov.io/gh/discordjs/builders"><img src="https://codecov.io/gh/discordjs/builders/branch/main/graph/badge.svg" alt="Code coverage" /></a>
13 + </p>
14 +</div>
15 +
16 +## Installation
17 +
18 +**Node.js 16.6.0 or newer is required.**
19 +
20 +```sh-session
21 +npm install @discordjs/builders
22 +yarn add @discordjs/builders
23 +pnpm add @discordjs/builders
24 +```
25 +
26 +## Examples
27 +
28 +Here are some examples for the builders and utilities you can find in this package:
29 +
30 +- [Slash Command Builders](./docs/examples/Slash%20Command%20Builders.md)
31 +
32 +## Links
33 +
34 +- [Website](https://discord.js.org/) ([source](https://github.com/discordjs/website))
35 +- [Documentation](https://discord.js.org/#/docs/builders)
36 +- [Guide](https://discordjs.guide/) ([source](https://github.com/discordjs/guide))
37 + See also the [Update Guide](https://discordjs.guide/additional-info/changes-in-v13.html), including updated and removed items in the library.
38 +- [discord.js Discord server](https://discord.gg/djs)
39 +- [Discord API Discord server](https://discord.gg/discord-api)
40 +- [GitHub](https://github.com/discordjs/builders)
41 +- [npm](https://www.npmjs.com/package/@discordjs/builders)
42 +- [Related libraries](https://discord.com/developers/docs/topics/community-resources#libraries)
43 +
44 +## Contributing
45 +
46 +Before creating an issue, please ensure that it hasn't already been reported/suggested, and double-check the
47 +[documentation](https://discord.js.org/#/docs/builders).
48 +See [the contribution guide](https://github.com/discordjs/builders/blob/main/.github/CONTRIBUTING.md) if you'd like to submit a PR.
49 +
50 +## Help
51 +
52 +If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle
53 +nudge in the right direction, please don't hesitate to join our official [discord.js Server](https://discord.gg/djs).
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
1 +MIT License
2 +
3 +Copyright (c) 2020 vladfrangu
4 +
5 +Permission is hereby granted, free of charge, to any person obtaining a copy
6 +of this software and associated documentation files (the "Software"), to deal
7 +in the Software without restriction, including without limitation the rights
8 +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 +copies of the Software, and to permit persons to whom the Software is
10 +furnished to do so, subject to the following conditions:
11 +
12 +The above copyright notice and this permission notice shall be included in all
13 +copies or substantial portions of the Software.
14 +
15 +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 +SOFTWARE.
1 +# Discord API Types
2 +
3 +[![GitHub](https://img.shields.io/github/license/discordjs/discord-api-types)](https://github.com/discordjs/discord-api-types/blob/main/LICENSE.md)
4 +[![npm](https://img.shields.io/npm/v/discord-api-types?color=crimson&logo=npm)](https://www.npmjs.com/package/discord-api-types)
5 +[![deno](https://img.shields.io/npm/v/discord-api-types?color=blue&label=deno&logo=deno)](https://deno.land/x/discord_api_types)
6 +[![Patreon Donate](https://img.shields.io/badge/patreon-donate-brightgreen.svg?label=Donate%20with%20Patreon&logo=patreon&colorB=F96854&link=https://www.patreon.com/vladfrangu)](https://www.patreon.com/vladfrangu)
7 +[![Ko-fi Donate](https://img.shields.io/badge/kofi-donate-brightgreen.svg?label=Donate%20with%20Ko-fi&logo=ko-fi&colorB=F16061&link=https://ko-fi.com/wolfgalvlad&logoColor=FFFFFF)](https://ko-fi.com/wolfgalvlad)
8 +[![GitHub Sponsors](https://img.shields.io/badge/patreon-donate-brightgreen.svg?label=Sponsor%20through%20GitHub&logo=github&colorB=F96854&link=https://github.com/sponsors/vladfrangu)](https://github.com/sponsors/vladfrangu)
9 +
10 +Simple type definitions for the [Discord API](https://discord.com/developers/docs/intro).
11 +
12 +## Installation
13 +
14 +Install with [npm](https://www.npmjs.com/) / [yarn](https://yarnpkg.com) / [pnpm](https://pnpm.js.org/):
15 +
16 +```sh
17 +npm install discord-api-types
18 +yarn add discord-api-types
19 +pnpm add discord-api-types
20 +```
21 +
22 +### Usage
23 +
24 +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
25 +
26 +```js
27 +const { APIUser } = require('discord-api-types/v9');
28 +```
29 +
30 +```ts
31 +// TypeScript/ES Module support
32 +import { APIUser } from 'discord-api-types/v9';
33 +```
34 +
35 +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
36 +
37 +```js
38 +const { GatewayVersion } = require('discord-api-types/gateway/v9');
39 +```
40 +
41 +```ts
42 +// TypeScript/ES Module support
43 +import { GatewayVersion } from 'discord-api-types/gateway/v9';
44 +```
45 +
46 +> _**Note:** The `v*` exports (`discord-api-type/v*`) include the appropriate version of `gateway`, `payloads`, `rest`, `rpc`, and `utils` you specified, alongside the `globals` exports_
47 +
48 +### Deno
49 +
50 +We also provide typings compatible with the [deno](https://deno.land/) runtime. You have 3 ways you can import them:
51 +
52 +1. Directly from GitHub
53 +
54 +```ts
55 +// Importing a specific API version
56 +import { APIUser } from 'https://raw.githubusercontent.com/discordjs/discord-api-types/main/deno/v9.ts';
57 +```
58 +
59 +2. From [deno.land/x](https://deno.land/x)
60 +
61 +```ts
62 +// Importing a specific API version
63 +import { APIUser } from 'https://deno.land/x/discord_api_types/v9.ts';
64 +```
65 +
66 +3. From [skypack.dev](https://www.skypack.dev/)
67 +
68 +```ts
69 +// Importing a specific API version
70 +import { APIUser } from 'https://cdn.skypack.dev/discord-api-types/v9?dts';
71 +```
72 +
73 +## Project Structure
74 +
75 +The exports of each API version is split into three main parts:
76 +
77 +- Everything exported with the `API` prefix represents a payload you may get from the REST API _or_ the Gateway.
78 +
79 +- Everything exported with the `Gateway` prefix represents data that ONLY comes from or is directly related to the Gateway.
80 +
81 +- Everything exported with the `REST` prefix represents data that ONLY comes from or is directly related to the REST API.
82 +
83 + - 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.
84 +
85 + - For example, `RESTPostAPIChannelMessageJSONBody` or `RESTGetAPIGatewayBotInfoResult`.
86 +
87 + - 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`
88 +
89 + - If a type ends with `Result`, then it represents the expected result by calling its accompanying route.
90 +
91 + - 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.
92 +
93 +- Anything else that is miscellaneous will be exported based on what it represents (for example the `REST` route object).
94 +
95 +- 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.
96 +
97 +**Warning**: This package documents just KNOWN (and documented) properties. Anything that isn't documented will NOT be added to this package (unless said properties are in an open Pull Request to Discord's [API Documentation repository](https://github.com/discord/discord-api-docs) or known through other means _and have received the green light to be used_). For clarification's sake, this means that properties that are only known through the process of data mining and have not yet been confirmed in a way as described will **NOT** be included.
1 +/**
2 + * https://discord.com/developers/docs/topics/gateway#connecting-gateway-url-params
3 + */
4 +export interface GatewayURLQuery {
5 + v: string;
6 + encoding: 'json' | 'etf';
7 + compress?: 'zlib-stream';
8 +}
9 +//# sourceMappingURL=common.d.ts.map
...\ No newline at end of file ...\ No newline at end of file
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,MAAM,GAAG,KAAK,CAAC;IACzB,QAAQ,CAAC,EAAE,aAAa,CAAC;CACzB"}
...\ No newline at end of file ...\ No newline at end of file
1 +"use strict";
2 +Object.defineProperty(exports, "__esModule", { value: true });
3 +//# sourceMappingURL=common.js.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"common.js","sourceRoot":"","sources":["common.ts"],"names":[],"mappings":""}
...\ No newline at end of file ...\ No newline at end of file
1 +export * from './v9';
2 +//# sourceMappingURL=index.d.ts.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,cAAc,MAAM,CAAC"}
...\ No newline at end of file ...\ No newline at end of file
1 +"use strict";
2 +// This file exports all the types available in the recommended gateway version
3 +// Thereby, things MAY break in the future. Try sticking to imports from a specific version
4 +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5 + if (k2 === undefined) k2 = k;
6 + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
7 +}) : (function(o, m, k, k2) {
8 + if (k2 === undefined) k2 = k;
9 + o[k2] = m[k];
10 +}));
11 +var __exportStar = (this && this.__exportStar) || function(m, exports) {
12 + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
13 +};
14 +Object.defineProperty(exports, "__esModule", { value: true });
15 +__exportStar(require("./v9"), exports);
16 +//# sourceMappingURL=index.js.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA,+EAA+E;AAC/E,2FAA2F;;;;;;;;;;;;AAE3F,uCAAqB"}
...\ No newline at end of file ...\ No newline at end of file
1 +import mod from "./index.js";
2 +
3 +export default mod;
4 +export const GatewayCloseCodes = mod.GatewayCloseCodes;
5 +export const GatewayDispatchEvents = mod.GatewayDispatchEvents;
6 +export const GatewayIntentBits = mod.GatewayIntentBits;
7 +export const GatewayOpcodes = mod.GatewayOpcodes;
8 +export const GatewayVersion = mod.GatewayVersion;
1 +{"version":3,"file":"v6.js","sourceRoot":"","sources":["v6.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;AAkBH,2CAAyB;AAEzB;;GAEG;AACU,QAAA,cAAc,GAAG,GAAG,CAAC;AAElC;;;GAGG;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,GAAd,sBAAc,KAAd,sBAAc,QAazB;AAED;;;GAGG;AACH,IAAY,iBAgBX;AAhBD,WAAY,iBAAiB;IAC5B,4EAAmB,CAAA;IACnB,8EAAa,CAAA;IACb,0EAAW,CAAA;IACX,oFAAgB,CAAA;IAChB,4FAAoB,CAAA;IACpB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AA;IAClC,+FAA+B,CAAA;AAChC,CAAC,EAhBW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAgB5B;AAED;;;GAGG;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,GAArB,6BAAqB,KAArB,6BAAqB,QAqChC;AAwoBD,oBAAoB"}
...\ No newline at end of file ...\ No newline at end of file
1 +import mod from "./v6.js";
2 +
3 +export default mod;
4 +export const GatewayCloseCodes = mod.GatewayCloseCodes;
5 +export const GatewayDispatchEvents = mod.GatewayDispatchEvents;
6 +export const GatewayIntentBits = mod.GatewayIntentBits;
7 +export const GatewayOPCodes = mod.GatewayOPCodes;
8 +export const GatewayVersion = mod.GatewayVersion;
9 +export const VoiceCloseCodes = mod.VoiceCloseCodes;
10 +export const VoiceOPCodes = mod.VoiceOPCodes;
1 +{"version":3,"file":"v8.js","sourceRoot":"","sources":["v8.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;AA2BH,2CAAyB;AAEZ,QAAA,cAAc,GAAG,GAAG,CAAC;AAElC;;GAEG;AACH,IAAkB,cA8CjB;AA9CD,WAAkB,cAAc;IAC/B;;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,EA9CiB,cAAc,GAAd,sBAAc,KAAd,sBAAc,QA8C/B;AAED;;GAEG;AACH,IAAkB,iBA8EjB;AA9ED,WAAkB,iBAAiB;IAClC;;OAEG;IACH,4EAAmB,CAAA;IACnB;;;;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,wEAAiB,CAAA;IACjB;;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,EA9EiB,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QA8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EAA6C,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,EAlDiB,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAkDtC;AA82CD,oBAAoB"}
...\ No newline at end of file ...\ No newline at end of file
1 +import mod from "./v8.js";
2 +
3 +export default mod;
4 +export const GatewayCloseCodes = mod.GatewayCloseCodes;
5 +export const GatewayDispatchEvents = mod.GatewayDispatchEvents;
6 +export const GatewayIntentBits = mod.GatewayIntentBits;
7 +export const GatewayOpcodes = mod.GatewayOpcodes;
8 +export const GatewayVersion = mod.GatewayVersion;
1 +{"version":3,"file":"v9.js","sourceRoot":"","sources":["v9.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;AA8BH,2CAAyB;AAEZ,QAAA,cAAc,GAAG,GAAG,CAAC;AAElC;;GAEG;AACH,IAAkB,cA8CjB;AA9CD,WAAkB,cAAc;IAC/B;;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,EA9CiB,cAAc,GAAd,sBAAc,KAAd,sBAAc,QA8C/B;AAED;;G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A4B,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,uDAA8B,CAAA;IAC9B,uDAA8B,CAAA;IAC9B,4DAAmC,CAAA;IACnC,sEAA6C,CAAA;IAC7C,oEAA2C,CAAA;IAC3C,uDAA8B,CAAA;IAC9B,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,EAxDiB,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAwDtC;AAi8CD,oBAAoB"}
...\ No newline at end of file ...\ No newline at end of file
1 +import mod from "./v9.js";
2 +
3 +export default mod;
4 +export const GatewayCloseCodes = mod.GatewayCloseCodes;
5 +export const GatewayDispatchEvents = mod.GatewayDispatchEvents;
6 +export const GatewayIntentBits = mod.GatewayIntentBits;
7 +export const GatewayOpcodes = mod.GatewayOpcodes;
8 +export const GatewayVersion = mod.GatewayVersion;
1 +/**
2 + * https://discord.com/developers/docs/reference#snowflakes
3 + */
4 +export declare type Snowflake = string;
5 +/**
6 + * https://discord.com/developers/docs/topics/permissions
7 + * @internal
8 + */
9 +export declare type Permissions = string;
10 +/**
11 + * https://discord.com/developers/docs/reference#message-formatting-formats
12 + */
13 +export declare const FormattingPatterns: {
14 + /**
15 + * Regular expression for matching a user mention, strictly without a nickname
16 + *
17 + * The `id` group property is present on the `exec` result of this expression
18 + */
19 + readonly User: RegExp;
20 + /**
21 + * Regular expression for matching a user mention, strictly with a nickname
22 + *
23 + * The `id` group property is present on the `exec` result of this expression
24 + */
25 + readonly UserWithNickname: RegExp;
26 + /**
27 + * Regular expression for matching a user mention, with or without a nickname
28 + *
29 + * The `id` group property is present on the `exec` result of this expression
30 + */
31 + readonly UserWithOptionalNickname: RegExp;
32 + /**
33 + * Regular expression for matching a channel mention
34 + *
35 + * The `id` group property is present on the `exec` result of this expression
36 + */
37 + readonly Channel: RegExp;
38 + /**
39 + * Regular expression for matching a role mention
40 + *
41 + * The `id` group property is present on the `exec` result of this expression
42 + */
43 + readonly Role: RegExp;
44 + /**
45 + * Regular expression for matching a custom emoji, either static or animated
46 + *
47 + * The `animated`, `name` and `id` group properties are present on the `exec` result of this expression
48 + */
49 + readonly Emoji: RegExp;
50 + /**
51 + * Regular expression for matching strictly an animated custom emoji
52 + *
53 + * The `animated`, `name` and `id` group properties are present on the `exec` result of this expression
54 + */
55 + readonly AnimatedEmoji: RegExp;
56 + /**
57 + * Regular expression for matching strictly a static custom emoji
58 + *
59 + * The `name` and `id` group properties are present on the `exec` result of this expression
60 + */
61 + readonly StaticEmoji: RegExp;
62 + /**
63 + * Regular expression for matching a timestamp, either default or custom styled
64 + *
65 + * The `timestamp` and `style` group properties are present on the `exec` result of this expression
66 + */
67 + readonly Timestamp: RegExp;
68 + /**
69 + * Regular expression for matching strictly default styled timestamps
70 + *
71 + * The `timestamp` group property is present on the `exec` result of this expression
72 + */
73 + readonly DefaultStyledTimestamp: RegExp;
74 + /**
75 + * Regular expression for matching strictly custom styled timestamps
76 + *
77 + * The `timestamp` and `style` group properties are present on the `exec` result of this expression
78 + */
79 + readonly StyledTimestamp: RegExp;
80 +};
81 +//# sourceMappingURL=globals.d.ts.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["globals.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,SAAS,GAAG,MAAM,CAAC;AAE/B;;;GAGG;AACH,oBAAY,WAAW,GAAG,MAAM,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,kBAAkB;IAC9B;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;;OAIG;;CAEM,CAAC"}
...\ No newline at end of file ...\ No newline at end of file
1 +"use strict";
2 +Object.defineProperty(exports, "__esModule", { value: true });
3 +exports.FormattingPatterns = void 0;
4 +/**
5 + * https://discord.com/developers/docs/reference#message-formatting-formats
6 + */
7 +exports.FormattingPatterns = {
8 + /**
9 + * Regular expression for matching a user mention, strictly without a nickname
10 + *
11 + * The `id` group property is present on the `exec` result of this expression
12 + */
13 + User: /<@(?<id>\d{17,20})>/,
14 + /**
15 + * Regular expression for matching a user mention, strictly with a nickname
16 + *
17 + * The `id` group property is present on the `exec` result of this expression
18 + */
19 + UserWithNickname: /<@!(?<id>\d{17,20})>/,
20 + /**
21 + * Regular expression for matching a user mention, with or without a nickname
22 + *
23 + * The `id` group property is present on the `exec` result of this expression
24 + */
25 + UserWithOptionalNickname: /<@!?(?<id>\d{17,20})>/,
26 + /**
27 + * Regular expression for matching a channel mention
28 + *
29 + * The `id` group property is present on the `exec` result of this expression
30 + */
31 + Channel: /<#(?<id>\d{17,20})>/,
32 + /**
33 + * Regular expression for matching a role mention
34 + *
35 + * The `id` group property is present on the `exec` result of this expression
36 + */
37 + Role: /<@&(?<id>\d{17,20})>/,
38 + /**
39 + * Regular expression for matching a custom emoji, either static or animated
40 + *
41 + * The `animated`, `name` and `id` group properties are present on the `exec` result of this expression
42 + */
43 + Emoji: /<(?<animated>a)?:(?<name>\w{2,32}):(?<id>\d{17,20})>/,
44 + /**
45 + * Regular expression for matching strictly an animated custom emoji
46 + *
47 + * The `animated`, `name` and `id` group properties are present on the `exec` result of this expression
48 + */
49 + AnimatedEmoji: /<(?<animated>a):(?<name>\w{2,32}):(?<id>\d{17,20})>/,
50 + /**
51 + * Regular expression for matching strictly a static custom emoji
52 + *
53 + * The `name` and `id` group properties are present on the `exec` result of this expression
54 + */
55 + StaticEmoji: /<:(?<name>\w{2,32}):(?<id>\d{17,20})>/,
56 + /**
57 + * Regular expression for matching a timestamp, either default or custom styled
58 + *
59 + * The `timestamp` and `style` group properties are present on the `exec` result of this expression
60 + */
61 + Timestamp: /<t:(?<timestamp>-?\d{1,13})(:(?<style>[tTdDfFR]))?>/,
62 + /**
63 + * Regular expression for matching strictly default styled timestamps
64 + *
65 + * The `timestamp` group property is present on the `exec` result of this expression
66 + */
67 + DefaultStyledTimestamp: /<t:(?<timestamp>-?\d{1,13})>/,
68 + /**
69 + * Regular expression for matching strictly custom styled timestamps
70 + *
71 + * The `timestamp` and `style` group properties are present on the `exec` result of this expression
72 + */
73 + StyledTimestamp: /<t:(?<timestamp>-?\d{1,13}):(?<style>[tTdDfFR])>/,
74 +};
75 +/**
76 + * Freezes the formatting patterns
77 + * @internal
78 + */
79 +Object.freeze(exports.FormattingPatterns);
80 +//# sourceMappingURL=globals.js.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"globals.js","sourceRoot":"","sources":["globals.ts"],"names":[],"mappings":";;;AAWA;;GAEG;AACU,QAAA,kBAAkB,GAAG;IACjC;;;;OAIG;IACH,IAAI,EAAE,qBAAqB;IAC3B;;;;OAIG;IACH,gBAAgB,EAAE,sBAAsB;IACxC;;;;OAIG;IACH,wBAAwB,EAAE,uBAAuB;IACjD;;;;OAIG;IACH,OAAO,EAAE,qBAAqB;IAC9B;;;;OAIG;IACH,IAAI,EAAE,sBAAsB;IAC5B;;;;OAIG;IACH,KAAK,EAAE,sDAAsD;IAC7D;;;;OAIG;IACH,aAAa,EAAE,qDAAqD;IACpE;;;;OAIG;IACH,WAAW,EAAE,uCAAuC;IACpD;;;;OAIG;IACH,SAAS,EAAE,qDAAqD;IAChE;;;;OAIG;IACH,sBAAsB,EAAE,8BAA8B;IACtD;;;;OAIG;IACH,eAAe,EAAE,kDAAkD;CAC1D,CAAC;AAEX;;;GAGG;AACH,MAAM,CAAC,MAAM,CAAC,0BAAkB,CAAC,CAAC"}
...\ No newline at end of file ...\ No newline at end of file
1 +import mod from "./globals.js";
2 +
3 +export default mod;
4 +export const FormattingPatterns = mod.FormattingPatterns;
1 +{
2 + "name": "discord-api-types",
3 + "version": "0.26.1",
4 + "description": "Discord API typings that are kept up to date for use in bot library creation.",
5 + "types": "./v9.d.ts",
6 + "exports": {
7 + "./globals": {
8 + "require": "./globals.js",
9 + "import": "./globals.mjs"
10 + },
11 + "./v6": {
12 + "require": "./v6.js",
13 + "import": "./v6.mjs"
14 + },
15 + "./v8": {
16 + "require": "./v8.js",
17 + "import": "./v8.mjs"
18 + },
19 + "./v9": {
20 + "require": "./v9.js",
21 + "import": "./v9.mjs"
22 + },
23 + "./gateway": {
24 + "require": "./gateway/index.js",
25 + "import": "./gateway/index.mjs"
26 + },
27 + "./gateway/v*": {
28 + "require": "./gateway/v*.js",
29 + "import": "./gateway/v*.mjs"
30 + },
31 + "./payloads": {
32 + "require": "./payloads/index.js",
33 + "import": "./payloads/index.mjs"
34 + },
35 + "./payloads/v*": {
36 + "require": "./payloads/v*/index.js",
37 + "import": "./payloads/v*/index.mjs"
38 + },
39 + "./rest": {
40 + "require": "./rest/index.js",
41 + "import": "./rest/index.mjs"
42 + },
43 + "./rest/v*": {
44 + "require": "./rest/v*/index.js",
45 + "import": "./rest/v*/index.mjs"
46 + },
47 + "./rpc": {
48 + "require": "./rpc/index.js",
49 + "import": "./rpc/index.mjs"
50 + },
51 + "./rpc/v*": {
52 + "require": "./rpc/v*.js",
53 + "import": "./rpc/v*.mjs"
54 + },
55 + "./voice": {
56 + "require": "./voice/index.js",
57 + "import": "./voice/index.mjs"
58 + },
59 + "./voice/v*": {
60 + "require": "./voice/v*.js",
61 + "import": "./voice/v*.mjs"
62 + },
63 + "./utils": {
64 + "require": "./utils/index.js",
65 + "import": "./utils/index.mjs"
66 + },
67 + "./utils/v*": {
68 + "require": "./utils/v*.js",
69 + "import": "./utils/v*.mjs"
70 + }
71 + },
72 + "scripts": {
73 + "build:ci": "tsc --noEmit --incremental false",
74 + "build:deno": "node ./scripts/deno.mjs",
75 + "build:node": "tsc && run-p esm:*",
76 + "clean:deno": "rimraf deno/",
77 + "clean:node": "rimraf {gateway,payloads,rest,rpc,voice,utils}/**/*.{js,mjs,d.ts,*map} {globals,v*}.{js,mjs,d.ts,*map}",
78 + "clean": "run-p clean:*",
79 + "esm:gateway": "gen-esm-wrapper ./gateway/index.js ./gateway/index.mjs",
80 + "esm:globals": "gen-esm-wrapper ./globals.js ./globals.mjs",
81 + "esm:payloads": "gen-esm-wrapper ./payloads/index.js ./payloads/index.mjs",
82 + "esm:rest": "gen-esm-wrapper ./rest/index.js ./rest/index.mjs",
83 + "esm:rpc": "gen-esm-wrapper ./rpc/index.js ./rpc/index.mjs",
84 + "esm:utils": "gen-esm-wrapper ./utils/index.js ./utils/index.mjs",
85 + "esm:versions": "node ./scripts/versions.mjs",
86 + "esm:voice": "gen-esm-wrapper ./voice/index.js ./voice/index.mjs",
87 + "lint": "eslint --fix --ext mjs,ts {gateway,payloads,rest,rpc,voice,utils}/**/*.ts {globals,v*}.ts",
88 + "postpublish": "run-s clean:node build:deno",
89 + "prepare": "is-ci || husky install",
90 + "prepublishOnly": "run-s clean test:lint build:node",
91 + "test:lint": "eslint --ext mjs,ts {gateway,payloads,rest,rpc,voice,utils}/**/*.ts {globals,v*}.ts",
92 + "pretest:types": "tsc",
93 + "test:types": "tsd",
94 + "posttest:types": "npm run clean:node",
95 + "version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md"
96 + },
97 + "keywords": [
98 + "discord",
99 + "discord api",
100 + "types",
101 + "discordjs"
102 + ],
103 + "author": "Vlad Frangu <kingdgrizzle@gmail.com>",
104 + "license": "MIT",
105 + "files": [
106 + "{gateway,payloads,rest,rpc,voice,utils}/**/*.{js,js.map,d.ts,d.ts.map,mjs}",
107 + "{globals,v*}.{js,js.map,d.ts,d.ts.map,mjs}"
108 + ],
109 + "engines": {
110 + "node": ">=12"
111 + },
112 + "devDependencies": {
113 + "@babel/core": "^7.16.5",
114 + "@babel/eslint-parser": "^7.16.5",
115 + "@babel/plugin-syntax-top-level-await": "^7.14.5",
116 + "@commitlint/cli": "^15.0.0",
117 + "@commitlint/config-angular": "^15.0.0",
118 + "@types/node": "^17.0.4",
119 + "@typescript-eslint/eslint-plugin": "^5.8.0",
120 + "@typescript-eslint/parser": "^5.8.0",
121 + "conventional-changelog-cli": "^2.1.1",
122 + "eslint": "^8.5.0",
123 + "eslint-config-marine": "^9.1.0",
124 + "eslint-config-prettier": "^8.3.0",
125 + "eslint-plugin-prettier": "^4.0.0",
126 + "gen-esm-wrapper": "^1.1.3",
127 + "husky": "^7.0.4",
128 + "is-ci": "^3.0.1",
129 + "lint-staged": "^12.1.4",
130 + "npm-run-all": "^4.1.5",
131 + "prettier": "^2.5.1",
132 + "pretty-quick": "^3.1.3",
133 + "rimraf": "^3.0.2",
134 + "tsd": "^0.19.0",
135 + "typescript": "^4.5.4"
136 + },
137 + "repository": {
138 + "type": "git",
139 + "url": "https://github.com/discordjs/discord-api-types"
140 + },
141 + "eslintConfig": {
142 + "extends": "marine/prettier/node",
143 + "parserOptions": {
144 + "project": "./tsconfig.eslint.json",
145 + "extraFileExtensions": [
146 + ".mjs"
147 + ]
148 + },
149 + "rules": {
150 + "@typescript-eslint/naming-convention": 0
151 + },
152 + "overrides": [
153 + {
154 + "files": [
155 + "scripts/**/*.mjs"
156 + ],
157 + "parser": "@babel/eslint-parser",
158 + "parserOptions": {
159 + "ecmaVersion": 2021,
160 + "sourceType": "module"
161 + }
162 + }
163 + ]
164 + },
165 + "lint-staged": {
166 + "{gateway,payloads,rest,rpc,voice,utils}/**/*.{mjs,js,ts}": "eslint --fix --ext mjs,js,ts",
167 + "{globals,v*}.ts": "eslint --fix --ext mjs,js,ts"
168 + },
169 + "commitlint": {
170 + "extends": [
171 + "@commitlint/config-angular"
172 + ],
173 + "rules": {
174 + "type-enum": [
175 + 2,
176 + "always",
177 + [
178 + "chore",
179 + "build",
180 + "ci",
181 + "docs",
182 + "feat",
183 + "fix",
184 + "perf",
185 + "refactor",
186 + "revert",
187 + "style",
188 + "test",
189 + "types",
190 + "wip"
191 + ]
192 + ],
193 + "scope-case": [
194 + 1,
195 + "always",
196 + "pascal-case"
197 + ]
198 + }
199 + },
200 + "standard-version": {
201 + "skip": {
202 + "changelog": true,
203 + "commit": true,
204 + "tag": true
205 + }
206 + },
207 + "tsd": {
208 + "directory": "tests"
209 + }
210 +}
1 +export * from './v9/index';
2 +//# sourceMappingURL=index.d.ts.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,cAAc,YAAY,CAAC"}
...\ No newline at end of file ...\ No newline at end of file
1 +"use strict";
2 +// This file exports all the payloads available in the recommended API version
3 +// Thereby, things MAY break in the future. Try sticking to imports from a specific version
4 +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5 + if (k2 === undefined) k2 = k;
6 + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
7 +}) : (function(o, m, k, k2) {
8 + if (k2 === undefined) k2 = k;
9 + o[k2] = m[k];
10 +}));
11 +var __exportStar = (this && this.__exportStar) || function(m, exports) {
12 + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
13 +};
14 +Object.defineProperty(exports, "__esModule", { value: true });
15 +__exportStar(require("./v9/index"), exports);
16 +//# sourceMappingURL=index.js.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAAA,8EAA8E;AAC9E,2FAA2F;;;;;;;;;;;;AAE3F,6CAA2B"}
...\ No newline at end of file ...\ No newline at end of file
1 +import mod from "./index.js";
2 +
3 +export default mod;
4 +export const ActivityFlags = mod.ActivityFlags;
5 +export const ActivityPlatform = mod.ActivityPlatform;
6 +export const ActivityType = mod.ActivityType;
7 +export const AllowedMentionsTypes = mod.AllowedMentionsTypes;
8 +export const ApplicationCommandOptionType = mod.ApplicationCommandOptionType;
9 +export const ApplicationCommandPermissionType = mod.ApplicationCommandPermissionType;
10 +export const ApplicationCommandType = mod.ApplicationCommandType;
11 +export const ApplicationFlags = mod.ApplicationFlags;
12 +export const AuditLogEvent = mod.AuditLogEvent;
13 +export const AuditLogOptionsType = mod.AuditLogOptionsType;
14 +export const ButtonStyle = mod.ButtonStyle;
15 +export const ChannelType = mod.ChannelType;
16 +export const ComponentType = mod.ComponentType;
17 +export const ConnectionVisibility = mod.ConnectionVisibility;
18 +export const EmbedType = mod.EmbedType;
19 +export const GuildDefaultMessageNotifications = mod.GuildDefaultMessageNotifications;
20 +export const GuildExplicitContentFilter = mod.GuildExplicitContentFilter;
21 +export const GuildFeature = mod.GuildFeature;
22 +export const GuildMFALevel = mod.GuildMFALevel;
23 +export const GuildNSFWLevel = mod.GuildNSFWLevel;
24 +export const GuildPremiumTier = mod.GuildPremiumTier;
25 +export const GuildScheduledEventEntityType = mod.GuildScheduledEventEntityType;
26 +export const GuildScheduledEventPrivacyLevel = mod.GuildScheduledEventPrivacyLevel;
27 +export const GuildScheduledEventStatus = mod.GuildScheduledEventStatus;
28 +export const GuildSystemChannelFlags = mod.GuildSystemChannelFlags;
29 +export const GuildVerificationLevel = mod.GuildVerificationLevel;
30 +export const GuildWidgetStyle = mod.GuildWidgetStyle;
31 +export const IntegrationExpireBehavior = mod.IntegrationExpireBehavior;
32 +export const InteractionResponseType = mod.InteractionResponseType;
33 +export const InteractionType = mod.InteractionType;
34 +export const InviteTargetType = mod.InviteTargetType;
35 +export const MembershipScreeningFieldType = mod.MembershipScreeningFieldType;
36 +export const MessageActivityType = mod.MessageActivityType;
37 +export const MessageFlags = mod.MessageFlags;
38 +export const MessageType = mod.MessageType;
39 +export const OAuth2Scopes = mod.OAuth2Scopes;
40 +export const OverwriteType = mod.OverwriteType;
41 +export const PermissionFlagsBits = mod.PermissionFlagsBits;
42 +export const PresenceUpdateStatus = mod.PresenceUpdateStatus;
43 +export const StageInstancePrivacyLevel = mod.StageInstancePrivacyLevel;
44 +export const StickerFormatType = mod.StickerFormatType;
45 +export const StickerType = mod.StickerType;
46 +export const TeamMemberMembershipState = mod.TeamMemberMembershipState;
47 +export const ThreadAutoArchiveDuration = mod.ThreadAutoArchiveDuration;
48 +export const ThreadMemberFlags = mod.ThreadMemberFlags;
49 +export const UserFlags = mod.UserFlags;
50 +export const UserPremiumType = mod.UserPremiumType;
51 +export const VideoQualityMode = mod.VideoQualityMode;
52 +export const WebhookType = mod.WebhookType;
1 +{"version":3,"file":"auditLog.d.ts","sourceRoot":"","sources":["auditLog.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,KAAK,EACX,mBAAmB,EACnB,gCAAgC,EAChC,0BAA0B,EAC1B,aAAa,EACb,sBAAsB,EACtB,yBAAyB,EACzB,MAAM,SAAS,CAAC;AACjB,OAAO,K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AS,EAAE,MAAM,CAAC,CAAC;AAE/E;;;GAGG;AACH,oBAAY,6BAA6B,GAAG,kBAAkB,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AAErF;;;GAGG;AACH,oBAAY,wBAAwB,GAAG,kBAAkB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE3E;;;GAGG;AACH,oBAAY,wBAAwB,GAAG,kBAAkB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE3E;;;GAGG;AACH,oBAAY,wBAAwB,GAAG,kBAAkB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE3E;;;GAGG;AACH,oBAAY,8BAA8B,GAAG,kBAAkB,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;AAEvF;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACtC,GAAG,EAAE,IAAI,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,oBAAY,wBAAwB,GAAG,kBAAkB,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAAC,CAAC;AAExF;;;GAGG;AACH,oBAAY,mCAAmC,GAAG,kBAAkB,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;AAElG;;;GAGG;AACH,oBAAY,kCAAkC,GAAG,kBAAkB,CAAC,iBAAiB,EAAE,yBAAyB,CAAC,CAAC;AAElH;;;GAGG;AACH,oBAAY,qCAAqC,GAAG,kBAAkB,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC;AAEtG;;;GAGG;AACH,UAAU,kBAAkB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC;IAC/C,GAAG,EAAE,CAAC,CAAC;IACP,SAAS,CAAC,EAAE,CAAC,CAAC;IACd,SAAS,CAAC,EAAE,CAAC,CAAC;CACd"}
...\ No newline at end of file ...\ No newline at end of file
1 +"use strict";
2 +/**
3 + * Types extracted from https://discord.com/developers/docs/resources/audit-log
4 + */
5 +Object.defineProperty(exports, "__esModule", { value: true });
6 +exports.AuditLogOptionsType = exports.AuditLogEvent = void 0;
7 +/**
8 + * https://discord.com/developers/docs/resources/audit-log#audit-log-entry-object-audit-log-events
9 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
10 + */
11 +var AuditLogEvent;
12 +(function (AuditLogEvent) {
13 + AuditLogEvent[AuditLogEvent["GUILD_UPDATE"] = 1] = "GUILD_UPDATE";
14 + AuditLogEvent[AuditLogEvent["CHANNEL_CREATE"] = 10] = "CHANNEL_CREATE";
15 + AuditLogEvent[AuditLogEvent["CHANNEL_UPDATE"] = 11] = "CHANNEL_UPDATE";
16 + AuditLogEvent[AuditLogEvent["CHANNEL_DELETE"] = 12] = "CHANNEL_DELETE";
17 + AuditLogEvent[AuditLogEvent["CHANNEL_OVERWRITE_CREATE"] = 13] = "CHANNEL_OVERWRITE_CREATE";
18 + AuditLogEvent[AuditLogEvent["CHANNEL_OVERWRITE_UPDATE"] = 14] = "CHANNEL_OVERWRITE_UPDATE";
19 + AuditLogEvent[AuditLogEvent["CHANNEL_OVERWRITE_DELETE"] = 15] = "CHANNEL_OVERWRITE_DELETE";
20 + AuditLogEvent[AuditLogEvent["MEMBER_KICK"] = 20] = "MEMBER_KICK";
21 + AuditLogEvent[AuditLogEvent["MEMBER_PRUNE"] = 21] = "MEMBER_PRUNE";
22 + AuditLogEvent[AuditLogEvent["MEMBER_BAN_ADD"] = 22] = "MEMBER_BAN_ADD";
23 + AuditLogEvent[AuditLogEvent["MEMBER_BAN_REMOVE"] = 23] = "MEMBER_BAN_REMOVE";
24 + AuditLogEvent[AuditLogEvent["MEMBER_UPDATE"] = 24] = "MEMBER_UPDATE";
25 + AuditLogEvent[AuditLogEvent["MEMBER_ROLE_UPDATE"] = 25] = "MEMBER_ROLE_UPDATE";
26 + AuditLogEvent[AuditLogEvent["MEMBER_MOVE"] = 26] = "MEMBER_MOVE";
27 + AuditLogEvent[AuditLogEvent["MEMBER_DISCONNECT"] = 27] = "MEMBER_DISCONNECT";
28 + AuditLogEvent[AuditLogEvent["BOT_ADD"] = 28] = "BOT_ADD";
29 + AuditLogEvent[AuditLogEvent["ROLE_CREATE"] = 30] = "ROLE_CREATE";
30 + AuditLogEvent[AuditLogEvent["ROLE_UPDATE"] = 31] = "ROLE_UPDATE";
31 + AuditLogEvent[AuditLogEvent["ROLE_DELETE"] = 32] = "ROLE_DELETE";
32 + AuditLogEvent[AuditLogEvent["INVITE_CREATE"] = 40] = "INVITE_CREATE";
33 + AuditLogEvent[AuditLogEvent["INVITE_UPDATE"] = 41] = "INVITE_UPDATE";
34 + AuditLogEvent[AuditLogEvent["INVITE_DELETE"] = 42] = "INVITE_DELETE";
35 + AuditLogEvent[AuditLogEvent["WEBHOOK_CREATE"] = 50] = "WEBHOOK_CREATE";
36 + AuditLogEvent[AuditLogEvent["WEBHOOK_UPDATE"] = 51] = "WEBHOOK_UPDATE";
37 + AuditLogEvent[AuditLogEvent["WEBHOOK_DELETE"] = 52] = "WEBHOOK_DELETE";
38 + AuditLogEvent[AuditLogEvent["EMOJI_CREATE"] = 60] = "EMOJI_CREATE";
39 + AuditLogEvent[AuditLogEvent["EMOJI_UPDATE"] = 61] = "EMOJI_UPDATE";
40 + AuditLogEvent[AuditLogEvent["EMOJI_DELETE"] = 62] = "EMOJI_DELETE";
41 + AuditLogEvent[AuditLogEvent["MESSAGE_DELETE"] = 72] = "MESSAGE_DELETE";
42 + AuditLogEvent[AuditLogEvent["MESSAGE_BULK_DELETE"] = 73] = "MESSAGE_BULK_DELETE";
43 + AuditLogEvent[AuditLogEvent["MESSAGE_PIN"] = 74] = "MESSAGE_PIN";
44 + AuditLogEvent[AuditLogEvent["MESSAGE_UNPIN"] = 75] = "MESSAGE_UNPIN";
45 + AuditLogEvent[AuditLogEvent["INTEGRATION_CREATE"] = 80] = "INTEGRATION_CREATE";
46 + AuditLogEvent[AuditLogEvent["INTEGRATION_UPDATE"] = 81] = "INTEGRATION_UPDATE";
47 + AuditLogEvent[AuditLogEvent["INTEGRATION_DELETE"] = 82] = "INTEGRATION_DELETE";
48 +})(AuditLogEvent = exports.AuditLogEvent || (exports.AuditLogEvent = {}));
49 +/**
50 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
51 + */
52 +var AuditLogOptionsType;
53 +(function (AuditLogOptionsType) {
54 + AuditLogOptionsType["Member"] = "member";
55 + AuditLogOptionsType["Role"] = "role";
56 +})(AuditLogOptionsType = exports.AuditLogOptionsType || (exports.AuditLogOptionsType = {}));
57 +//# sourceMappingURL=auditLog.js.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"auditLog.js","sourceRoot":"","sources":["auditLog.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAwCH;;;GAGG;AACH,IAAY,aA4CX;AA5CD,WAAY,aAAa;IACxB,iEAAgB,CAAA;IAEhB,sEAAmB,CAAA;IACnB,sEAAc,CAAA;IACd,sEAAc,CAAA;IACd,0FAAwB,CAAA;IACxB,0FAAwB,CAAA;IACxB,0FAAwB,CAAA;IAExB,gEAAgB,CAAA;IAChB,kEAAY,CAAA;IACZ,sEAAc,CAAA;IACd,4EAAiB,CAAA;IACjB,oEAAa,CAAA;IACb,8EAAkB,CAAA;IAClB,gEAAW,CAAA;IACX,4EAAiB,CAAA;IACjB,wDAAO,CAAA;IAEP,gEAAgB,CAAA;IAChB,gEAAW,CAAA;IACX,gEAAW,CAAA;IAEX,oEAAkB,CAAA;IAClB,oEAAa,CAAA;IACb,oEAAa,CAAA;IAEb,sEAAmB,CAAA;IACnB,sEAAc,CAAA;IACd,sEAAc,CAAA;IAEd,kEAAiB,CAAA;IACjB,kEAAY,CAAA;IACZ,kEAAY,CAAA;IAEZ,sEAAmB,CAAA;IACnB,gFAAmB,CAAA;IACnB,gEAAW,CAAA;IACX,oEAAa,CAAA;IAEb,8EAAuB,CAAA;IACvB,8EAAkB,CAAA;IAClB,8EAAkB,CAAA;AACnB,CAAC,EA5CW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QA4CxB;AAsED;;GAEG;AACH,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC9B,wCAAiB,CAAA;IACjB,oCAAa,CAAA;AACd,CAAC,EAHW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAG9B"}
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["channel.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEtC;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,UAAW,SAAQ,iBAAiB;IACpD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qBAAqB,CAAC,EAAE,YAAY,EAAE,CAAC;IACvC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,OAAO,EAAE,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CA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AW,iBAAiB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACb;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACnB"}
...\ No newline at end of file ...\ No newline at end of file
1 +"use strict";
2 +/**
3 + * Types extracted from https://discord.com/developers/docs/resources/channel
4 + */
5 +Object.defineProperty(exports, "__esModule", { value: true });
6 +exports.EmbedType = exports.OverwriteType = exports.MessageFlags = exports.MessageActivityType = exports.MessageType = exports.ChannelType = void 0;
7 +/**
8 + * https://discord.com/developers/docs/resources/channel#channel-object-channel-types
9 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
10 + */
11 +var ChannelType;
12 +(function (ChannelType) {
13 + ChannelType[ChannelType["GUILD_TEXT"] = 0] = "GUILD_TEXT";
14 + ChannelType[ChannelType["DM"] = 1] = "DM";
15 + ChannelType[ChannelType["GUILD_VOICE"] = 2] = "GUILD_VOICE";
16 + ChannelType[ChannelType["GROUP_DM"] = 3] = "GROUP_DM";
17 + ChannelType[ChannelType["GUILD_CATEGORY"] = 4] = "GUILD_CATEGORY";
18 + ChannelType[ChannelType["GUILD_NEWS"] = 5] = "GUILD_NEWS";
19 + ChannelType[ChannelType["GUILD_STORE"] = 6] = "GUILD_STORE";
20 +})(ChannelType = exports.ChannelType || (exports.ChannelType = {}));
21 +/**
22 + * https://discord.com/developers/docs/resources/channel#message-object-message-types
23 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
24 + */
25 +var MessageType;
26 +(function (MessageType) {
27 + MessageType[MessageType["DEFAULT"] = 0] = "DEFAULT";
28 + MessageType[MessageType["RECIPIENT_ADD"] = 1] = "RECIPIENT_ADD";
29 + MessageType[MessageType["RECIPIENT_REMOVE"] = 2] = "RECIPIENT_REMOVE";
30 + MessageType[MessageType["CALL"] = 3] = "CALL";
31 + MessageType[MessageType["CHANNEL_NAME_CHANGE"] = 4] = "CHANNEL_NAME_CHANGE";
32 + MessageType[MessageType["CHANNEL_ICON_CHANGE"] = 5] = "CHANNEL_ICON_CHANGE";
33 + MessageType[MessageType["CHANNEL_PINNED_MESSAGE"] = 6] = "CHANNEL_PINNED_MESSAGE";
34 + MessageType[MessageType["GUILD_MEMBER_JOIN"] = 7] = "GUILD_MEMBER_JOIN";
35 + MessageType[MessageType["USER_PREMIUM_GUILD_SUBSCRIPTION"] = 8] = "USER_PREMIUM_GUILD_SUBSCRIPTION";
36 + MessageType[MessageType["USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_1"] = 9] = "USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_1";
37 + MessageType[MessageType["USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_2"] = 10] = "USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_2";
38 + MessageType[MessageType["USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_3"] = 11] = "USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_3";
39 + MessageType[MessageType["CHANNEL_FOLLOW_ADD"] = 12] = "CHANNEL_FOLLOW_ADD";
40 + MessageType[MessageType["GUILD_DISCOVERY_DISQUALIFIED"] = 14] = "GUILD_DISCOVERY_DISQUALIFIED";
41 + MessageType[MessageType["GUILD_DISCOVERY_REQUALIFIED"] = 15] = "GUILD_DISCOVERY_REQUALIFIED";
42 + MessageType[MessageType["GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING"] = 16] = "GUILD_DISCOVERY_GRACE_PERIOD_INITIAL_WARNING";
43 + MessageType[MessageType["GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING"] = 17] = "GUILD_DISCOVERY_GRACE_PERIOD_FINAL_WARNING";
44 +})(MessageType = exports.MessageType || (exports.MessageType = {}));
45 +/**
46 + * https://discord.com/developers/docs/resources/channel#message-object-message-activity-types
47 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
48 + */
49 +var MessageActivityType;
50 +(function (MessageActivityType) {
51 + MessageActivityType[MessageActivityType["JOIN"] = 1] = "JOIN";
52 + MessageActivityType[MessageActivityType["SPECTATE"] = 2] = "SPECTATE";
53 + MessageActivityType[MessageActivityType["LISTEN"] = 3] = "LISTEN";
54 + MessageActivityType[MessageActivityType["JOIN_REQUEST"] = 5] = "JOIN_REQUEST";
55 +})(MessageActivityType = exports.MessageActivityType || (exports.MessageActivityType = {}));
56 +/**
57 + * https://discord.com/developers/docs/resources/channel#message-object-message-flags
58 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
59 + */
60 +var MessageFlags;
61 +(function (MessageFlags) {
62 + MessageFlags[MessageFlags["CROSSPOSTED"] = 1] = "CROSSPOSTED";
63 + MessageFlags[MessageFlags["IS_CROSSPOST"] = 2] = "IS_CROSSPOST";
64 + MessageFlags[MessageFlags["SUPPRESS_EMBEDS"] = 4] = "SUPPRESS_EMBEDS";
65 + MessageFlags[MessageFlags["SOURCE_MESSAGE_DELETED"] = 8] = "SOURCE_MESSAGE_DELETED";
66 + MessageFlags[MessageFlags["URGENT"] = 16] = "URGENT";
67 +})(MessageFlags = exports.MessageFlags || (exports.MessageFlags = {}));
68 +/**
69 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
70 + */
71 +var OverwriteType;
72 +(function (OverwriteType) {
73 + OverwriteType["Member"] = "member";
74 + OverwriteType["Role"] = "role";
75 +})(OverwriteType = exports.OverwriteType || (exports.OverwriteType = {}));
76 +/**
77 + * https://discord.com/developers/docs/resources/channel#embed-object-embed-types
78 + * @deprecated *Embed types should be considered deprecated and might be removed in a future API version*
79 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
80 + */
81 +var EmbedType;
82 +(function (EmbedType) {
83 + EmbedType["Rich"] = "rich";
84 + EmbedType["Image"] = "image";
85 + EmbedType["Video"] = "video";
86 + EmbedType["GifV"] = "gifv";
87 + EmbedType["Article"] = "article";
88 + EmbedType["Link"] = "link";
89 +})(EmbedType = exports.EmbedType || (exports.EmbedType = {}));
90 +//# sourceMappingURL=channel.js.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"channel.js","sourceRoot":"","sources":["channel.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAuCH;;;GAGG;AACH,IAAY,WAQX;AARD,WAAY,WAAW;IACtB,yDAAc,CAAA;IACd,yCAAE,CAAA;IACF,2DAAW,CAAA;IACX,qDAAQ,CAAA;IACR,iEAAc,CAAA;IACd,yDAAU,CAAA;IACV,2DAAW,CAAA;AACZ,CAAC,EARW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAQtB;AAkCD;;;GAGG;AACH,IAAY,WAkBX;AAlBD,WAAY,WAAW;IACtB,mDAAO,CAAA;IACP,+DAAa,CAAA;IACb,qEAAgB,CAAA;IAChB,6CAAI,CAAA;IACJ,2EAAmB,CAAA;IACnB,2EAAmB,CAAA;IACnB,iFAAsB,CAAA;IACtB,uEAAiB,CAAA;IACjB,mGAA+B,CAAA;IAC/B,iHAAsC,CAAA;IACtC,kHAAsC,CAAA;IACtC,kHAAsC,CAAA;IACtC,0EAAkB,CAAA;IAClB,8FAAiC,CAAA;IACjC,4FAA2B,CAAA;IAC3B,8HAA4C,CAAA;IAC5C,0HAA0C,CAAA;AAC3C,CAAC,EAlBW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAkBtB;AAiCD;;;GAGG;AACH,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC9B,6DAAQ,CAAA;IACR,qEAAQ,CAAA;IACR,iEAAM,CAAA;IACN,6EAAgB,CAAA;AACjB,CAAC,EALW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAK9B;AAED;;;GAGG;AACH,IAAY,YAMX;AAND,WAAY,YAAY;IACvB,6DAAoB,CAAA;IACpB,+DAAqB,CAAA;IACrB,qEAAwB,CAAA;IACxB,mFAA+B,CAAA;IAC/B,oDAAe,CAAA;AAChB,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB;AA+BD;;GAEG;AACH,IAAY,aAGX;AAHD,WAAY,aAAa;IACxB,kCAAiB,CAAA;IACjB,8BAAa,CAAA;AACd,CAAC,EAHW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAGxB;AAyBD;;;;GAIG;AACH,IAAY,SAOX;AAPD,WAAY,SAAS;IACpB,0BAAa,CAAA;IACb,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,0BAAa,CAAA;IACb,gCAAmB,CAAA;IACnB,0BAAa,CAAA;AACd,CAAC,EAPW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAOpB"}
...\ No newline at end of file ...\ No newline at end of file
1 +/**
2 + * Types extracted from https://discord.com/developers/docs/resources/emoji
3 + */
4 +import type { APIUser } from './user';
5 +/**
6 + * Not documented but mentioned
7 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
8 + */
9 +export interface APIPartialEmoji {
10 + id: string | null;
11 + name: string | null;
12 + animated?: boolean;
13 +}
14 +/**
15 + * https://discord.com/developers/docs/resources/emoji#emoji-object-emoji-structure
16 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
17 + */
18 +export interface APIEmoji extends APIPartialEmoji {
19 + roles?: string[];
20 + user?: APIUser;
21 + require_colons?: boolean;
22 + managed?: boolean;
23 + available?: boolean;
24 +}
25 +//# sourceMappingURL=emoji.d.ts.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"emoji.d.ts","sourceRoot":"","sources":["emoji.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEtC;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC/B,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,QAAS,SAAQ,eAAe;IAChD,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB"}
...\ No newline at end of file ...\ No newline at end of file
1 +"use strict";
2 +/**
3 + * Types extracted from https://discord.com/developers/docs/resources/emoji
4 + */
5 +Object.defineProperty(exports, "__esModule", { value: true });
6 +//# sourceMappingURL=emoji.js.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"emoji.js","sourceRoot":"","sources":["emoji.ts"],"names":[],"mappings":";AAAA;;GAEG"}
...\ No newline at end of file ...\ No newline at end of file
1 +/**
2 + * Types extracted from https://discord.com/developers/docs/topics/gateway
3 + */
4 +import type { APIEmoji } from './emoji';
5 +import type { APIUser } from './user';
6 +/**
7 + * https://discord.com/developers/docs/topics/gateway#get-gateway
8 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
9 + */
10 +export interface APIGatewayInfo {
11 + url: string;
12 +}
13 +/**
14 + * https://discord.com/developers/docs/topics/gateway#get-gateway-bot
15 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
16 + */
17 +export interface APIGatewayBotInfo extends APIGatewayInfo {
18 + shards: number;
19 + session_start_limit: APIGatewaySessionStartLimit;
20 +}
21 +/**
22 + * https://discord.com/developers/docs/topics/gateway#session-start-limit-object
23 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
24 + */
25 +export interface APIGatewaySessionStartLimit {
26 + total: number;
27 + remaining: number;
28 + reset_after: number;
29 +}
30 +/**
31 + * https://discord.com/developers/docs/topics/gateway#presence-update-presence-update-event-fields
32 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
33 + */
34 +export interface GatewayPresenceUpdate {
35 + user: Partial<APIUser> & {
36 + id: string;
37 + };
38 + roles?: string[];
39 + game?: GatewayActivity | null;
40 + guild_id?: string;
41 + status?: PresenceUpdateStatus;
42 + activities?: GatewayActivity[];
43 + client_status?: GatewayPresenceClientStatus;
44 + premium_since?: string | null;
45 + nick?: string | null;
46 +}
47 +/**
48 + * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8.
49 + */
50 +export declare enum PresenceUpdateStatus {
51 + DoNotDisturb = "dnd",
52 + Idle = "idle",
53 + Invisible = "invisible",
54 + Offline = "offline",
55 + Online = "online"
56 +}
57 +/**
58 + * https://discord.com/developers/docs/topics/gateway#client-status-object
59 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
60 + */
61 +export declare type GatewayPresenceClientStatus = Partial<Record<'desktop' | 'mobile' | 'web', PresenceUpdateStatus>>;
62 +/**
63 + * https://discord.com/developers/docs/topics/gateway#activity-object
64 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
65 + */
66 +export interface GatewayActivity {
67 + name: string;
68 + type: ActivityType;
69 + url?: string | null;
70 + created_at: number;
71 + timestamps?: GatewayActivityTimestamps;
72 + application_id?: string;
73 + details?: string | null;
74 + state?: string | null;
75 + emoji?: GatewayActivityEmoji;
76 + party?: GatewayActivityParty;
77 + assets?: GatewayActivityAssets;
78 + secrets?: GatewayActivitySecrets;
79 + instance?: boolean;
80 + flags?: ActivityFlags;
81 +}
82 +/**
83 + * https://discord.com/developers/docs/topics/gateway#activity-object-activity-types
84 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
85 + */
86 +export declare enum ActivityType {
87 + Game = 0,
88 + Streaming = 1,
89 + Listening = 2,
90 + Custom = 4,
91 + Competing = 5
92 +}
93 +/**
94 + * https://discord.com/developers/docs/topics/gateway#activity-object-activity-timestamps
95 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
96 + */
97 +export interface GatewayActivityTimestamps {
98 + start?: number;
99 + end?: number;
100 +}
101 +/**
102 + * https://discord.com/developers/docs/topics/gateway#activity-object-activity-emoji
103 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
104 + */
105 +export declare type GatewayActivityEmoji = Partial<Pick<APIEmoji, 'name' | 'animated'>> & Pick<APIEmoji, 'id'>;
106 +/**
107 + * https://discord.com/developers/docs/topics/gateway#activity-object-activity-party
108 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
109 + */
110 +export interface GatewayActivityParty {
111 + id?: string;
112 + size?: [currentSize: number, maxSize: number];
113 +}
114 +/**
115 + * https://discord.com/developers/docs/topics/gateway#activity-object-activity-assets
116 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
117 + */
118 +export declare type GatewayActivityAssets = Partial<Record<'large_image' | 'large_text' | 'small_image' | 'small_text', string>>;
119 +/**
120 + * https://discord.com/developers/docs/topics/gateway#activity-object-activity-secrets
121 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
122 + */
123 +export declare type GatewayActivitySecrets = Partial<Record<'join' | 'spectate' | 'match', string>>;
124 +/**
125 + * https://discord.com/developers/docs/topics/gateway#activity-object-activity-flags
126 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
127 + */
128 +export declare enum ActivityFlags {
129 + INSTANCE = 1,
130 + JOIN = 2,
131 + SPECTATE = 4,
132 + JOIN_REQUEST = 8,
133 + SYNC = 16,
134 + PLAY = 32
135 +}
136 +//# sourceMappingURL=gateway.d.ts.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"gateway.d.ts","sourceRoot":"","sources":["gateway.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AA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AC,CAAC,CAAC;AAE5F;;;GAGG;AACH,oBAAY,aAAa;IACxB,QAAQ,IAAS;IACjB,IAAI,IAAS;IACb,QAAQ,IAAS;IACjB,YAAY,IAAS;IACrB,IAAI,KAAS;IACb,IAAI,KAAS;CACb"}
...\ No newline at end of file ...\ No newline at end of file
1 +"use strict";
2 +/**
3 + * Types extracted from https://discord.com/developers/docs/topics/gateway
4 + */
5 +Object.defineProperty(exports, "__esModule", { value: true });
6 +exports.ActivityFlags = exports.ActivityType = exports.PresenceUpdateStatus = void 0;
7 +/**
8 + * @deprecated API v6 is deprecated and the types will not receive further updates, please update to v8.
9 + */
10 +var PresenceUpdateStatus;
11 +(function (PresenceUpdateStatus) {
12 + PresenceUpdateStatus["DoNotDisturb"] = "dnd";
13 + PresenceUpdateStatus["Idle"] = "idle";
14 + PresenceUpdateStatus["Invisible"] = "invisible";
15 + PresenceUpdateStatus["Offline"] = "offline";
16 + PresenceUpdateStatus["Online"] = "online";
17 +})(PresenceUpdateStatus = exports.PresenceUpdateStatus || (exports.PresenceUpdateStatus = {}));
18 +/**
19 + * https://discord.com/developers/docs/topics/gateway#activity-object-activity-types
20 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
21 + */
22 +var ActivityType;
23 +(function (ActivityType) {
24 + ActivityType[ActivityType["Game"] = 0] = "Game";
25 + ActivityType[ActivityType["Streaming"] = 1] = "Streaming";
26 + ActivityType[ActivityType["Listening"] = 2] = "Listening";
27 + ActivityType[ActivityType["Custom"] = 4] = "Custom";
28 + ActivityType[ActivityType["Competing"] = 5] = "Competing";
29 +})(ActivityType = exports.ActivityType || (exports.ActivityType = {}));
30 +/**
31 + * https://discord.com/developers/docs/topics/gateway#activity-object-activity-flags
32 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
33 + */
34 +var ActivityFlags;
35 +(function (ActivityFlags) {
36 + ActivityFlags[ActivityFlags["INSTANCE"] = 1] = "INSTANCE";
37 + ActivityFlags[ActivityFlags["JOIN"] = 2] = "JOIN";
38 + ActivityFlags[ActivityFlags["SPECTATE"] = 4] = "SPECTATE";
39 + ActivityFlags[ActivityFlags["JOIN_REQUEST"] = 8] = "JOIN_REQUEST";
40 + ActivityFlags[ActivityFlags["SYNC"] = 16] = "SYNC";
41 + ActivityFlags[ActivityFlags["PLAY"] = 32] = "PLAY";
42 +})(ActivityFlags = exports.ActivityFlags || (exports.ActivityFlags = {}));
43 +//# sourceMappingURL=gateway.js.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"gateway.js","sourceRoot":"","sources":["gateway.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAkDH;;GAEG;AACH,IAAY,oBAMX;AAND,WAAY,oBAAoB;IAC/B,4CAAoB,CAAA;IACpB,qCAAa,CAAA;IACb,+CAAuB,CAAA;IACvB,2CAAmB,CAAA;IACnB,yCAAiB,CAAA;AAClB,CAAC,EANW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAM/B;AA6BD;;;GAGG;AACH,IAAY,YAOX;AAPD,WAAY,YAAY;IACvB,+CAAI,CAAA;IACJ,yDAAS,CAAA;IACT,yDAAS,CAAA;IAET,mDAAU,CAAA;IACV,yDAAS,CAAA;AACV,CAAC,EAPW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAOvB;AAyCD;;;GAGG;AACH,IAAY,aAOX;AAPD,WAAY,aAAa;IACxB,yDAAiB,CAAA;IACjB,iDAAa,CAAA;IACb,yDAAiB,CAAA;IACjB,iEAAqB,CAAA;IACrB,kDAAa,CAAA;IACb,kDAAa,CAAA;AACd,CAAC,EAPW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAOxB"}
...\ No newline at end of file ...\ No newline at end of file
1 +/**
2 + * Types extracted from https://discord.com/developers/docs/resources/guild
3 + */
4 +import type { APIChannel } from './channel';
5 +import type { APIEmoji } from './emoji';
6 +import type { GatewayPresenceUpdate } from './gateway';
7 +import type { APIRole } from './permissions';
8 +import type { APIUser } from './user';
9 +import type { GatewayVoiceState } from './voice';
10 +/**
11 + * https://discord.com/developers/docs/resources/guild#unavailable-guild-object
12 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
13 + */
14 +export interface APIUnavailableGuild {
15 + id: string;
16 + unavailable: boolean;
17 +}
18 +/**
19 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
20 + */
21 +export interface APIPartialGuild extends Omit<APIUnavailableGuild, 'unavailable'>, Pick<APIGuild, 'welcome_screen'> {
22 + name: string;
23 + icon: string | null;
24 + splash: string | null;
25 + banner?: string | null;
26 + description?: string | null;
27 + features?: GuildFeature[];
28 + verification_level?: GuildVerificationLevel;
29 + vanity_url_code?: string | null;
30 + unavailable?: boolean;
31 +}
32 +/**
33 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
34 + */
35 +export interface APIGuild extends APIPartialGuild {
36 + discovery_splash: string | null;
37 + owner?: boolean;
38 + owner_id: string;
39 + /**
40 + * @deprecated Use `permissions_new` instead
41 + */
42 + permissions?: number;
43 + permissions_new?: string;
44 + region: string;
45 + afk_channel_id: string | null;
46 + afk_timeout: number;
47 + /**
48 + * @deprecated Use `widget_enabled` instead
49 + */
50 + embed_enabled?: boolean;
51 + /**
52 + * @deprecated Use `widget_channel_id` instead
53 + */
54 + embed_channel_id?: string | null;
55 + verification_level: GuildVerificationLevel;
56 + default_message_notifications: GuildDefaultMessageNotifications;
57 + explicit_content_filter: GuildExplicitContentFilter;
58 + roles: APIRole[];
59 + emojis: APIEmoji[];
60 + features: GuildFeature[];
61 + mfa_level: GuildMFALevel;
62 + application_id: string | null;
63 + widget_enabled?: boolean;
64 + widget_channel_id?: string | null;
65 + system_channel_id: string | null;
66 + system_channel_flags: GuildSystemChannelFlags;
67 + rules_channel_id: string | null;
68 + joined_at?: string;
69 + large?: boolean;
70 + member_count?: number;
71 + voice_states?: Omit<GatewayVoiceState, 'guild_id'>[];
72 + members?: APIGuildMember[];
73 + channels?: APIChannel[];
74 + presences?: GatewayPresenceUpdate[];
75 + max_presences?: number | null;
76 + max_members?: number;
77 + vanity_url_code: string | null;
78 + description: string | null;
79 + banner: string | null;
80 + premium_tier: GuildPremiumTier;
81 + premium_subscription_count?: number;
82 + preferred_locale: string;
83 + public_updates_channel_id: string | null;
84 + max_video_channel_users?: number;
85 + /**
86 + * Returned by calling GET `/guilds/{guild.id}` with the query `with_counts` set to `true`
87 + */
88 + approximate_member_count?: number;
89 + /**
90 + * Returned by calling GET `/guilds/{guild.id}` with the query `with_counts` set to `true`
91 + */
92 + approximate_presence_count?: number;
93 + welcome_screen?: APIGuildWelcomeScreen;
94 +}
95 +/**
96 + * https://discord.com/developers/docs/resources/guild#guild-object-default-message-notification-level
97 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
98 + */
99 +export declare enum GuildDefaultMessageNotifications {
100 + ALL_MESSAGES = 0,
101 + ONLY_MENTIONS = 1
102 +}
103 +/**
104 + * https://discord.com/developers/docs/resources/guild#guild-object-explicit-content-filter-level
105 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
106 + */
107 +export declare enum GuildExplicitContentFilter {
108 + DISABLED = 0,
109 + MEMBERS_WITHOUT_ROLES = 1,
110 + ALL_MEMBERS = 2
111 +}
112 +/**
113 + * https://discord.com/developers/docs/resources/guild#guild-object-mfa-level
114 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
115 + */
116 +export declare enum GuildMFALevel {
117 + NONE = 0,
118 + ELEVATED = 1
119 +}
120 +/**
121 + * https://discord.com/developers/docs/resources/guild#guild-object-verification-level
122 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
123 + */
124 +export declare enum GuildVerificationLevel {
125 + NONE = 0,
126 + LOW = 1,
127 + MEDIUM = 2,
128 + HIGH = 3,
129 + VERY_HIGH = 4
130 +}
131 +/**
132 + * https://discord.com/developers/docs/resources/guild#guild-object-premium-tier
133 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
134 + */
135 +export declare enum GuildPremiumTier {
136 + NONE = 0,
137 + TIER_1 = 1,
138 + TIER_2 = 2,
139 + TIER_3 = 3
140 +}
141 +/**
142 + * https://discord.com/developers/docs/resources/guild#guild-object-system-channel-flags
143 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
144 + */
145 +export declare enum GuildSystemChannelFlags {
146 + SUPPRESS_JOIN_NOTIFICATIONS = 1,
147 + SUPPRESS_PREMIUM_SUBSCRIPTIONS = 2
148 +}
149 +/**
150 + * https://discord.com/developers/docs/resources/guild#guild-object-guild-features
151 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
152 + */
153 +export declare enum GuildFeature {
154 + ANIMATED_ICON = "ANIMATED_ICON",
155 + BANNER = "BANNER",
156 + COMMERCE = "COMMERCE",
157 + COMMUNITY = "COMMUNITY",
158 + DISCOVERABLE = "DISCOVERABLE",
159 + FEATURABLE = "FEATURABLE",
160 + INVITE_SPLASH = "INVITE_SPLASH",
161 + NEWS = "NEWS",
162 + PARTNERED = "PARTNERED",
163 + RELAY_ENABLED = "RELAY_ENABLED",
164 + VANITY_URL = "VANITY_URL",
165 + VERIFIED = "VERIFIED",
166 + VIP_REGIONS = "VIP_REGIONS",
167 + WELCOME_SCREEN_ENABLED = "WELCOME_SCREEN_ENABLED"
168 +}
169 +/**
170 + * https://discord.com/developers/docs/resources/guild#guild-preview-object
171 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
172 + */
173 +export interface APIGuildPreview {
174 + id: string;
175 + name: string;
176 + icon: string | null;
177 + splash: string | null;
178 + discovery_splash: string | null;
179 + emojis: APIEmoji[];
180 + features: GuildFeature[];
181 + approximate_member_count: number;
182 + approximate_presence_count: number;
183 +}
184 +/**
185 + * @deprecated Use `APIGuildWidgetSettings` instead
186 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
187 + */
188 +export declare type APIGuildWidget = APIGuildWidgetSettings;
189 +/**
190 + * https://discord.com/developers/docs/resources/guild#guild-widget-object
191 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
192 + */
193 +export interface APIGuildWidgetSettings {
194 + enabled: boolean;
195 + channel_id: string | null;
196 +}
197 +/**
198 + * https://discord.com/developers/docs/resources/guild#guild-member-object
199 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
200 + */
201 +export interface APIGuildMember {
202 + user?: APIUser;
203 + nick: string | null;
204 + roles: string[];
205 + joined_at: string;
206 + premium_since?: string | null;
207 + deaf: boolean;
208 + mute: boolean;
209 +}
210 +/**
211 + * https://discord.com/developers/docs/resources/guild#integration-object
212 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
213 + */
214 +export interface APIGuildIntegration {
215 + id: string;
216 + name: string;
217 + type: string;
218 + enabled: boolean;
219 + syncing: boolean;
220 + role_id: string;
221 + enable_emoticons?: boolean;
222 + expire_behavior: IntegrationExpireBehavior;
223 + expire_grace_period: number;
224 + user?: APIUser;
225 + account: APIIntegrationAccount;
226 + synced_at: string;
227 + subscriber_count: number;
228 + revoked: boolean;
229 + application?: APIGuildIntegrationApplication;
230 +}
231 +/**
232 + * https://discord.com/developers/docs/resources/guild#integration-object-integration-expire-behaviors
233 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
234 + */
235 +export declare enum IntegrationExpireBehavior {
236 + RemoveRole = 0,
237 + Kick = 1
238 +}
239 +/**
240 + * https://discord.com/developers/docs/resources/guild#integration-account-object
241 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
242 + */
243 +export interface APIIntegrationAccount {
244 + id: string;
245 + name: string;
246 +}
247 +/**
248 + * https://discord.com/developers/docs/resources/guild#integration-application-object
249 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
250 + */
251 +export interface APIGuildIntegrationApplication {
252 + id: string;
253 + name: string;
254 + icon: string | null;
255 + description: string;
256 + summary: string;
257 + bot?: APIUser;
258 +}
259 +/**
260 + * https://discord.com/developers/docs/resources/guild#ban-object
261 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
262 + */
263 +export interface APIBan {
264 + reason: string | null;
265 + user: APIUser;
266 +}
267 +/**
268 + * https://discord.com/developers/docs/resources/guild#get-guild-widget-image-widget-style-options
269 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
270 + */
271 +export declare enum GuildWidgetStyle {
272 + Banner1 = "banner1",
273 + Banner2 = "banner2",
274 + Banner3 = "banner3",
275 + Banner4 = "banner4",
276 + Shield = "shield"
277 +}
278 +/**
279 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
280 + */
281 +export interface APIGuildWelcomeScreen {
282 + description: string | null;
283 + welcome_channels: APIGuildWelcomeScreenChannel[];
284 +}
285 +/**
286 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
287 + */
288 +export interface APIGuildWelcomeScreenChannel {
289 + channel_id: string;
290 + emoji_id: string | null;
291 + emoji_name: string | null;
292 +}
293 +//# sourceMappingURL=guild.d.ts.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"guild.d.ts","sourceRoot":"","sources":["guild.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IACnC,EAAE,EAAE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AAI,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,OAAO,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,WAAW,MAAM;IACtB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,EAAE,OAAO,CAAC;CACd;AAED;;;GAGG;AACH,oBAAY,gBAAgB;IAC3B,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,MAAM,WAAW;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACrC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,gBAAgB,EAAE,4BAA4B,EAAE,CAAC;CACjD;AAED;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B"}
...\ No newline at end of file ...\ No newline at end of file
1 +"use strict";
2 +/**
3 + * Types extracted from https://discord.com/developers/docs/resources/guild
4 + */
5 +Object.defineProperty(exports, "__esModule", { value: true });
6 +exports.GuildWidgetStyle = exports.IntegrationExpireBehavior = exports.GuildFeature = exports.GuildSystemChannelFlags = exports.GuildPremiumTier = exports.GuildVerificationLevel = exports.GuildMFALevel = exports.GuildExplicitContentFilter = exports.GuildDefaultMessageNotifications = void 0;
7 +/**
8 + * https://discord.com/developers/docs/resources/guild#guild-object-default-message-notification-level
9 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
10 + */
11 +var GuildDefaultMessageNotifications;
12 +(function (GuildDefaultMessageNotifications) {
13 + GuildDefaultMessageNotifications[GuildDefaultMessageNotifications["ALL_MESSAGES"] = 0] = "ALL_MESSAGES";
14 + GuildDefaultMessageNotifications[GuildDefaultMessageNotifications["ONLY_MENTIONS"] = 1] = "ONLY_MENTIONS";
15 +})(GuildDefaultMessageNotifications = exports.GuildDefaultMessageNotifications || (exports.GuildDefaultMessageNotifications = {}));
16 +/**
17 + * https://discord.com/developers/docs/resources/guild#guild-object-explicit-content-filter-level
18 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
19 + */
20 +var GuildExplicitContentFilter;
21 +(function (GuildExplicitContentFilter) {
22 + GuildExplicitContentFilter[GuildExplicitContentFilter["DISABLED"] = 0] = "DISABLED";
23 + GuildExplicitContentFilter[GuildExplicitContentFilter["MEMBERS_WITHOUT_ROLES"] = 1] = "MEMBERS_WITHOUT_ROLES";
24 + GuildExplicitContentFilter[GuildExplicitContentFilter["ALL_MEMBERS"] = 2] = "ALL_MEMBERS";
25 +})(GuildExplicitContentFilter = exports.GuildExplicitContentFilter || (exports.GuildExplicitContentFilter = {}));
26 +/**
27 + * https://discord.com/developers/docs/resources/guild#guild-object-mfa-level
28 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
29 + */
30 +var GuildMFALevel;
31 +(function (GuildMFALevel) {
32 + GuildMFALevel[GuildMFALevel["NONE"] = 0] = "NONE";
33 + GuildMFALevel[GuildMFALevel["ELEVATED"] = 1] = "ELEVATED";
34 +})(GuildMFALevel = exports.GuildMFALevel || (exports.GuildMFALevel = {}));
35 +/**
36 + * https://discord.com/developers/docs/resources/guild#guild-object-verification-level
37 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
38 + */
39 +var GuildVerificationLevel;
40 +(function (GuildVerificationLevel) {
41 + GuildVerificationLevel[GuildVerificationLevel["NONE"] = 0] = "NONE";
42 + GuildVerificationLevel[GuildVerificationLevel["LOW"] = 1] = "LOW";
43 + GuildVerificationLevel[GuildVerificationLevel["MEDIUM"] = 2] = "MEDIUM";
44 + GuildVerificationLevel[GuildVerificationLevel["HIGH"] = 3] = "HIGH";
45 + GuildVerificationLevel[GuildVerificationLevel["VERY_HIGH"] = 4] = "VERY_HIGH";
46 +})(GuildVerificationLevel = exports.GuildVerificationLevel || (exports.GuildVerificationLevel = {}));
47 +/**
48 + * https://discord.com/developers/docs/resources/guild#guild-object-premium-tier
49 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
50 + */
51 +var GuildPremiumTier;
52 +(function (GuildPremiumTier) {
53 + GuildPremiumTier[GuildPremiumTier["NONE"] = 0] = "NONE";
54 + GuildPremiumTier[GuildPremiumTier["TIER_1"] = 1] = "TIER_1";
55 + GuildPremiumTier[GuildPremiumTier["TIER_2"] = 2] = "TIER_2";
56 + GuildPremiumTier[GuildPremiumTier["TIER_3"] = 3] = "TIER_3";
57 +})(GuildPremiumTier = exports.GuildPremiumTier || (exports.GuildPremiumTier = {}));
58 +/**
59 + * https://discord.com/developers/docs/resources/guild#guild-object-system-channel-flags
60 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
61 + */
62 +var GuildSystemChannelFlags;
63 +(function (GuildSystemChannelFlags) {
64 + GuildSystemChannelFlags[GuildSystemChannelFlags["SUPPRESS_JOIN_NOTIFICATIONS"] = 1] = "SUPPRESS_JOIN_NOTIFICATIONS";
65 + GuildSystemChannelFlags[GuildSystemChannelFlags["SUPPRESS_PREMIUM_SUBSCRIPTIONS"] = 2] = "SUPPRESS_PREMIUM_SUBSCRIPTIONS";
66 +})(GuildSystemChannelFlags = exports.GuildSystemChannelFlags || (exports.GuildSystemChannelFlags = {}));
67 +/**
68 + * https://discord.com/developers/docs/resources/guild#guild-object-guild-features
69 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
70 + */
71 +var GuildFeature;
72 +(function (GuildFeature) {
73 + GuildFeature["ANIMATED_ICON"] = "ANIMATED_ICON";
74 + GuildFeature["BANNER"] = "BANNER";
75 + GuildFeature["COMMERCE"] = "COMMERCE";
76 + GuildFeature["COMMUNITY"] = "COMMUNITY";
77 + GuildFeature["DISCOVERABLE"] = "DISCOVERABLE";
78 + GuildFeature["FEATURABLE"] = "FEATURABLE";
79 + GuildFeature["INVITE_SPLASH"] = "INVITE_SPLASH";
80 + GuildFeature["NEWS"] = "NEWS";
81 + GuildFeature["PARTNERED"] = "PARTNERED";
82 + GuildFeature["RELAY_ENABLED"] = "RELAY_ENABLED";
83 + GuildFeature["VANITY_URL"] = "VANITY_URL";
84 + GuildFeature["VERIFIED"] = "VERIFIED";
85 + GuildFeature["VIP_REGIONS"] = "VIP_REGIONS";
86 + GuildFeature["WELCOME_SCREEN_ENABLED"] = "WELCOME_SCREEN_ENABLED";
87 +})(GuildFeature = exports.GuildFeature || (exports.GuildFeature = {}));
88 +/**
89 + * https://discord.com/developers/docs/resources/guild#integration-object-integration-expire-behaviors
90 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
91 + */
92 +var IntegrationExpireBehavior;
93 +(function (IntegrationExpireBehavior) {
94 + IntegrationExpireBehavior[IntegrationExpireBehavior["RemoveRole"] = 0] = "RemoveRole";
95 + IntegrationExpireBehavior[IntegrationExpireBehavior["Kick"] = 1] = "Kick";
96 +})(IntegrationExpireBehavior = exports.IntegrationExpireBehavior || (exports.IntegrationExpireBehavior = {}));
97 +/**
98 + * https://discord.com/developers/docs/resources/guild#get-guild-widget-image-widget-style-options
99 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
100 + */
101 +var GuildWidgetStyle;
102 +(function (GuildWidgetStyle) {
103 + GuildWidgetStyle["Banner1"] = "banner1";
104 + GuildWidgetStyle["Banner2"] = "banner2";
105 + GuildWidgetStyle["Banner3"] = "banner3";
106 + GuildWidgetStyle["Banner4"] = "banner4";
107 + GuildWidgetStyle["Shield"] = "shield";
108 +})(GuildWidgetStyle = exports.GuildWidgetStyle || (exports.GuildWidgetStyle = {}));
109 +//# sourceMappingURL=guild.js.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"guild.js","sourceRoot":"","sources":["guild.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAiGH;;;GAGG;AACH,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AAuB,CAAA;IACvB,+CAA+B,CAAA;IAC/B,yCAAyB,CAAA;IACzB,qCAAqB,CAAA;IACrB,2CAA2B,CAAA;IAC3B,iEAAiD,CAAA;AAClD,CAAC,EAfW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAevB;AAqED;;;GAGG;AACH,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACpC,qFAAU,CAAA;IACV,yEAAI,CAAA;AACL,CAAC,EAHW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAGpC;AAiCD;;;GAGG;AACH,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC3B,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,qCAAiB,CAAA;AAClB,CAAC,EANW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAM3B"}
...\ No newline at end of file ...\ No newline at end of file
1 +export * from './auditLog';
2 +export * from './channel';
3 +export * from './emoji';
4 +export * from './gateway';
5 +export * from './guild';
6 +export * from './invite';
7 +export * from './oauth2';
8 +export * from './permissions';
9 +export * from './teams';
10 +export * from './user';
11 +export * from './voice';
12 +export * from './webhook';
13 +//# sourceMappingURL=index.d.ts.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
...\ No newline at end of file ...\ No newline at end of file
1 +"use strict";
2 +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3 + if (k2 === undefined) k2 = k;
4 + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5 +}) : (function(o, m, k, k2) {
6 + if (k2 === undefined) k2 = k;
7 + o[k2] = m[k];
8 +}));
9 +var __exportStar = (this && this.__exportStar) || function(m, exports) {
10 + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11 +};
12 +Object.defineProperty(exports, "__esModule", { value: true });
13 +__exportStar(require("./auditLog"), exports);
14 +__exportStar(require("./channel"), exports);
15 +__exportStar(require("./emoji"), exports);
16 +__exportStar(require("./gateway"), exports);
17 +__exportStar(require("./guild"), exports);
18 +__exportStar(require("./invite"), exports);
19 +__exportStar(require("./oauth2"), exports);
20 +__exportStar(require("./permissions"), exports);
21 +__exportStar(require("./teams"), exports);
22 +__exportStar(require("./user"), exports);
23 +__exportStar(require("./voice"), exports);
24 +__exportStar(require("./webhook"), exports);
25 +//# sourceMappingURL=index.js.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA2B;AAC3B,4CAA0B;AAC1B,0CAAwB;AACxB,4CAA0B;AAC1B,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,gDAA8B;AAC9B,0CAAwB;AACxB,yCAAuB;AACvB,0CAAwB;AACxB,4CAA0B"}
...\ No newline at end of file ...\ No newline at end of file
1 +import mod from "./index.js";
2 +
3 +export default mod;
4 +export const ActivityFlags = mod.ActivityFlags;
5 +export const ActivityType = mod.ActivityType;
6 +export const AuditLogEvent = mod.AuditLogEvent;
7 +export const AuditLogOptionsType = mod.AuditLogOptionsType;
8 +export const ChannelType = mod.ChannelType;
9 +export const ConnectionVisibility = mod.ConnectionVisibility;
10 +export const EmbedType = mod.EmbedType;
11 +export const GuildDefaultMessageNotifications = mod.GuildDefaultMessageNotifications;
12 +export const GuildExplicitContentFilter = mod.GuildExplicitContentFilter;
13 +export const GuildFeature = mod.GuildFeature;
14 +export const GuildMFALevel = mod.GuildMFALevel;
15 +export const GuildPremiumTier = mod.GuildPremiumTier;
16 +export const GuildSystemChannelFlags = mod.GuildSystemChannelFlags;
17 +export const GuildVerificationLevel = mod.GuildVerificationLevel;
18 +export const GuildWidgetStyle = mod.GuildWidgetStyle;
19 +export const IntegrationExpireBehavior = mod.IntegrationExpireBehavior;
20 +export const InviteTargetUserType = mod.InviteTargetUserType;
21 +export const MessageActivityType = mod.MessageActivityType;
22 +export const MessageFlags = mod.MessageFlags;
23 +export const MessageType = mod.MessageType;
24 +export const OverwriteType = mod.OverwriteType;
25 +export const PermissionFlagsBits = mod.PermissionFlagsBits;
26 +export const PresenceUpdateStatus = mod.PresenceUpdateStatus;
27 +export const TeamMemberMembershipState = mod.TeamMemberMembershipState;
28 +export const UserFlags = mod.UserFlags;
29 +export const UserPremiumType = mod.UserPremiumType;
30 +export const WebhookType = mod.WebhookType;
1 +/**
2 + * Types extracted from https://discord.com/developers/docs/resources/invite
3 + */
4 +import type { APIPartialChannel } from './channel';
5 +import type { APIPartialGuild } from './guild';
6 +import type { APIUser } from './user';
7 +/**
8 + * https://discord.com/developers/docs/resources/invite#invite-object
9 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
10 + */
11 +export interface APIInvite {
12 + code: string;
13 + guild?: APIPartialGuild;
14 + channel?: Required<APIPartialChannel>;
15 + inviter?: APIUser;
16 + target_user?: APIUser;
17 + target_user_type?: InviteTargetUserType;
18 + approximate_presence_count?: number;
19 + approximate_member_count?: number;
20 +}
21 +/**
22 + * https://discord.com/developers/docs/resources/invite#invite-object-target-user-types
23 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
24 + */
25 +export declare enum InviteTargetUserType {
26 + STREAM = 1
27 +}
28 +/**
29 + * https://discord.com/developers/docs/resources/invite#invite-metadata-object
30 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
31 + */
32 +export interface APIExtendedInvite extends APIInvite {
33 + uses: number;
34 + max_uses: number;
35 + max_age: number;
36 + temporary: boolean;
37 + created_at: string;
38 +}
39 +//# sourceMappingURL=invite.d.ts.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"invite.d.ts","sourceRoot":"","sources":["invite.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEtC;;;GAGG;AACH,MAAM,WAAW,SAAS;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,OAAO,CAAC,EAAE,QAAQ,CAAC,iBAAiB,CAAC,CAAC;IACtC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gBAAgB,CAAC,EAAE,oBAAoB,CAAC;IACxC,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,wBAAwB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED;;;GAGG;AACH,oBAAY,oBAAoB;IAC/B,MAAM,IAAI;CACV;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAkB,SAAQ,SAAS;IACnD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACnB"}
...\ No newline at end of file ...\ No newline at end of file
1 +"use strict";
2 +/**
3 + * Types extracted from https://discord.com/developers/docs/resources/invite
4 + */
5 +Object.defineProperty(exports, "__esModule", { value: true });
6 +exports.InviteTargetUserType = void 0;
7 +/**
8 + * https://discord.com/developers/docs/resources/invite#invite-object-target-user-types
9 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
10 + */
11 +var InviteTargetUserType;
12 +(function (InviteTargetUserType) {
13 + InviteTargetUserType[InviteTargetUserType["STREAM"] = 1] = "STREAM";
14 +})(InviteTargetUserType = exports.InviteTargetUserType || (exports.InviteTargetUserType = {}));
15 +//# sourceMappingURL=invite.js.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"invite.js","sourceRoot":"","sources":["invite.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAqBH;;;GAGG;AACH,IAAY,oBAEX;AAFD,WAAY,oBAAoB;IAC/B,mEAAU,CAAA;AACX,CAAC,EAFW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAE/B"}
...\ No newline at end of file ...\ No newline at end of file
1 +/**
2 + * Types extracted from https://discord.com/developers/docs/topics/oauth2
3 + */
4 +import type { APITeam } from './teams';
5 +import type { APIUser } from './user';
6 +/**
7 + * https://discord.com/developers/docs/topics/oauth2#get-current-application-information-response-structure
8 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
9 + */
10 +export interface APIApplication {
11 + id: string;
12 + name: string;
13 + icon: string | null;
14 + description: string;
15 + rpc_origins?: string[];
16 + bot_public: boolean;
17 + bot_require_code_grant: boolean;
18 + owner: APIUser;
19 + summary: string;
20 + verify_key: string;
21 + team: APITeam | null;
22 + guild_id?: string;
23 + primary_sku_id?: string;
24 + slug?: string;
25 + cover_image?: string;
26 +}
27 +//# sourceMappingURL=oauth2.d.ts.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"oauth2.d.ts","sourceRoot":"","sources":["oauth2.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEtC;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,sBAAsB,EAAE,OAAO,CAAC;IAChC,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB"}
...\ No newline at end of file ...\ No newline at end of file
1 +"use strict";
2 +/**
3 + * Types extracted from https://discord.com/developers/docs/topics/oauth2
4 + */
5 +Object.defineProperty(exports, "__esModule", { value: true });
6 +//# sourceMappingURL=oauth2.js.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"oauth2.js","sourceRoot":"","sources":["oauth2.ts"],"names":[],"mappings":";AAAA;;GAEG"}
...\ No newline at end of file ...\ No newline at end of file
1 +/**
2 + * Types extracted from https://discord.com/developers/docs/topics/permissions
3 + */
4 +/**
5 + * https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags
6 + *
7 + * These flags are exported as `BigInt`s and NOT numbers. For most of them, you can
8 + * convert them in a number by wrapping it in `Number()`, however be careful as any
9 + * further bits added may cause issues if done so. Try to use BigInts as much as possible
10 + * or modules that can replicate them in some way.
11 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
12 + */
13 +export declare const PermissionFlagsBits: {
14 + readonly CREATE_INSTANT_INVITE: 1n;
15 + readonly KICK_MEMBERS: 2n;
16 + readonly BAN_MEMBERS: 4n;
17 + readonly ADMINISTRATOR: 8n;
18 + readonly MANAGE_CHANNELS: 16n;
19 + readonly MANAGE_GUILD: 32n;
20 + readonly ADD_REACTIONS: 64n;
21 + readonly VIEW_AUDIT_LOG: 128n;
22 + readonly PRIORITY_SPEAKER: 256n;
23 + readonly STREAM: 512n;
24 + readonly VIEW_CHANNEL: 1024n;
25 + readonly SEND_MESSAGES: 2048n;
26 + readonly SEND_TTS_MESSAGES: 4096n;
27 + readonly MANAGE_MESSAGES: 8192n;
28 + readonly EMBED_LINKS: 16384n;
29 + readonly ATTACH_FILES: 32768n;
30 + readonly READ_MESSAGE_HISTORY: 65536n;
31 + readonly MENTION_EVERYONE: 131072n;
32 + readonly USE_EXTERNAL_EMOJIS: 262144n;
33 + readonly VIEW_GUILD_INSIGHTS: 524288n;
34 + readonly CONNECT: 1048576n;
35 + readonly SPEAK: 2097152n;
36 + readonly MUTE_MEMBERS: 4194304n;
37 + readonly DEAFEN_MEMBERS: 8388608n;
38 + readonly MOVE_MEMBERS: 16777216n;
39 + readonly USE_VAD: 33554432n;
40 + readonly CHANGE_NICKNAME: 67108864n;
41 + readonly MANAGE_NICKNAMES: 134217728n;
42 + readonly MANAGE_ROLES: 268435456n;
43 + readonly MANAGE_WEBHOOKS: 536870912n;
44 + readonly MANAGE_EMOJIS: 1073741824n;
45 +};
46 +/**
47 + * https://discord.com/developers/docs/topics/permissions#role-object
48 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
49 + */
50 +export interface APIRole {
51 + id: string;
52 + name: string;
53 + color: number;
54 + hoist: boolean;
55 + position: number;
56 + /**
57 + * @deprecated Use `permissions_new` instead
58 + */
59 + permissions: number;
60 + permissions_new: string;
61 + managed: boolean;
62 + mentionable: boolean;
63 + tags?: APIRoleTags;
64 +}
65 +/**
66 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
67 + */
68 +export interface APIRoleTags {
69 + bot_id?: string;
70 + premium_subscriber?: null;
71 + integration_id?: string;
72 +}
73 +//# sourceMappingURL=permissions.d.ts.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["permissions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCtB,CAAC;AAQX;;;GAGG;AACH,MAAM,WAAW,OAAO;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,WAAW,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kBAAkB,CAAC,EAAE,IAAI,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB"}
...\ No newline at end of file ...\ No newline at end of file
1 +"use strict";
2 +/**
3 + * Types extracted from https://discord.com/developers/docs/topics/permissions
4 + */
5 +Object.defineProperty(exports, "__esModule", { value: true });
6 +exports.PermissionFlagsBits = void 0;
7 +/**
8 + * https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags
9 + *
10 + * These flags are exported as `BigInt`s and NOT numbers. For most of them, you can
11 + * convert them in a number by wrapping it in `Number()`, however be careful as any
12 + * further bits added may cause issues if done so. Try to use BigInts as much as possible
13 + * or modules that can replicate them in some way.
14 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
15 + */
16 +exports.PermissionFlagsBits = {
17 + CREATE_INSTANT_INVITE: 1n,
18 + KICK_MEMBERS: 2n,
19 + BAN_MEMBERS: 4n,
20 + ADMINISTRATOR: 8n,
21 + MANAGE_CHANNELS: 16n,
22 + MANAGE_GUILD: 32n,
23 + ADD_REACTIONS: 64n,
24 + VIEW_AUDIT_LOG: 128n,
25 + PRIORITY_SPEAKER: 256n,
26 + STREAM: 512n,
27 + VIEW_CHANNEL: 1024n,
28 + SEND_MESSAGES: 2048n,
29 + SEND_TTS_MESSAGES: 4096n,
30 + MANAGE_MESSAGES: 8192n,
31 + EMBED_LINKS: 16384n,
32 + ATTACH_FILES: 32768n,
33 + READ_MESSAGE_HISTORY: 65536n,
34 + MENTION_EVERYONE: 131072n,
35 + USE_EXTERNAL_EMOJIS: 262144n,
36 + VIEW_GUILD_INSIGHTS: 524288n,
37 + CONNECT: 1048576n,
38 + SPEAK: 2097152n,
39 + MUTE_MEMBERS: 4194304n,
40 + DEAFEN_MEMBERS: 8388608n,
41 + MOVE_MEMBERS: 16777216n,
42 + USE_VAD: 33554432n,
43 + CHANGE_NICKNAME: 67108864n,
44 + MANAGE_NICKNAMES: 134217728n,
45 + MANAGE_ROLES: 268435456n,
46 + MANAGE_WEBHOOKS: 536870912n,
47 + MANAGE_EMOJIS: 1073741824n,
48 +};
49 +/**
50 + * Freeze the object of bits, preventing any modifications to it.
51 + * @internal
52 + */
53 +Object.freeze(exports.PermissionFlagsBits);
54 +//# sourceMappingURL=permissions.js.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"permissions.js","sourceRoot":"","sources":["permissions.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH;;;;;;;;GAQG;AACU,QAAA,mBAAmB,GAAG;IAClC,qBAAqB,EAAE,EAAE;IACzB,YAAY,EAAE,EAAE;IAChB,WAAW,EAAE,EAAE;IACf,aAAa,EAAE,EAAE;IACjB,eAAe,EAAE,GAAG;IACpB,YAAY,EAAE,GAAG;IACjB,aAAa,EAAE,GAAG;IAClB,cAAc,EAAE,IAAI;IACpB,gBAAgB,EAAE,IAAI;IACtB,MAAM,EAAE,IAAI;IACZ,YAAY,EAAE,KAAK;IACnB,aAAa,EAAE,KAAK;IACpB,iBAAiB,EAAE,KAAK;IACxB,eAAe,EAAE,KAAK;IACtB,WAAW,EAAE,MAAM;IACnB,YAAY,EAAE,MAAM;IACpB,oBAAoB,EAAE,MAAM;IAC5B,gBAAgB,EAAE,OAAO;IACzB,mBAAmB,EAAE,OAAO;IAC5B,mBAAmB,EAAE,OAAO;IAC5B,OAAO,EAAE,QAAQ;IACjB,KAAK,EAAE,QAAQ;IACf,YAAY,EAAE,QAAQ;IACtB,cAAc,EAAE,QAAQ;IACxB,YAAY,EAAE,SAAS;IACvB,OAAO,EAAE,SAAS;IAClB,eAAe,EAAE,SAAS;IAC1B,gBAAgB,EAAE,UAAU;IAC5B,YAAY,EAAE,UAAU;IACxB,eAAe,EAAE,UAAU;IAC3B,aAAa,EAAE,WAAW;CACjB,CAAC;AAEX;;;GAGG;AACH,MAAM,CAAC,MAAM,CAAC,2BAAmB,CAAC,CAAC"}
...\ No newline at end of file ...\ No newline at end of file
1 +/**
2 + * Types extracted from https://discord.com/developers/docs/topics/teams
3 + */
4 +import type { APIUser } from './user';
5 +/**
6 + * https://discord.com/developers/docs/topics/teams#data-models-team-object
7 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
8 + */
9 +export interface APITeam {
10 + id: string;
11 + icon: string | null;
12 + members: APITeamMember[];
13 + owner_user_id: string;
14 +}
15 +/**
16 + * https://discord.com/developers/docs/topics/teams#data-models-team-members-object
17 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
18 + */
19 +export interface APITeamMember {
20 + membership_state: TeamMemberMembershipState;
21 + permissions: string[];
22 + team_id: string;
23 + user: APIUser;
24 +}
25 +/**
26 + * https://discord.com/developers/docs/topics/teams#data-models-membership-state-enum
27 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
28 + */
29 +export declare enum TeamMemberMembershipState {
30 + INVITED = 1,
31 + ACCEPTED = 2
32 +}
33 +//# sourceMappingURL=teams.d.ts.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"teams.d.ts","sourceRoot":"","sources":["teams.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEtC;;;GAGG;AACH,MAAM,WAAW,OAAO;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC7B,gBAAgB,EAAE,yBAAyB,CAAC;IAC5C,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;CACd;AAED;;;GAGG;AACH,oBAAY,yBAAyB;IACpC,OAAO,IAAI;IACX,QAAQ,IAAA;CACR"}
...\ No newline at end of file ...\ No newline at end of file
1 +"use strict";
2 +/**
3 + * Types extracted from https://discord.com/developers/docs/topics/teams
4 + */
5 +Object.defineProperty(exports, "__esModule", { value: true });
6 +exports.TeamMemberMembershipState = void 0;
7 +/**
8 + * https://discord.com/developers/docs/topics/teams#data-models-membership-state-enum
9 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
10 + */
11 +var TeamMemberMembershipState;
12 +(function (TeamMemberMembershipState) {
13 + TeamMemberMembershipState[TeamMemberMembershipState["INVITED"] = 1] = "INVITED";
14 + TeamMemberMembershipState[TeamMemberMembershipState["ACCEPTED"] = 2] = "ACCEPTED";
15 +})(TeamMemberMembershipState = exports.TeamMemberMembershipState || (exports.TeamMemberMembershipState = {}));
16 +//# sourceMappingURL=teams.js.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"teams.js","sourceRoot":"","sources":["teams.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AA0BH;;;GAGG;AACH,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACpC,+EAAW,CAAA;IACX,iFAAQ,CAAA;AACT,CAAC,EAHW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAGpC"}
...\ No newline at end of file ...\ No newline at end of file
1 +/**
2 + * Types extracted from https://discord.com/developers/docs/resources/user
3 + */
4 +import type { APIGuildIntegration } from './guild';
5 +/**
6 + * https://discord.com/developers/docs/resources/user#user-object
7 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
8 + */
9 +export interface APIUser {
10 + id: string;
11 + username: string;
12 + discriminator: string;
13 + avatar: string | null;
14 + bot?: boolean;
15 + system?: boolean;
16 + mfa_enabled?: boolean;
17 + locale?: string;
18 + verified?: boolean;
19 + email?: string | null;
20 + flags?: UserFlags;
21 + premium_type?: UserPremiumType;
22 + public_flags?: UserFlags;
23 +}
24 +/**
25 + * https://discord.com/developers/docs/resources/user#user-object-user-flags
26 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
27 + */
28 +export declare enum UserFlags {
29 + None = 0,
30 + DiscordEmployee = 1,
31 + PartneredServerOwner = 2,
32 + DiscordHypeSquadEvents = 4,
33 + BugHunterLevel1 = 8,
34 + HypeSquadHouseBravery = 64,
35 + HypeSquadHouseBrilliance = 128,
36 + HypeSquadHouseBalance = 256,
37 + EarlySupporter = 512,
38 + TeamUser = 1024,
39 + System = 4096,
40 + BugHunterLevel2 = 16384,
41 + VerifiedBot = 65536,
42 + EarlyVerifiedBotDeveloper = 131072
43 +}
44 +/**
45 + * https://discord.com/developers/docs/resources/user#user-object-premium-types
46 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
47 + */
48 +export declare enum UserPremiumType {
49 + None = 0,
50 + NitroClassic = 1,
51 + Nitro = 2
52 +}
53 +/**
54 + * https://discord.com/developers/docs/resources/user#connection-object
55 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
56 + */
57 +export interface APIConnection {
58 + id: string;
59 + name: string;
60 + type: string;
61 + revoked?: boolean;
62 + integrations?: Partial<APIGuildIntegration>[];
63 + verified: boolean;
64 + friend_sync: boolean;
65 + show_activity: boolean;
66 + visibility: ConnectionVisibility;
67 +}
68 +/**
69 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
70 + */
71 +export declare enum ConnectionVisibility {
72 + None = 0,
73 + Everyone = 1
74 +}
75 +//# sourceMappingURL=user.d.ts.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["user.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD;;;GAGG;AACH,MAAM,WAAW,OAAO;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,YAAY,CAAC,EAAE,eAAe,CAAC;IAC/B,YAAY,CAAC,EAAE,SAAS,CAAC;CACzB;AAED;;;GAGG;AACH,oBAAY,SAAS;IACpB,IAAI,IAAI;IACR,eAAe,IAAS;IACxB,oBAAoB,IAAS;IAC7B,sBAAsB,IAAS;IAC/B,eAAe,IAAS;IACxB,qBAAqB,KAAS;IAC9B,wBAAwB,MAAS;IACjC,qBAAqB,MAAS;IAC9B,cAAc,MAAS;IACvB,QAAQ,OAAU;IAClB,MAAM,OAAU;IAChB,eAAe,QAAU;IACzB,WAAW,QAAU;IACrB,yBAAyB,SAAU;CACnC;AAED;;;GAGG;AACH,oBAAY,eAAe;IAC1B,IAAI,IAAA;IACJ,YAAY,IAAA;IACZ,KAAK,IAAA;CACL;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,EAAE,CAAC;IAC9C,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,oBAAoB,CAAC;CACjC;AAED;;GAEG;AACH,oBAAY,oBAAoB;IAC/B,IAAI,IAAA;IACJ,QAAQ,IAAA;CACR"}
...\ No newline at end of file ...\ No newline at end of file
1 +"use strict";
2 +/**
3 + * Types extracted from https://discord.com/developers/docs/resources/user
4 + */
5 +Object.defineProperty(exports, "__esModule", { value: true });
6 +exports.ConnectionVisibility = exports.UserPremiumType = exports.UserFlags = void 0;
7 +/**
8 + * https://discord.com/developers/docs/resources/user#user-object-user-flags
9 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
10 + */
11 +var UserFlags;
12 +(function (UserFlags) {
13 + UserFlags[UserFlags["None"] = 0] = "None";
14 + UserFlags[UserFlags["DiscordEmployee"] = 1] = "DiscordEmployee";
15 + UserFlags[UserFlags["PartneredServerOwner"] = 2] = "PartneredServerOwner";
16 + UserFlags[UserFlags["DiscordHypeSquadEvents"] = 4] = "DiscordHypeSquadEvents";
17 + UserFlags[UserFlags["BugHunterLevel1"] = 8] = "BugHunterLevel1";
18 + UserFlags[UserFlags["HypeSquadHouseBravery"] = 64] = "HypeSquadHouseBravery";
19 + UserFlags[UserFlags["HypeSquadHouseBrilliance"] = 128] = "HypeSquadHouseBrilliance";
20 + UserFlags[UserFlags["HypeSquadHouseBalance"] = 256] = "HypeSquadHouseBalance";
21 + UserFlags[UserFlags["EarlySupporter"] = 512] = "EarlySupporter";
22 + UserFlags[UserFlags["TeamUser"] = 1024] = "TeamUser";
23 + UserFlags[UserFlags["System"] = 4096] = "System";
24 + UserFlags[UserFlags["BugHunterLevel2"] = 16384] = "BugHunterLevel2";
25 + UserFlags[UserFlags["VerifiedBot"] = 65536] = "VerifiedBot";
26 + UserFlags[UserFlags["EarlyVerifiedBotDeveloper"] = 131072] = "EarlyVerifiedBotDeveloper";
27 +})(UserFlags = exports.UserFlags || (exports.UserFlags = {}));
28 +/**
29 + * https://discord.com/developers/docs/resources/user#user-object-premium-types
30 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
31 + */
32 +var UserPremiumType;
33 +(function (UserPremiumType) {
34 + UserPremiumType[UserPremiumType["None"] = 0] = "None";
35 + UserPremiumType[UserPremiumType["NitroClassic"] = 1] = "NitroClassic";
36 + UserPremiumType[UserPremiumType["Nitro"] = 2] = "Nitro";
37 +})(UserPremiumType = exports.UserPremiumType || (exports.UserPremiumType = {}));
38 +/**
39 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
40 + */
41 +var ConnectionVisibility;
42 +(function (ConnectionVisibility) {
43 + ConnectionVisibility[ConnectionVisibility["None"] = 0] = "None";
44 + ConnectionVisibility[ConnectionVisibility["Everyone"] = 1] = "Everyone";
45 +})(ConnectionVisibility = exports.ConnectionVisibility || (exports.ConnectionVisibility = {}));
46 +//# sourceMappingURL=user.js.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"user.js","sourceRoot":"","sources":["user.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAwBH;;;GAGG;AACH,IAAY,SAeX;AAfD,WAAY,SAAS;IACpB,yCAAQ,CAAA;IACR,+DAAwB,CAAA;IACxB,yEAA6B,CAAA;IAC7B,6EAA+B,CAAA;IAC/B,+DAAwB,CAAA;IACxB,4EAA8B,CAAA;IAC9B,mFAAiC,CAAA;IACjC,6EAA8B,CAAA;IAC9B,+DAAuB,CAAA;IACvB,oDAAkB,CAAA;IAClB,gDAAgB,CAAA;IAChB,mEAAyB,CAAA;IACzB,2DAAqB,CAAA;IACrB,wFAAmC,CAAA;AACpC,CAAC,EAfW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAepB;AAED;;;GAGG;AACH,IAAY,eAIX;AAJD,WAAY,eAAe;IAC1B,qDAAI,CAAA;IACJ,qEAAY,CAAA;IACZ,uDAAK,CAAA;AACN,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B;AAkBD;;GAEG;AACH,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC/B,+DAAI,CAAA;IACJ,uEAAQ,CAAA;AACT,CAAC,EAHW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAG/B"}
...\ No newline at end of file ...\ No newline at end of file
1 +/**
2 + * Types extracted from https://discord.com/developers/docs/resources/voice
3 + */
4 +import type { APIGuildMember } from './guild';
5 +/**
6 + * https://discord.com/developers/docs/resources/voice#voice-state-object
7 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
8 + */
9 +export interface GatewayVoiceState {
10 + guild_id?: string;
11 + channel_id: string | null;
12 + user_id: string;
13 + member?: APIGuildMember;
14 + session_id: string;
15 + deaf: boolean;
16 + mute: boolean;
17 + self_deaf: boolean;
18 + self_mute: boolean;
19 + self_stream?: boolean;
20 + self_video: boolean;
21 + suppress: boolean;
22 +}
23 +/**
24 + * https://discord.com/developers/docs/resources/voice#voice-region-object
25 + * @deprecated API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
26 + */
27 +export interface APIVoiceRegion {
28 + id: string;
29 + name: string;
30 + vip: boolean;
31 + optimal: boolean;
32 + deprecated: boolean;
33 + custom: boolean;
34 +}
35 +//# sourceMappingURL=voice.d.ts.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"voice.d.ts","sourceRoot":"","sources":["voice.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;CAClB;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,OAAO,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;CAChB"}
...\ No newline at end of file ...\ No newline at end of file
1 +"use strict";
2 +/**
3 + * Types extracted from https://discord.com/developers/docs/resources/voice
4 + */
5 +Object.defineProperty(exports, "__esModule", { value: true });
6 +//# sourceMappingURL=voice.js.map
...\ No newline at end of file ...\ No newline at end of file
1 +{"version":3,"file":"voice.js","sourceRoot":"","sources":["voice.ts"],"names":[],"mappings":";AAAA;;GAEG"}
...\ No newline at end of file ...\ No newline at end of file
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.