mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 05:26:07 +00:00
feat: update exports
This commit is contained in:
parent
4c05c25a41
commit
71a145612d
36
package.json
36
package.json
@ -5,7 +5,9 @@
|
|||||||
"main": "./lib/index.js",
|
"main": "./lib/index.js",
|
||||||
"module": "./lib/index.js",
|
"module": "./lib/index.js",
|
||||||
"types": "./lib/index.d.ts",
|
"types": "./lib/index.d.ts",
|
||||||
"files": ["lib/**"],
|
"files": [
|
||||||
|
"lib/**"
|
||||||
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc --outDir ./lib",
|
"build": "tsc --outDir ./lib",
|
||||||
"prepublishOnly": "npm run build",
|
"prepublishOnly": "npm run build",
|
||||||
@ -25,7 +27,10 @@
|
|||||||
"ws": "^8.16.0"
|
"ws": "^8.16.0"
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*.ts": ["biome check --apply", "biome format --write"]
|
"*.ts": [
|
||||||
|
"biome check --apply",
|
||||||
|
"biome format --write"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@biomejs/biome": "1.6.0",
|
"@biomejs/biome": "1.6.0",
|
||||||
@ -50,7 +55,13 @@
|
|||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/tiramisulabs/seyfert"
|
"url": "https://github.com/tiramisulabs/seyfert"
|
||||||
},
|
},
|
||||||
"keywords": ["api", "discord", "bots", "typescript", "botdev"],
|
"keywords": [
|
||||||
|
"api",
|
||||||
|
"discord",
|
||||||
|
"bots",
|
||||||
|
"typescript",
|
||||||
|
"botdev"
|
||||||
|
],
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
},
|
||||||
@ -59,5 +70,22 @@
|
|||||||
"name": "socram03",
|
"name": "socram03",
|
||||||
"url": "https://github.com/socram03"
|
"url": "https://github.com/socram03"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"exports": {
|
||||||
|
".": "./lib/index.js",
|
||||||
|
"./api": "./lib/api/index.js",
|
||||||
|
"./builders": "./lib/builders/index.js",
|
||||||
|
"./cache": "./lib/cache/index.js",
|
||||||
|
"./client": "./lib/client/index.js",
|
||||||
|
"./commands": "./lib/commands/index.js",
|
||||||
|
"./common": "./lib/common/index.js",
|
||||||
|
"./components": "./lib/components/index.js",
|
||||||
|
"./events": "./lib/events/index.js",
|
||||||
|
"./langs": "./lib/langs/index.js",
|
||||||
|
"./structures": "./lib/structures/index.js",
|
||||||
|
"./websocket": "./lib/websocket/index.js",
|
||||||
|
"./collection": "./lib/collection.js",
|
||||||
|
"./package.json": "./package.json",
|
||||||
|
"./dapi": "./lib/types/index.js"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,9 +23,9 @@ import type {
|
|||||||
RESTPutAPIApplicationRoleConnectionMetadataJSONBody,
|
RESTPutAPIApplicationRoleConnectionMetadataJSONBody,
|
||||||
RESTPutAPIApplicationRoleConnectionMetadataResult,
|
RESTPutAPIApplicationRoleConnectionMetadataResult,
|
||||||
RESTPutAPIGuildApplicationCommandsPermissionsResult,
|
RESTPutAPIGuildApplicationCommandsPermissionsResult,
|
||||||
} from '../../common';
|
} from 'discord-api-types/v10';
|
||||||
import type { RestArguments } from '../api';
|
|
||||||
import type { ProxyRequestMethod } from '../Router';
|
import type { ProxyRequestMethod } from '../Router';
|
||||||
|
import type { RestArguments } from '../api';
|
||||||
|
|
||||||
export interface ApplicationRoutes {
|
export interface ApplicationRoutes {
|
||||||
applications: (id: string) => {
|
applications: (id: string) => {
|
||||||
|
@ -52,9 +52,9 @@ import type {
|
|||||||
RESTPutAPIChannelRecipientJSONBody,
|
RESTPutAPIChannelRecipientJSONBody,
|
||||||
RESTPutAPIChannelRecipientResult,
|
RESTPutAPIChannelRecipientResult,
|
||||||
RESTPutAPIChannelThreadMembersResult,
|
RESTPutAPIChannelThreadMembersResult,
|
||||||
} from '../../common';
|
} from 'discord-api-types/v10';
|
||||||
import type { RestArguments } from '../api';
|
|
||||||
import type { ProxyRequestMethod } from '../Router';
|
import type { ProxyRequestMethod } from '../Router';
|
||||||
|
import type { RestArguments } from '../api';
|
||||||
|
|
||||||
export interface ChannelRoutes {
|
export interface ChannelRoutes {
|
||||||
channels(id: string): {
|
channels(id: string): {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import type { RESTGetAPIGatewayBotResult, RESTGetAPIGatewayResult } from '../../common';
|
import type { RESTGetAPIGatewayBotResult, RESTGetAPIGatewayResult } from 'discord-api-types/v10';
|
||||||
import type { RestArguments } from '../api';
|
|
||||||
import type { ProxyRequestMethod } from '../Router';
|
import type { ProxyRequestMethod } from '../Router';
|
||||||
|
import type { RestArguments } from '../api';
|
||||||
|
|
||||||
export interface GatewayRoutes {
|
export interface GatewayRoutes {
|
||||||
gateway: {
|
gateway: {
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
import type {
|
import type {
|
||||||
APIThreadChannel,
|
APIThreadChannel,
|
||||||
Identify,
|
|
||||||
OmitInsert,
|
|
||||||
RESTDeleteAPIAutoModerationRuleResult,
|
RESTDeleteAPIAutoModerationRuleResult,
|
||||||
RESTDeleteAPIGuildBanResult,
|
RESTDeleteAPIGuildBanResult,
|
||||||
RESTDeleteAPIGuildEmojiResult,
|
RESTDeleteAPIGuildEmojiResult,
|
||||||
@ -112,7 +110,8 @@ import type {
|
|||||||
RESTPutAPIGuildMemberResult,
|
RESTPutAPIGuildMemberResult,
|
||||||
RESTPutAPIGuildMemberRoleResult,
|
RESTPutAPIGuildMemberRoleResult,
|
||||||
RESTPutAPIGuildTemplateSyncResult,
|
RESTPutAPIGuildTemplateSyncResult,
|
||||||
} from '../../common';
|
} from 'discord-api-types/v10';
|
||||||
|
import type { Identify, OmitInsert } from '../../common';
|
||||||
import type { ProxyRequestMethod } from '../Router';
|
import type { ProxyRequestMethod } from '../Router';
|
||||||
import type { RestArguments } from '../api';
|
import type { RestArguments } from '../api';
|
||||||
import type { RawFile } from '../shared';
|
import type { RawFile } from '../shared';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import type { RESTPostAPIInteractionCallbackJSONBody } from '../../common';
|
import type { RESTPostAPIInteractionCallbackJSONBody } from 'discord-api-types/v10';
|
||||||
import type { RestArguments } from '../api';
|
|
||||||
import type { ProxyRequestMethod } from '../Router';
|
import type { ProxyRequestMethod } from '../Router';
|
||||||
|
import type { RestArguments } from '../api';
|
||||||
|
|
||||||
export interface InteractionRoutes {
|
export interface InteractionRoutes {
|
||||||
interactions: (id: string) => (token: string) => {
|
interactions: (id: string) => (token: string) => {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import type { RESTDeleteAPIInviteResult, RESTGetAPIInviteQuery, RESTGetAPIInviteResult } from '../../common';
|
import type { RESTDeleteAPIInviteResult, RESTGetAPIInviteQuery, RESTGetAPIInviteResult } from 'discord-api-types/v10';
|
||||||
import type { RestArguments } from '../api';
|
|
||||||
import type { ProxyRequestMethod } from '../Router';
|
import type { ProxyRequestMethod } from '../Router';
|
||||||
|
import type { RestArguments } from '../api';
|
||||||
|
|
||||||
export interface InviteRoutes {
|
export interface InviteRoutes {
|
||||||
invites(id: string): {
|
invites(id: string): {
|
||||||
|
@ -5,9 +5,9 @@ import type {
|
|||||||
RESTPatchAPIStageInstanceResult,
|
RESTPatchAPIStageInstanceResult,
|
||||||
RESTPostAPIStageInstanceJSONBody,
|
RESTPostAPIStageInstanceJSONBody,
|
||||||
RESTPostAPIStageInstanceResult,
|
RESTPostAPIStageInstanceResult,
|
||||||
} from '../../common';
|
} from 'discord-api-types/v10';
|
||||||
import type { RestArguments } from '../api';
|
|
||||||
import type { ProxyRequestMethod } from '../Router';
|
import type { ProxyRequestMethod } from '../Router';
|
||||||
|
import type { RestArguments } from '../api';
|
||||||
|
|
||||||
export interface StageInstanceRoutes {
|
export interface StageInstanceRoutes {
|
||||||
'stage-instances': {
|
'stage-instances': {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import type { RESTGetAPIStickerResult, RESTGetNitroStickerPacksResult } from '../../common';
|
import type { RESTGetAPIStickerResult, RESTGetNitroStickerPacksResult } from 'discord-api-types/v10';
|
||||||
import type { RestArguments } from '../api';
|
|
||||||
import type { ProxyRequestMethod } from '../Router';
|
import type { ProxyRequestMethod } from '../Router';
|
||||||
|
import type { RestArguments } from '../api';
|
||||||
|
|
||||||
export interface StickerRoutes {
|
export interface StickerRoutes {
|
||||||
stickers(id: string): {
|
stickers(id: string): {
|
||||||
|
@ -13,9 +13,9 @@ import type {
|
|||||||
RESTPostAPICurrentUserCreateDMChannelJSONBody,
|
RESTPostAPICurrentUserCreateDMChannelJSONBody,
|
||||||
RESTPutAPICurrentUserApplicationRoleConnectionJSONBody,
|
RESTPutAPICurrentUserApplicationRoleConnectionJSONBody,
|
||||||
RESTPutAPICurrentUserApplicationRoleConnectionResult,
|
RESTPutAPICurrentUserApplicationRoleConnectionResult,
|
||||||
} from '../../common';
|
} from 'discord-api-types/v10';
|
||||||
import type { RestArguments } from '../api';
|
|
||||||
import type { ProxyRequestMethod } from '../Router';
|
import type { ProxyRequestMethod } from '../Router';
|
||||||
|
import type { RestArguments } from '../api';
|
||||||
|
|
||||||
export interface UserRoutes {
|
export interface UserRoutes {
|
||||||
users: {
|
users: {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import type { RESTGetAPIVoiceRegionsResult } from '../../common';
|
import type { RESTGetAPIVoiceRegionsResult } from 'discord-api-types/v10';
|
||||||
import type { RestArguments } from '../api';
|
|
||||||
import type { ProxyRequestMethod } from '../Router';
|
import type { ProxyRequestMethod } from '../Router';
|
||||||
|
import type { RestArguments } from '../api';
|
||||||
|
|
||||||
export interface VoiceRoutes {
|
export interface VoiceRoutes {
|
||||||
voice: {
|
voice: {
|
||||||
|
@ -21,9 +21,9 @@ import type {
|
|||||||
RESTPostAPIWebhookWithTokenSlackResult,
|
RESTPostAPIWebhookWithTokenSlackResult,
|
||||||
RESTPostAPIWebhookWithTokenSlackWaitResult,
|
RESTPostAPIWebhookWithTokenSlackWaitResult,
|
||||||
RESTPostAPIWebhookWithTokenWaitResult,
|
RESTPostAPIWebhookWithTokenWaitResult,
|
||||||
} from '../../common';
|
} from 'discord-api-types/v10';
|
||||||
import type { RestArguments } from '../api';
|
|
||||||
import type { ProxyRequestMethod } from '../Router';
|
import type { ProxyRequestMethod } from '../Router';
|
||||||
|
import type { RestArguments } from '../api';
|
||||||
|
|
||||||
export interface WebhookRoutes {
|
export interface WebhookRoutes {
|
||||||
webhooks(id: string): {
|
webhooks(id: string): {
|
||||||
|
@ -3,8 +3,8 @@ import {
|
|||||||
type APIActionRowComponent,
|
type APIActionRowComponent,
|
||||||
type APIActionRowComponentTypes,
|
type APIActionRowComponentTypes,
|
||||||
type APIMessageActionRowComponent,
|
type APIMessageActionRowComponent,
|
||||||
type RestOrArray,
|
} from 'discord-api-types/v10';
|
||||||
} from '../common';
|
import type { RestOrArray } from '../common/types/util';
|
||||||
import { BaseComponentBuilder } from './Base';
|
import { BaseComponentBuilder } from './Base';
|
||||||
import { fromComponent } from './index';
|
import { fromComponent } from './index';
|
||||||
import type { BuilderComponents, FixedComponents } from './types';
|
import type { BuilderComponents, FixedComponents } from './types';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { APIBaseComponent, ComponentType } from '../common';
|
import type { APIBaseComponent, ComponentType } from 'discord-api-types/v10';
|
||||||
|
|
||||||
export abstract class BaseComponentBuilder<
|
export abstract class BaseComponentBuilder<
|
||||||
TYPE extends Partial<APIBaseComponent<ComponentType>> = APIBaseComponent<ComponentType>,
|
TYPE extends Partial<APIBaseComponent<ComponentType>> = APIBaseComponent<ComponentType>,
|
||||||
|
@ -1,13 +1,12 @@
|
|||||||
import { throwError } from '..';
|
|
||||||
import {
|
import {
|
||||||
ComponentType,
|
|
||||||
type APIButtonComponentWithCustomId,
|
type APIButtonComponentWithCustomId,
|
||||||
type APIButtonComponentWithURL,
|
type APIButtonComponentWithURL,
|
||||||
type APIMessageComponentEmoji,
|
type APIMessageComponentEmoji,
|
||||||
type ButtonStyle,
|
type ButtonStyle,
|
||||||
type EmojiResolvable,
|
ComponentType,
|
||||||
type When,
|
} from 'discord-api-types/v10';
|
||||||
} from '../common';
|
import { throwError } from '..';
|
||||||
|
import type { EmojiResolvable, When } from '../common';
|
||||||
import { resolvePartialEmoji } from '../structures/extra/functions';
|
import { resolvePartialEmoji } from '../structures/extra/functions';
|
||||||
|
|
||||||
export type ButtonStylesForID = Exclude<ButtonStyle, ButtonStyle.Link>;
|
export type ButtonStylesForID = Exclude<ButtonStyle, ButtonStyle.Link>;
|
||||||
|
@ -1,14 +1,5 @@
|
|||||||
import {
|
import type { APIEmbed, APIEmbedAuthor, APIEmbedField, APIEmbedFooter } from 'discord-api-types/v10';
|
||||||
resolveColor,
|
import { resolveColor, toSnakeCase, type ColorResolvable, type ObjectToLower, type RestOrArray } from '../common';
|
||||||
toSnakeCase,
|
|
||||||
type APIEmbed,
|
|
||||||
type APIEmbedAuthor,
|
|
||||||
type APIEmbedField,
|
|
||||||
type APIEmbedFooter,
|
|
||||||
type ColorResolvable,
|
|
||||||
type ObjectToLower,
|
|
||||||
type RestOrArray,
|
|
||||||
} from '../common';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a message embed.
|
* Represents a message embed.
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import {
|
import {
|
||||||
ComponentType,
|
|
||||||
type APIActionRowComponent,
|
type APIActionRowComponent,
|
||||||
type APIModalInteractionResponseCallbackData,
|
type APIModalInteractionResponseCallbackData,
|
||||||
type APITextInputComponent,
|
type APITextInputComponent,
|
||||||
type RestOrArray,
|
ComponentType,
|
||||||
type TextInputStyle,
|
type TextInputStyle,
|
||||||
} from '../common';
|
} from 'discord-api-types/v10';
|
||||||
|
import type { RestOrArray } from '../common';
|
||||||
import type { ActionRow } from './ActionRow';
|
import type { ActionRow } from './ActionRow';
|
||||||
import { BaseComponentBuilder, type OptionValuesLength } from './Base';
|
import { BaseComponentBuilder, type OptionValuesLength } from './Base';
|
||||||
import { fromComponent } from './index';
|
import { fromComponent } from './index';
|
||||||
|
@ -1,7 +1,4 @@
|
|||||||
import { throwError } from '..';
|
|
||||||
import {
|
import {
|
||||||
ComponentType,
|
|
||||||
SelectMenuDefaultValueType,
|
|
||||||
type APIChannelSelectComponent,
|
type APIChannelSelectComponent,
|
||||||
type APIMentionableSelectComponent,
|
type APIMentionableSelectComponent,
|
||||||
type APIMessageComponentEmoji,
|
type APIMessageComponentEmoji,
|
||||||
@ -12,10 +9,11 @@ import {
|
|||||||
type APIStringSelectComponent,
|
type APIStringSelectComponent,
|
||||||
type APIUserSelectComponent,
|
type APIUserSelectComponent,
|
||||||
type ChannelType,
|
type ChannelType,
|
||||||
type EmojiResolvable,
|
ComponentType,
|
||||||
type RestOrArray,
|
SelectMenuDefaultValueType,
|
||||||
type ToClass,
|
} from 'discord-api-types/v10';
|
||||||
} from '../common';
|
import { throwError } from '..';
|
||||||
|
import type { EmojiResolvable, RestOrArray, ToClass } from '../common';
|
||||||
import type {
|
import type {
|
||||||
ChannelSelectMenuInteraction,
|
ChannelSelectMenuInteraction,
|
||||||
ComponentInteraction,
|
ComponentInteraction,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { ComponentType, type APIActionRowComponent, type APIActionRowComponentTypes } from '../common';
|
import { type APIActionRowComponent, type APIActionRowComponentTypes, ComponentType } from 'discord-api-types/v10';
|
||||||
import { ActionRow } from './ActionRow';
|
import { ActionRow } from './ActionRow';
|
||||||
import { Button } from './Button';
|
import { Button } from './Button';
|
||||||
import { TextInput } from './Modal';
|
import { TextInput } from './Modal';
|
||||||
|
19
src/cache/index.ts
vendored
19
src/cache/index.ts
vendored
@ -1,11 +1,4 @@
|
|||||||
import type {
|
import type { If } from '../common';
|
||||||
APIEmoji,
|
|
||||||
APISticker,
|
|
||||||
APIThreadChannel,
|
|
||||||
GatewayDispatchPayload,
|
|
||||||
GatewayReadyDispatchData,
|
|
||||||
If,
|
|
||||||
} from '../common';
|
|
||||||
|
|
||||||
import type { Adapter } from './adapters';
|
import type { Adapter } from './adapters';
|
||||||
|
|
||||||
@ -22,8 +15,16 @@ import { Stickers } from './resources/stickers';
|
|||||||
import { Threads } from './resources/threads';
|
import { Threads } from './resources/threads';
|
||||||
import { VoiceStates } from './resources/voice-states';
|
import { VoiceStates } from './resources/voice-states';
|
||||||
|
|
||||||
|
import {
|
||||||
|
type APIEmoji,
|
||||||
|
type APISticker,
|
||||||
|
type APIThreadChannel,
|
||||||
|
ChannelType,
|
||||||
|
type GatewayDispatchPayload,
|
||||||
|
GatewayIntentBits,
|
||||||
|
type GatewayReadyDispatchData,
|
||||||
|
} from 'discord-api-types/v10';
|
||||||
import type { InternalOptions, UsingClient } from '../commands';
|
import type { InternalOptions, UsingClient } from '../commands';
|
||||||
import { ChannelType, GatewayIntentBits } from '../common';
|
|
||||||
import { Overwrites } from './resources/overwrites';
|
import { Overwrites } from './resources/overwrites';
|
||||||
|
|
||||||
export type InferAsyncCache = InternalOptions extends { asyncCache: infer P } ? P : false;
|
export type InferAsyncCache = InternalOptions extends { asyncCache: infer P } ? P : false;
|
||||||
|
3
src/cache/resources/default/base.ts
vendored
3
src/cache/resources/default/base.ts
vendored
@ -1,6 +1,7 @@
|
|||||||
|
import type { GatewayIntentBits } from 'discord-api-types/v10';
|
||||||
import type { BaseClient } from '../../../client/base';
|
import type { BaseClient } from '../../../client/base';
|
||||||
import type { UsingClient } from '../../../commands';
|
import type { UsingClient } from '../../../commands';
|
||||||
import { fakePromise, type GatewayIntentBits } from '../../../common';
|
import { fakePromise } from '../../../common';
|
||||||
import type { Cache, ReturnCache } from '../../index';
|
import type { Cache, ReturnCache } from '../../index';
|
||||||
|
|
||||||
export class BaseResource<T = any> {
|
export class BaseResource<T = any> {
|
||||||
|
3
src/cache/resources/default/guild-based.ts
vendored
3
src/cache/resources/default/guild-based.ts
vendored
@ -1,6 +1,7 @@
|
|||||||
|
import type { GatewayIntentBits } from 'discord-api-types/v10';
|
||||||
import type { BaseClient } from '../../../client/base';
|
import type { BaseClient } from '../../../client/base';
|
||||||
import type { UsingClient } from '../../../commands';
|
import type { UsingClient } from '../../../commands';
|
||||||
import { fakePromise, type GatewayIntentBits } from '../../../common';
|
import { fakePromise } from '../../../common';
|
||||||
import type { Cache, ReturnCache } from '../../index';
|
import type { Cache, ReturnCache } from '../../index';
|
||||||
|
|
||||||
export class GuildBasedResource<T = any> {
|
export class GuildBasedResource<T = any> {
|
||||||
|
3
src/cache/resources/default/guild-related.ts
vendored
3
src/cache/resources/default/guild-related.ts
vendored
@ -1,6 +1,7 @@
|
|||||||
|
import type { GatewayIntentBits } from 'discord-api-types/v10';
|
||||||
import type { BaseClient } from '../../../client/base';
|
import type { BaseClient } from '../../../client/base';
|
||||||
import type { UsingClient } from '../../../commands';
|
import type { UsingClient } from '../../../commands';
|
||||||
import { fakePromise, type GatewayIntentBits } from '../../../common';
|
import { fakePromise } from '../../../common';
|
||||||
import type { Cache, ReturnCache } from '../../index';
|
import type { Cache, ReturnCache } from '../../index';
|
||||||
|
|
||||||
export class GuildRelatedResource<T = any> {
|
export class GuildRelatedResource<T = any> {
|
||||||
|
3
src/cache/resources/emojis.ts
vendored
3
src/cache/resources/emojis.ts
vendored
@ -1,5 +1,6 @@
|
|||||||
|
import type { APIEmoji } from 'discord-api-types/v10';
|
||||||
import type { ReturnCache } from '../..';
|
import type { ReturnCache } from '../..';
|
||||||
import { fakePromise, type APIEmoji } from '../../common';
|
import { fakePromise } from '../../common';
|
||||||
import { GuildEmoji } from '../../structures';
|
import { GuildEmoji } from '../../structures';
|
||||||
import { GuildRelatedResource } from './default/guild-related';
|
import { GuildRelatedResource } from './default/guild-related';
|
||||||
|
|
||||||
|
3
src/cache/resources/guilds.ts
vendored
3
src/cache/resources/guilds.ts
vendored
@ -1,5 +1,6 @@
|
|||||||
|
import type { APIGuild } from 'discord-api-types/v10';
|
||||||
import type { Cache, ReturnCache } from '..';
|
import type { Cache, ReturnCache } from '..';
|
||||||
import { fakePromise, type APIGuild } from '../../common';
|
import { fakePromise } from '../../common';
|
||||||
import { Guild } from '../../structures';
|
import { Guild } from '../../structures';
|
||||||
import { BaseResource } from './default/base';
|
import { BaseResource } from './default/base';
|
||||||
|
|
||||||
|
2
src/cache/resources/presence.ts
vendored
2
src/cache/resources/presence.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
import type { GatewayPresenceUpdate } from '../../common';
|
import type { GatewayPresenceUpdate } from 'discord-api-types/v10';
|
||||||
import { GuildRelatedResource } from './default/guild-related';
|
import { GuildRelatedResource } from './default/guild-related';
|
||||||
|
|
||||||
export class Presences extends GuildRelatedResource<PresenceResource> {
|
export class Presences extends GuildRelatedResource<PresenceResource> {
|
||||||
|
2
src/cache/resources/stage-instances.ts
vendored
2
src/cache/resources/stage-instances.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
import type { APIStageInstance } from '../../common';
|
import type { APIStageInstance } from 'discord-api-types/v10';
|
||||||
import { GuildRelatedResource } from './default/guild-related';
|
import { GuildRelatedResource } from './default/guild-related';
|
||||||
|
|
||||||
export class StageInstances extends GuildRelatedResource<APIStageInstance> {
|
export class StageInstances extends GuildRelatedResource<APIStageInstance> {
|
||||||
|
3
src/cache/resources/stickers.ts
vendored
3
src/cache/resources/stickers.ts
vendored
@ -1,5 +1,6 @@
|
|||||||
|
import type { APISticker } from 'discord-api-types/v10';
|
||||||
import type { ReturnCache } from '../..';
|
import type { ReturnCache } from '../..';
|
||||||
import { fakePromise, type APISticker } from '../../common';
|
import { fakePromise } from '../../common';
|
||||||
import { Sticker } from '../../structures';
|
import { Sticker } from '../../structures';
|
||||||
import { GuildRelatedResource } from './default/guild-related';
|
import { GuildRelatedResource } from './default/guild-related';
|
||||||
|
|
||||||
|
3
src/cache/resources/threads.ts
vendored
3
src/cache/resources/threads.ts
vendored
@ -1,5 +1,6 @@
|
|||||||
|
import type { APIThreadChannel } from 'discord-api-types/v10';
|
||||||
import type { ReturnCache } from '../..';
|
import type { ReturnCache } from '../..';
|
||||||
import { fakePromise, type APIThreadChannel } from '../../common';
|
import { fakePromise } from '../../common';
|
||||||
import { ThreadChannel } from '../../structures';
|
import { ThreadChannel } from '../../structures';
|
||||||
import { GuildRelatedResource } from './default/guild-related';
|
import { GuildRelatedResource } from './default/guild-related';
|
||||||
|
|
||||||
|
3
src/cache/resources/users.ts
vendored
3
src/cache/resources/users.ts
vendored
@ -1,5 +1,6 @@
|
|||||||
|
import type { APIUser } from 'discord-api-types/v10';
|
||||||
import type { ReturnCache } from '../..';
|
import type { ReturnCache } from '../..';
|
||||||
import { fakePromise, type APIUser } from '../../common';
|
import { fakePromise } from '../../common';
|
||||||
import { User } from '../../structures';
|
import { User } from '../../structures';
|
||||||
import { BaseResource } from './default/base';
|
import { BaseResource } from './default/base';
|
||||||
|
|
||||||
|
@ -20,10 +20,10 @@ import {
|
|||||||
WebhookShorter,
|
WebhookShorter,
|
||||||
filterSplit,
|
filterSplit,
|
||||||
magicImport,
|
magicImport,
|
||||||
type LocaleString,
|
|
||||||
type MakeRequired,
|
type MakeRequired,
|
||||||
} from '../common';
|
} from '../common';
|
||||||
|
|
||||||
|
import type { LocaleString } from 'discord-api-types/rest/v10';
|
||||||
import type { DeepPartial, IntentStrings, OmitInsert, When } from '../common/types/util';
|
import type { DeepPartial, IntentStrings, OmitInsert, When } from '../common/types/util';
|
||||||
import type { ComponentCommand, ModalCommand } from '../components';
|
import type { ComponentCommand, ModalCommand } from '../components';
|
||||||
import { ComponentHandler, type ComponentHandlerLike } from '../components/handler';
|
import { ComponentHandler, type ComponentHandlerLike } from '../components/handler';
|
||||||
|
@ -1,14 +1,7 @@
|
|||||||
|
import { type GatewayDispatchPayload, GatewayIntentBits, type GatewayPresenceUpdateData } from 'discord-api-types/v10';
|
||||||
import { parentPort, workerData } from 'node:worker_threads';
|
import { parentPort, workerData } from 'node:worker_threads';
|
||||||
import type { ClientEvent, Command, CommandContext, EventHandlerLike, Message, SubCommand } from '..';
|
import type { ClientEvent, Command, CommandContext, EventHandlerLike, Message, SubCommand } from '..';
|
||||||
import {
|
import type { DeepPartial, If, WatcherPayload, WatcherSendToShard } from '../common';
|
||||||
GatewayIntentBits,
|
|
||||||
type DeepPartial,
|
|
||||||
type GatewayDispatchPayload,
|
|
||||||
type GatewayPresenceUpdateData,
|
|
||||||
type If,
|
|
||||||
type WatcherPayload,
|
|
||||||
type WatcherSendToShard,
|
|
||||||
} from '../common';
|
|
||||||
import { EventHandler } from '../events';
|
import { EventHandler } from '../events';
|
||||||
import { ClientUser } from '../structures';
|
import { ClientUser } from '../structures';
|
||||||
import { ShardManager, properties, type ShardManagerOptions } from '../websocket';
|
import { ShardManager, properties, type ShardManagerOptions } from '../websocket';
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
|
import { type APIInteraction, InteractionResponseType, InteractionType } from 'discord-api-types/v10';
|
||||||
import { filetypeinfo } from 'magic-bytes.js';
|
import { filetypeinfo } from 'magic-bytes.js';
|
||||||
import type { HttpRequest, HttpResponse } from 'uWebSockets.js';
|
import type { HttpRequest, HttpResponse } from 'uWebSockets.js';
|
||||||
import { OverwrittenMimeTypes } from '../api';
|
import { OverwrittenMimeTypes } from '../api';
|
||||||
import { isBufferLike } from '../api/utils/utils';
|
import { isBufferLike } from '../api/utils/utils';
|
||||||
import type { APIInteraction, DeepPartial } from '../common';
|
import type { DeepPartial } from '../common';
|
||||||
import { InteractionResponseType, InteractionType } from '../common';
|
|
||||||
import type { BaseClientOptions, InternalRuntimeConfigHTTP, StartOptions } from './base';
|
import type { BaseClientOptions, InternalRuntimeConfigHTTP, StartOptions } from './base';
|
||||||
import { BaseClient } from './base';
|
import { BaseClient } from './base';
|
||||||
import { onInteractionCreate } from './oninteractioncreate';
|
import { onInteractionCreate } from './oninteractioncreate';
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
|
import { type GatewayDispatchPayload, GatewayIntentBits, type GatewaySendPayload } from 'discord-api-types/v10';
|
||||||
import { randomUUID } from 'node:crypto';
|
import { randomUUID } from 'node:crypto';
|
||||||
import { parentPort as manager } from 'node:worker_threads';
|
import { parentPort as manager } from 'node:worker_threads';
|
||||||
import { ApiHandler } from '..';
|
import { ApiHandler, Logger } from '..';
|
||||||
import type { Cache } from '../cache';
|
import type { Cache } from '../cache';
|
||||||
import { WorkerAdapter } from '../cache';
|
import { WorkerAdapter } from '../cache';
|
||||||
import type { GatewayDispatchPayload, GatewaySendPayload, When } from '../common';
|
import { type DeepPartial, LogLevels, type When } from '../common';
|
||||||
import { GatewayIntentBits, LogLevels, Logger, type DeepPartial } from '../common';
|
|
||||||
import { EventHandler, type EventHandlerLike } from '../events';
|
import { EventHandler, type EventHandlerLike } from '../events';
|
||||||
import { ClientUser } from '../structures';
|
import { ClientUser } from '../structures';
|
||||||
import { Shard, type ShardManagerOptions, type WorkerData } from '../websocket';
|
import { Shard, type ShardManagerOptions, type WorkerData } from '../websocket';
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
import type { SeyfertNumberOption, SeyfertStringOption } from '../..';
|
import {
|
||||||
|
type APIApplicationCommandBasicOption,
|
||||||
|
type APIApplicationCommandOption,
|
||||||
|
type APIApplicationCommandSubcommandGroupOption,
|
||||||
|
ApplicationCommandOptionType,
|
||||||
|
ApplicationCommandType,
|
||||||
|
type LocaleString,
|
||||||
|
} from 'discord-api-types/v10';
|
||||||
|
import type { PermissionStrings, SeyfertNumberOption, SeyfertStringOption } from '../..';
|
||||||
import type { Attachment } from '../../builders';
|
import type { Attachment } from '../../builders';
|
||||||
import type {
|
import { type FlatObjectKeys, magicImport } from '../../common';
|
||||||
APIApplicationCommandBasicOption,
|
|
||||||
APIApplicationCommandOption,
|
|
||||||
APIApplicationCommandSubcommandGroupOption,
|
|
||||||
FlatObjectKeys,
|
|
||||||
LocaleString,
|
|
||||||
PermissionStrings,
|
|
||||||
} from '../../common';
|
|
||||||
import { ApplicationCommandOptionType, ApplicationCommandType, magicImport } from '../../common';
|
|
||||||
import type { AllChannels, AutocompleteInteraction, GuildRole, InteractionGuildMember, User } from '../../structures';
|
import type { AllChannels, AutocompleteInteraction, GuildRole, InteractionGuildMember, User } from '../../structures';
|
||||||
import type { Groups, IntegrationTypes, InteractionContextTypes, RegisteredMiddlewares } from '../decorators';
|
import type { Groups, IntegrationTypes, InteractionContextTypes, RegisteredMiddlewares } from '../decorators';
|
||||||
import type { OptionResolver } from '../optionresolver';
|
import type { OptionResolver } from '../optionresolver';
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
|
import { MessageFlags } from 'discord-api-types/v10';
|
||||||
import type { AllChannels, Guild, InferWithPrefix, ReturnCache, WebhookMessage } from '../..';
|
import type { AllChannels, Guild, InferWithPrefix, ReturnCache, WebhookMessage } from '../..';
|
||||||
import type { Client, WorkerClient } from '../../client';
|
import type { Client, WorkerClient } from '../../client';
|
||||||
import { MessageFlags, type If, type UnionToTuple, type When } from '../../common';
|
import type { If, UnionToTuple, When } from '../../common';
|
||||||
import type { InteractionCreateBodyRequest, InteractionMessageUpdateBodyRequest } from '../../common/types/write';
|
import type { InteractionCreateBodyRequest, InteractionMessageUpdateBodyRequest } from '../../common/types/write';
|
||||||
import {
|
import {
|
||||||
Message,
|
Message,
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { magicImport, type ApplicationCommandType, type LocaleString, type PermissionStrings } from '../../common';
|
import type { ApplicationCommandType, LocaleString } from 'discord-api-types/v10';
|
||||||
|
import { type PermissionStrings, magicImport } from '../../common';
|
||||||
import type { IntegrationTypes, InteractionContextTypes, RegisteredMiddlewares } from '../decorators';
|
import type { IntegrationTypes, InteractionContextTypes, RegisteredMiddlewares } from '../decorators';
|
||||||
import type { MenuCommandContext } from './menucontext';
|
import type { MenuCommandContext } from './menucontext';
|
||||||
import type { PassFunction, StopFunction, UsingClient } from './shared';
|
import type { PassFunction, StopFunction, UsingClient } from './shared';
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
|
import { ApplicationCommandType, MessageFlags } from 'discord-api-types/v10';
|
||||||
import type { ContextMenuCommand, ReturnCache, WebhookMessage } from '../..';
|
import type { ContextMenuCommand, ReturnCache, WebhookMessage } from '../..';
|
||||||
import {
|
import {
|
||||||
ApplicationCommandType,
|
|
||||||
MessageFlags,
|
|
||||||
toSnakeCase,
|
toSnakeCase,
|
||||||
type InteractionCreateBodyRequest,
|
type InteractionCreateBodyRequest,
|
||||||
type InteractionMessageUpdateBodyRequest,
|
type InteractionMessageUpdateBodyRequest,
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
import {
|
import { ApplicationCommandType, type LocaleString, PermissionFlagsBits } from 'discord-api-types/v10';
|
||||||
ApplicationCommandType,
|
import type { FlatObjectKeys, PermissionStrings } from '../common';
|
||||||
PermissionFlagsBits,
|
|
||||||
type FlatObjectKeys,
|
|
||||||
type LocaleString,
|
|
||||||
type PermissionStrings,
|
|
||||||
} from '../common';
|
|
||||||
import type { CommandOption, OptionsRecord, SubCommand } from './applications/chat';
|
import type { CommandOption, OptionsRecord, SubCommand } from './applications/chat';
|
||||||
import type { DefaultLocale, MiddlewareContext } from './applications/shared';
|
import type { DefaultLocale, MiddlewareContext } from './applications/shared';
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
|
import { Locale, type LocaleString } from 'discord-api-types/v10';
|
||||||
import { basename, dirname } from 'node:path';
|
import { basename, dirname } from 'node:path';
|
||||||
import type { Logger } from '../common';
|
import type { Logger } from '../common';
|
||||||
import { BaseHandler, Locale, type LocaleString } from '../common';
|
import { BaseHandler } from '../common';
|
||||||
import { Command, SubCommand } from './applications/chat';
|
import { Command, SubCommand } from './applications/chat';
|
||||||
import { ContextMenuCommand } from './applications/menu';
|
import { ContextMenuCommand } from './applications/menu';
|
||||||
import type { UsingClient } from './applications/shared';
|
import type { UsingClient } from './applications/shared';
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
|
import {
|
||||||
|
type APIApplicationCommandInteractionDataOption,
|
||||||
|
type APIAttachment,
|
||||||
|
type APIGuildMember,
|
||||||
|
type APIInteractionDataResolvedChannel,
|
||||||
|
type APIInteractionGuildMember,
|
||||||
|
type APIRole,
|
||||||
|
type APIUser,
|
||||||
|
ApplicationCommandOptionType,
|
||||||
|
} from 'discord-api-types/v10';
|
||||||
import { Attachment, GuildMember } from '..';
|
import { Attachment, GuildMember } from '..';
|
||||||
import type {
|
import type { MakeRequired } from '../common';
|
||||||
APIApplicationCommandInteractionDataOption,
|
|
||||||
APIAttachment,
|
|
||||||
APIGuildMember,
|
|
||||||
APIInteractionDataResolvedChannel,
|
|
||||||
APIInteractionGuildMember,
|
|
||||||
APIRole,
|
|
||||||
APIUser,
|
|
||||||
MakeRequired,
|
|
||||||
} from '../common';
|
|
||||||
import { ApplicationCommandOptionType } from '../common';
|
|
||||||
import type { AllChannels } from '../structures';
|
import type { AllChannels } from '../structures';
|
||||||
import { GuildRole, InteractionGuildMember, User } from '../structures';
|
import { GuildRole, InteractionGuildMember, User } from '../structures';
|
||||||
import channelFrom from '../structures/channels';
|
import channelFrom from '../structures/channels';
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
export * from './it/constants';
|
export * from './it/constants';
|
||||||
export * from './it/utils';
|
export * from './it/utils';
|
||||||
//
|
//
|
||||||
export * from 'discord-api-types/v10';
|
|
||||||
export * from './it/colors';
|
export * from './it/colors';
|
||||||
export * from './it/logger';
|
export * from './it/logger';
|
||||||
export * from './shorters/channels';
|
export * from './shorters/channels';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { PermissionFlagsBits, type RESTPatchAPIChannelJSONBody } from '..';
|
import { PermissionFlagsBits, type RESTPatchAPIChannelJSONBody } from 'discord-api-types/v10';
|
||||||
import { BaseChannel, Message, type GuildMember, type GuildRole } from '../../structures';
|
import { BaseChannel, Message, type GuildMember, type GuildRole } from '../../structures';
|
||||||
import channelFrom, { type AllChannels } from '../../structures/channels';
|
import channelFrom, { type AllChannels } from '../../structures/channels';
|
||||||
import { PermissionsBitField } from '../../structures/extra/Permissions';
|
import { PermissionsBitField } from '../../structures/extra/Permissions';
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
import {
|
import { FormattingPatterns } from 'discord-api-types/globals';
|
||||||
FormattingPatterns,
|
import type {
|
||||||
type APIGuildMember,
|
APIGuildMember,
|
||||||
type GuildMemberResolvable,
|
RESTGetAPIGuildMembersQuery,
|
||||||
type RESTGetAPIGuildMembersQuery,
|
RESTGetAPIGuildMembersSearchQuery,
|
||||||
type RESTGetAPIGuildMembersSearchQuery,
|
RESTPatchAPIGuildMemberJSONBody,
|
||||||
type RESTPatchAPIGuildMemberJSONBody,
|
RESTPutAPIGuildBanJSONBody,
|
||||||
type RESTPutAPIGuildBanJSONBody,
|
RESTPutAPIGuildMemberJSONBody,
|
||||||
type RESTPutAPIGuildMemberJSONBody,
|
} from 'discord-api-types/v10';
|
||||||
} from '..';
|
|
||||||
import { GuildMember } from '../../structures';
|
import { GuildMember } from '../../structures';
|
||||||
import { PermissionsBitField } from '../../structures/extra/Permissions';
|
import { PermissionsBitField } from '../../structures/extra/Permissions';
|
||||||
|
import type { GuildMemberResolvable } from '../types/resolvables';
|
||||||
import { BaseShorter } from './base';
|
import { BaseShorter } from './base';
|
||||||
|
|
||||||
export class MemberShorter extends BaseShorter {
|
export class MemberShorter extends BaseShorter {
|
||||||
|
@ -3,7 +3,7 @@ import type {
|
|||||||
RESTPatchAPIWebhookWithTokenJSONBody,
|
RESTPatchAPIWebhookWithTokenJSONBody,
|
||||||
RESTPostAPIChannelWebhookJSONBody,
|
RESTPostAPIChannelWebhookJSONBody,
|
||||||
RESTPostAPIWebhookWithTokenJSONBody,
|
RESTPostAPIWebhookWithTokenJSONBody,
|
||||||
} from '..';
|
} from 'discord-api-types/v10';
|
||||||
import { resolveFiles } from '../../builders';
|
import { resolveFiles } from '../../builders';
|
||||||
import {
|
import {
|
||||||
MessagesMethods,
|
MessagesMethods,
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import type { APIPartialEmoji, EmbedColors } from '..';
|
import type { APIPartialEmoji } from 'discord-api-types/v10';
|
||||||
|
import type { EmbedColors } from '..';
|
||||||
import type { Attachment, AttachmentDataType, AttachmentResolvable } from '../../builders';
|
import type { Attachment, AttachmentDataType, AttachmentResolvable } from '../../builders';
|
||||||
import type { GuildMember } from '../../structures';
|
import type { GuildMember } from '../../structures';
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { GatewayIntentBits, PermissionFlagsBits } from '..';
|
import type { GatewayIntentBits, PermissionFlagsBits } from 'discord-api-types/v10';
|
||||||
|
|
||||||
export type ToClass<T, This> = new (
|
export type ToClass<T, This> = new (
|
||||||
...args: any[]
|
...args: any[]
|
||||||
|
@ -9,7 +9,7 @@ import type {
|
|||||||
RESTPatchAPIWebhookWithTokenMessageJSONBody,
|
RESTPatchAPIWebhookWithTokenMessageJSONBody,
|
||||||
RESTPostAPIChannelMessageJSONBody,
|
RESTPostAPIChannelMessageJSONBody,
|
||||||
RESTPostAPIWebhookWithTokenJSONBody,
|
RESTPostAPIWebhookWithTokenJSONBody,
|
||||||
} from '..';
|
} from 'discord-api-types/v10';
|
||||||
import type { RawFile } from '../../api';
|
import type { RawFile } from '../../api';
|
||||||
import type { ActionRow, Attachment, AttachmentBuilder, BuilderComponents, Embed, Modal } from '../../builders';
|
import type { ActionRow, Attachment, AttachmentBuilder, BuilderComponents, Embed, Modal } from '../../builders';
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { APIMessageActionRowComponent, ComponentType } from '../common';
|
import type { APIMessageActionRowComponent, ComponentType } from 'discord-api-types/v10';
|
||||||
import { BaseComponent } from './BaseComponent';
|
import { BaseComponent } from './BaseComponent';
|
||||||
import type { ActionRowMessageComponents } from './index';
|
import type { ActionRowMessageComponents } from './index';
|
||||||
import { componentFactory } from './index';
|
import { componentFactory } from './index';
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
import { fromComponent } from '../builders';
|
import {
|
||||||
import type {
|
type APIActionRowComponent,
|
||||||
APIActionRowComponent,
|
type APIActionRowComponentTypes,
|
||||||
APIActionRowComponentTypes,
|
type APIButtonComponent,
|
||||||
APIButtonComponent,
|
type APIChannelSelectComponent,
|
||||||
APIChannelSelectComponent,
|
type APIMentionableSelectComponent,
|
||||||
APIMentionableSelectComponent,
|
type APIRoleSelectComponent,
|
||||||
APIRoleSelectComponent,
|
type APIStringSelectComponent,
|
||||||
APIStringSelectComponent,
|
type APITextInputComponent,
|
||||||
APITextInputComponent,
|
type APIUserSelectComponent,
|
||||||
APIUserSelectComponent,
|
|
||||||
ComponentType,
|
ComponentType,
|
||||||
} from '../common';
|
} from 'discord-api-types/v10';
|
||||||
|
import { fromComponent } from '../builders';
|
||||||
|
|
||||||
export class BaseComponent<T extends ComponentType> {
|
export class BaseComponent<T extends ComponentType> {
|
||||||
constructor(public data: APIComponentsMap[T]) {}
|
constructor(public data: APIComponentsMap[T]) {}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { ComponentType } from '../common';
|
import type { ComponentType } from 'discord-api-types/v10';
|
||||||
import { BaseComponent } from './BaseComponent';
|
import { BaseComponent } from './BaseComponent';
|
||||||
|
|
||||||
export type APISelectMenuComponentTypes =
|
export type APISelectMenuComponentTypes =
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
import type { ButtonStyle, ComponentType } from 'discord-api-types/v10';
|
||||||
import { Button, type ButtonStylesForID } from '../builders';
|
import { Button, type ButtonStylesForID } from '../builders';
|
||||||
import type { ButtonStyle, ComponentType } from '../common';
|
|
||||||
import { BaseComponent } from './BaseComponent';
|
import { BaseComponent } from './BaseComponent';
|
||||||
|
|
||||||
export class LinkButtonComponent extends BaseComponent<ComponentType.Button> {
|
export class LinkButtonComponent extends BaseComponent<ComponentType.Button> {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { ComponentType } from '../common';
|
import type { ComponentType } from 'discord-api-types/v10';
|
||||||
import { BaseSelectMenuComponent } from './BaseSelectMenuComponent';
|
import { BaseSelectMenuComponent } from './BaseSelectMenuComponent';
|
||||||
|
|
||||||
export class ChannelSelectMenuComponent extends BaseSelectMenuComponent<ComponentType.ChannelSelect> {
|
export class ChannelSelectMenuComponent extends BaseSelectMenuComponent<ComponentType.ChannelSelect> {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { ComponentType } from '../common';
|
import type { ComponentType } from 'discord-api-types/v10';
|
||||||
import { BaseSelectMenuComponent } from './BaseSelectMenuComponent';
|
import { BaseSelectMenuComponent } from './BaseSelectMenuComponent';
|
||||||
|
|
||||||
export class MentionableSelectMenuComponent extends BaseSelectMenuComponent<ComponentType.MentionableSelect> {
|
export class MentionableSelectMenuComponent extends BaseSelectMenuComponent<ComponentType.MentionableSelect> {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { ComponentType } from '../common';
|
import type { ComponentType } from 'discord-api-types/v10';
|
||||||
import { BaseSelectMenuComponent } from './BaseSelectMenuComponent';
|
import { BaseSelectMenuComponent } from './BaseSelectMenuComponent';
|
||||||
|
|
||||||
export class RoleSelectMenuComponent extends BaseSelectMenuComponent<ComponentType.RoleSelect> {
|
export class RoleSelectMenuComponent extends BaseSelectMenuComponent<ComponentType.RoleSelect> {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { ComponentType } from '../common';
|
import type { ComponentType } from 'discord-api-types/v10';
|
||||||
import { BaseSelectMenuComponent } from './BaseSelectMenuComponent';
|
import { BaseSelectMenuComponent } from './BaseSelectMenuComponent';
|
||||||
|
|
||||||
export class StringSelectMenuComponent extends BaseSelectMenuComponent<ComponentType.StringSelect> {
|
export class StringSelectMenuComponent extends BaseSelectMenuComponent<ComponentType.StringSelect> {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { ComponentType } from '../common';
|
import type { ComponentType } from 'discord-api-types/v10';
|
||||||
import { BaseComponent } from './BaseComponent';
|
import { BaseComponent } from './BaseComponent';
|
||||||
|
|
||||||
export class TextInputComponent extends BaseComponent<ComponentType.TextInput> {
|
export class TextInputComponent extends BaseComponent<ComponentType.TextInput> {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { ComponentType } from '../common';
|
import type { ComponentType } from 'discord-api-types/v10';
|
||||||
import { BaseSelectMenuComponent } from './BaseSelectMenuComponent';
|
import { BaseSelectMenuComponent } from './BaseSelectMenuComponent';
|
||||||
|
|
||||||
export class UserSelectMenuComponent extends BaseSelectMenuComponent<ComponentType.UserSelect> {
|
export class UserSelectMenuComponent extends BaseSelectMenuComponent<ComponentType.UserSelect> {
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import type { APIMessageActionRowComponent } from '../common';
|
import { type APIMessageActionRowComponent, ButtonStyle, ComponentType } from 'discord-api-types/v10';
|
||||||
import { ButtonStyle, ComponentType } from '../common';
|
|
||||||
import { BaseComponent } from './BaseComponent';
|
import { BaseComponent } from './BaseComponent';
|
||||||
import { ButtonComponent, LinkButtonComponent } from './ButtonComponent';
|
import { ButtonComponent, LinkButtonComponent } from './ButtonComponent';
|
||||||
import { ChannelSelectMenuComponent } from './ChannelSelectMenuComponent';
|
import { ChannelSelectMenuComponent } from './ChannelSelectMenuComponent';
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
|
import type {
|
||||||
|
GatewayDispatchPayload,
|
||||||
|
GatewayMessageCreateDispatch,
|
||||||
|
GatewayMessageDeleteBulkDispatch,
|
||||||
|
GatewayMessageDeleteDispatch,
|
||||||
|
} from 'discord-api-types/v10';
|
||||||
import type { Client, WorkerClient } from '../client';
|
import type { Client, WorkerClient } from '../client';
|
||||||
import {
|
import {
|
||||||
BaseHandler,
|
BaseHandler,
|
||||||
ReplaceRegex,
|
ReplaceRegex,
|
||||||
magicImport,
|
magicImport,
|
||||||
type GatewayDispatchPayload,
|
|
||||||
type GatewayMessageCreateDispatch,
|
|
||||||
type GatewayMessageDeleteBulkDispatch,
|
|
||||||
type GatewayMessageDeleteDispatch,
|
|
||||||
type MakeRequired,
|
type MakeRequired,
|
||||||
type OnFailCallback,
|
type OnFailCallback,
|
||||||
type SnakeCase,
|
type SnakeCase,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
import type { GatewayApplicationCommandPermissionsUpdateDispatchData } from 'discord-api-types/v10';
|
||||||
import type { BaseClient } from '../../client/base';
|
import type { BaseClient } from '../../client/base';
|
||||||
import type { GatewayApplicationCommandPermissionsUpdateDispatchData } from '../../common';
|
|
||||||
import { toCamelCase } from '../../common';
|
import { toCamelCase } from '../../common';
|
||||||
|
|
||||||
export const APPLICATION_COMMAND_PERMISSIONS_UPDATE = (
|
export const APPLICATION_COMMAND_PERMISSIONS_UPDATE = (
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
|
import type {
|
||||||
|
GatewayAutoModerationActionExecutionDispatchData,
|
||||||
|
GatewayAutoModerationRuleCreateDispatchData,
|
||||||
|
GatewayAutoModerationRuleDeleteDispatchData,
|
||||||
|
GatewayAutoModerationRuleUpdateDispatchData,
|
||||||
|
} from 'discord-api-types/v10';
|
||||||
import type { BaseClient } from '../../client/base';
|
import type { BaseClient } from '../../client/base';
|
||||||
import {
|
import { toCamelCase } from '../../common';
|
||||||
type GatewayAutoModerationActionExecutionDispatchData,
|
|
||||||
type GatewayAutoModerationRuleCreateDispatchData,
|
|
||||||
type GatewayAutoModerationRuleDeleteDispatchData,
|
|
||||||
type GatewayAutoModerationRuleUpdateDispatchData,
|
|
||||||
toCamelCase,
|
|
||||||
} from '../../common';
|
|
||||||
import { AutoModerationRule } from '../../structures';
|
import { AutoModerationRule } from '../../structures';
|
||||||
|
|
||||||
export const AUTO_MODERATION_ACTION_EXECUTION = (
|
export const AUTO_MODERATION_ACTION_EXECUTION = (
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
import {
|
import type {
|
||||||
toCamelCase,
|
GatewayChannelCreateDispatchData,
|
||||||
type GatewayChannelCreateDispatchData,
|
GatewayChannelDeleteDispatchData,
|
||||||
type GatewayChannelDeleteDispatchData,
|
GatewayChannelPinsUpdateDispatchData,
|
||||||
type GatewayChannelPinsUpdateDispatchData,
|
GatewayChannelUpdateDispatchData,
|
||||||
type GatewayChannelUpdateDispatchData,
|
} from 'discord-api-types/v10';
|
||||||
} from '../../common';
|
|
||||||
|
|
||||||
import type { BaseClient } from '../../client/base';
|
import type { BaseClient } from '../../client/base';
|
||||||
|
import { toCamelCase } from '../../common';
|
||||||
import type { AllChannels } from '../../structures';
|
import type { AllChannels } from '../../structures';
|
||||||
import channelFrom from '../../structures/channels';
|
import channelFrom from '../../structures/channels';
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
import type { GatewayDispatchPayload, GatewayReadyDispatchData, GatewayResumedDispatch } from 'discord-api-types/v10';
|
||||||
import type { BaseClient } from '../../client/base';
|
import type { BaseClient } from '../../client/base';
|
||||||
import type { GatewayDispatchPayload, GatewayReadyDispatchData, GatewayResumedDispatch } from '../../common';
|
|
||||||
import { ClientUser } from '../../structures';
|
import { ClientUser } from '../../structures';
|
||||||
|
|
||||||
export const READY = (self: BaseClient, data: GatewayReadyDispatchData) => {
|
export const READY = (self: BaseClient, data: GatewayReadyDispatchData) => {
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
|
import type { APIEntitlement } from 'discord-api-types/v10';
|
||||||
import type { BaseClient } from '../../client/base';
|
import type { BaseClient } from '../../client/base';
|
||||||
import { type APIEntitlement, toCamelCase } from '../../common';
|
import { toCamelCase } from '../../common';
|
||||||
|
|
||||||
export const ENTITLEMENT_CREATE = (_: BaseClient, data: APIEntitlement) => {
|
export const ENTITLEMENT_CREATE = (_: BaseClient, data: APIEntitlement) => {
|
||||||
return toCamelCase(data);
|
return toCamelCase(data);
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import type { BaseClient } from '../../client/base';
|
|
||||||
import type {
|
import type {
|
||||||
GatewayGuildAuditLogEntryCreateDispatchData,
|
GatewayGuildAuditLogEntryCreateDispatchData,
|
||||||
GatewayGuildBanAddDispatchData,
|
GatewayGuildBanAddDispatchData,
|
||||||
@ -20,7 +19,8 @@ import type {
|
|||||||
GatewayGuildScheduledEventUserRemoveDispatchData,
|
GatewayGuildScheduledEventUserRemoveDispatchData,
|
||||||
GatewayGuildStickersUpdateDispatchData,
|
GatewayGuildStickersUpdateDispatchData,
|
||||||
GatewayGuildUpdateDispatchData,
|
GatewayGuildUpdateDispatchData,
|
||||||
} from '../../common';
|
} from 'discord-api-types/v10';
|
||||||
|
import type { BaseClient } from '../../client/base';
|
||||||
import { toCamelCase } from '../../common';
|
import { toCamelCase } from '../../common';
|
||||||
import {
|
import {
|
||||||
Guild,
|
Guild,
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import type { BaseClient } from '../../client/base';
|
|
||||||
import type {
|
import type {
|
||||||
GatewayIntegrationCreateDispatchData,
|
GatewayIntegrationCreateDispatchData,
|
||||||
GatewayIntegrationDeleteDispatchData,
|
GatewayIntegrationDeleteDispatchData,
|
||||||
GatewayIntegrationUpdateDispatchData,
|
GatewayIntegrationUpdateDispatchData,
|
||||||
} from '../../common';
|
} from 'discord-api-types/v10';
|
||||||
|
import type { BaseClient } from '../../client/base';
|
||||||
import { toCamelCase } from '../../common';
|
import { toCamelCase } from '../../common';
|
||||||
import { User } from '../../structures';
|
import { User } from '../../structures';
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
import type { GatewayInteractionCreateDispatchData } from 'discord-api-types/v10';
|
||||||
import type { BaseClient } from '../../client/base';
|
import type { BaseClient } from '../../client/base';
|
||||||
import type { GatewayInteractionCreateDispatchData } from '../../common';
|
|
||||||
import { BaseInteraction } from '../../structures';
|
import { BaseInteraction } from '../../structures';
|
||||||
|
|
||||||
export const INTERACTION_CREATE = (self: BaseClient, data: GatewayInteractionCreateDispatchData) => {
|
export const INTERACTION_CREATE = (self: BaseClient, data: GatewayInteractionCreateDispatchData) => {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { GatewayInviteCreateDispatchData, GatewayInviteDeleteDispatchData } from '../../common';
|
import type { GatewayInviteCreateDispatchData, GatewayInviteDeleteDispatchData } from 'discord-api-types/v10';
|
||||||
|
|
||||||
import type { BaseClient } from '../../client/base';
|
import type { BaseClient } from '../../client/base';
|
||||||
import { toCamelCase } from '../../common';
|
import { toCamelCase } from '../../common';
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import type { BaseClient } from '../../client/base';
|
|
||||||
import type {
|
import type {
|
||||||
APIMessage,
|
APIMessage,
|
||||||
GatewayMessageCreateDispatchData,
|
GatewayMessageCreateDispatchData,
|
||||||
@ -9,10 +8,9 @@ import type {
|
|||||||
GatewayMessageReactionRemoveDispatchData,
|
GatewayMessageReactionRemoveDispatchData,
|
||||||
GatewayMessageReactionRemoveEmojiDispatchData,
|
GatewayMessageReactionRemoveEmojiDispatchData,
|
||||||
GatewayMessageUpdateDispatchData,
|
GatewayMessageUpdateDispatchData,
|
||||||
MakeRequired,
|
} from 'discord-api-types/v10';
|
||||||
PartialClass,
|
import type { BaseClient } from '../../client/base';
|
||||||
} from '../../common';
|
import { type MakeRequired, type PartialClass, toCamelCase } from '../../common';
|
||||||
import { toCamelCase } from '../../common';
|
|
||||||
import { Message } from '../../structures';
|
import { Message } from '../../structures';
|
||||||
|
|
||||||
export const MESSAGE_CREATE = (self: BaseClient, data: GatewayMessageCreateDispatchData) => {
|
export const MESSAGE_CREATE = (self: BaseClient, data: GatewayMessageCreateDispatchData) => {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { GatewayPresenceUpdateDispatchData } from '../../common';
|
import type { GatewayPresenceUpdateDispatchData } from 'discord-api-types/v10';
|
||||||
|
|
||||||
import type { BaseClient } from '../../client/base';
|
import type { BaseClient } from '../../client/base';
|
||||||
import { toCamelCase } from '../../common';
|
import { toCamelCase } from '../../common';
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
import type { GatewayStageInstanceCreateDispatchData, GatewayStageInstanceDeleteDispatchData } from '../../common';
|
import type {
|
||||||
|
GatewayStageInstanceCreateDispatchData,
|
||||||
|
GatewayStageInstanceDeleteDispatchData,
|
||||||
|
} from 'discord-api-types/v10';
|
||||||
|
|
||||||
import type { BaseClient } from '../../client/base';
|
import type { BaseClient } from '../../client/base';
|
||||||
import { toCamelCase } from '../../common';
|
import { toCamelCase } from '../../common';
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import type { BaseClient } from '../../client/base';
|
|
||||||
import type {
|
import type {
|
||||||
GatewayThreadCreateDispatchData,
|
GatewayThreadCreateDispatchData,
|
||||||
GatewayThreadDeleteDispatchData,
|
GatewayThreadDeleteDispatchData,
|
||||||
@ -6,7 +5,8 @@ import type {
|
|||||||
GatewayThreadMemberUpdateDispatchData,
|
GatewayThreadMemberUpdateDispatchData,
|
||||||
GatewayThreadMembersUpdateDispatchData,
|
GatewayThreadMembersUpdateDispatchData,
|
||||||
GatewayThreadUpdateDispatchData,
|
GatewayThreadUpdateDispatchData,
|
||||||
} from '../../common';
|
} from 'discord-api-types/v10';
|
||||||
|
import type { BaseClient } from '../../client/base';
|
||||||
import { toCamelCase } from '../../common';
|
import { toCamelCase } from '../../common';
|
||||||
import { ThreadChannel } from '../../structures';
|
import { ThreadChannel } from '../../structures';
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { GatewayTypingStartDispatchData } from '../../common';
|
import type { GatewayTypingStartDispatchData } from 'discord-api-types/v10';
|
||||||
|
|
||||||
import type { BaseClient } from '../../client/base';
|
import type { BaseClient } from '../../client/base';
|
||||||
import { toCamelCase } from '../../common';
|
import { toCamelCase } from '../../common';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
import type { GatewayUserUpdateDispatchData } from 'discord-api-types/v10';
|
||||||
import type { BaseClient } from '../../client/base';
|
import type { BaseClient } from '../../client/base';
|
||||||
import type { GatewayUserUpdateDispatchData } from '../../common';
|
|
||||||
import { User } from '../../structures';
|
import { User } from '../../structures';
|
||||||
|
|
||||||
export const USER_UPDATE = (self: BaseClient, data: GatewayUserUpdateDispatchData) => {
|
export const USER_UPDATE = (self: BaseClient, data: GatewayUserUpdateDispatchData) => {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
import type { GatewayVoiceServerUpdateDispatchData, GatewayVoiceStateUpdateDispatchData } from 'discord-api-types/v10';
|
||||||
import type { BaseClient } from '../../client/base';
|
import type { BaseClient } from '../../client/base';
|
||||||
import type { GatewayVoiceServerUpdateDispatchData, GatewayVoiceStateUpdateDispatchData } from '../../common';
|
|
||||||
import { toCamelCase } from '../../common';
|
import { toCamelCase } from '../../common';
|
||||||
import { GuildMember } from '../../structures';
|
import { GuildMember } from '../../structures';
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
import type { GatewayWebhooksUpdateDispatchData } from 'discord-api-types/v10';
|
||||||
import type { BaseClient } from '../../client/base';
|
import type { BaseClient } from '../../client/base';
|
||||||
import type { GatewayWebhooksUpdateDispatchData } from '../../common';
|
|
||||||
import { toCamelCase } from '../../common';
|
import { toCamelCase } from '../../common';
|
||||||
|
|
||||||
export const WEBHOOKS_UPDATE = (_self: BaseClient, data: GatewayWebhooksUpdateDispatchData) => {
|
export const WEBHOOKS_UPDATE = (_self: BaseClient, data: GatewayWebhooksUpdateDispatchData) => {
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import { GatewayIntentBits } from 'discord-api-types/gateway/v10';
|
||||||
import type {
|
import type {
|
||||||
BaseClientOptions,
|
BaseClientOptions,
|
||||||
InternalRuntimeConfig,
|
InternalRuntimeConfig,
|
||||||
@ -5,10 +6,8 @@ import type {
|
|||||||
RuntimeConfig,
|
RuntimeConfig,
|
||||||
RuntimeConfigHTTP,
|
RuntimeConfigHTTP,
|
||||||
} from './client/base';
|
} from './client/base';
|
||||||
import { GatewayIntentBits } from './common';
|
|
||||||
import type { ClientNameEvents, EventContext } from './events';
|
import type { ClientNameEvents, EventContext } from './events';
|
||||||
|
export { Logger, PermissionStrings, Watcher } from './common';
|
||||||
export { Logger, PermissionFlagsBits, PermissionStrings, Watcher } from './common';
|
|
||||||
//
|
//
|
||||||
export { Collection, LimitedCollection } from './collection';
|
export { Collection, LimitedCollection } from './collection';
|
||||||
//
|
//
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { BaseHandler, type Locale, type LocaleString } from '../common';
|
import type { Locale, LocaleString } from 'discord-api-types/v10';
|
||||||
|
import { BaseHandler } from '../common';
|
||||||
import { LangRouter } from './router';
|
import { LangRouter } from './router';
|
||||||
|
|
||||||
export interface LangsHandlerLike {
|
export interface LangsHandlerLike {
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
import type { UsingClient } from '../commands';
|
|
||||||
import type {
|
import type {
|
||||||
APIAutoModerationRule,
|
APIAutoModerationRule,
|
||||||
MethodContext,
|
|
||||||
ObjectToLower,
|
|
||||||
RESTPatchAPIAutoModerationRuleJSONBody,
|
RESTPatchAPIAutoModerationRuleJSONBody,
|
||||||
RESTPostAPIAutoModerationRuleJSONBody,
|
RESTPostAPIAutoModerationRuleJSONBody,
|
||||||
} from '../common';
|
} from 'discord-api-types/v10';
|
||||||
|
import type { UsingClient } from '../commands';
|
||||||
|
import type { MethodContext, ObjectToLower } from '../common';
|
||||||
import { DiscordBase } from './extra/DiscordBase';
|
import { DiscordBase } from './extra/DiscordBase';
|
||||||
|
|
||||||
export interface AutoModerationRule extends ObjectToLower<APIAutoModerationRule> {}
|
export interface AutoModerationRule extends ObjectToLower<APIAutoModerationRule> {}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
import type { GatewayReadyDispatchData, RESTPatchAPICurrentUserJSONBody } from 'discord-api-types/v10';
|
||||||
import type { UsingClient } from '../commands';
|
import type { UsingClient } from '../commands';
|
||||||
import type { GatewayReadyDispatchData, RESTPatchAPICurrentUserJSONBody } from '../common';
|
|
||||||
import { User } from './User';
|
import { User } from './User';
|
||||||
|
|
||||||
export class ClientUser extends User {
|
export class ClientUser extends User {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
|
import type { APIGuild, APIPartialGuild, GatewayGuildCreateDispatchData } from 'discord-api-types/v10';
|
||||||
import type { UsingClient } from '../commands';
|
import type { UsingClient } from '../commands';
|
||||||
import type { APIGuild, APIPartialGuild, GatewayGuildCreateDispatchData, ObjectToLower } from '../common';
|
import type { ObjectToLower, StructPropState, StructStates, ToClass } from '../common/types/util';
|
||||||
import type { StructPropState, StructStates, ToClass } from '../common/types/util';
|
|
||||||
import { AutoModerationRule } from './AutoModerationRule';
|
import { AutoModerationRule } from './AutoModerationRule';
|
||||||
import { GuildEmoji } from './GuildEmoji';
|
import { GuildEmoji } from './GuildEmoji';
|
||||||
import { GuildMember } from './GuildMember';
|
import { GuildMember } from './GuildMember';
|
||||||
|
@ -1,13 +1,7 @@
|
|||||||
|
import type { APIEmoji, RESTPatchAPIChannelJSONBody, RESTPatchAPIGuildEmojiJSONBody } from 'discord-api-types/v10';
|
||||||
import type { BaseImageURLOptions } from '../api';
|
import type { BaseImageURLOptions } from '../api';
|
||||||
import type { UsingClient } from '../commands';
|
import type { UsingClient } from '../commands';
|
||||||
import type {
|
import type { EmojiShorter, MethodContext, ObjectToLower } from '../common';
|
||||||
APIEmoji,
|
|
||||||
EmojiShorter,
|
|
||||||
MethodContext,
|
|
||||||
ObjectToLower,
|
|
||||||
RESTPatchAPIChannelJSONBody,
|
|
||||||
RESTPatchAPIGuildEmojiJSONBody,
|
|
||||||
} from '../common';
|
|
||||||
import { DiscordBase } from './extra/DiscordBase';
|
import { DiscordBase } from './extra/DiscordBase';
|
||||||
|
|
||||||
export interface GuildEmoji extends DiscordBase, ObjectToLower<Omit<APIEmoji, 'id'>> {}
|
export interface GuildEmoji extends DiscordBase, ObjectToLower<Omit<APIEmoji, 'id'>> {}
|
||||||
|
@ -1,19 +1,3 @@
|
|||||||
import type {
|
|
||||||
APIGuildMember,
|
|
||||||
APIInteractionDataResolvedGuildMember,
|
|
||||||
APIUser,
|
|
||||||
GatewayGuildMemberAddDispatchData,
|
|
||||||
GatewayGuildMemberUpdateDispatchData,
|
|
||||||
MakeRequired,
|
|
||||||
MessageCreateBodyRequest,
|
|
||||||
ObjectToLower,
|
|
||||||
RESTGetAPIGuildMembersQuery,
|
|
||||||
RESTGetAPIGuildMembersSearchQuery,
|
|
||||||
RESTPatchAPIGuildMemberJSONBody,
|
|
||||||
RESTPutAPIGuildBanJSONBody,
|
|
||||||
RESTPutAPIGuildMemberJSONBody,
|
|
||||||
ToClass,
|
|
||||||
} from '../common';
|
|
||||||
import { DiscordBase } from './extra/DiscordBase';
|
import { DiscordBase } from './extra/DiscordBase';
|
||||||
|
|
||||||
export type GuildMemberData =
|
export type GuildMemberData =
|
||||||
@ -22,7 +6,20 @@ export type GuildMemberData =
|
|||||||
| GatewayGuildMemberAddDispatchData
|
| GatewayGuildMemberAddDispatchData
|
||||||
| APIInteractionDataResolvedGuildMember;
|
| APIInteractionDataResolvedGuildMember;
|
||||||
|
|
||||||
|
import type {
|
||||||
|
APIGuildMember,
|
||||||
|
APIInteractionDataResolvedGuildMember,
|
||||||
|
APIUser,
|
||||||
|
GatewayGuildMemberAddDispatchData,
|
||||||
|
GatewayGuildMemberUpdateDispatchData,
|
||||||
|
RESTGetAPIGuildMembersQuery,
|
||||||
|
RESTGetAPIGuildMembersSearchQuery,
|
||||||
|
RESTPatchAPIGuildMemberJSONBody,
|
||||||
|
RESTPutAPIGuildBanJSONBody,
|
||||||
|
RESTPutAPIGuildMemberJSONBody,
|
||||||
|
} from 'discord-api-types/v10';
|
||||||
import type { UsingClient } from '../commands';
|
import type { UsingClient } from '../commands';
|
||||||
|
import type { MakeRequired, MessageCreateBodyRequest, ObjectToLower, ToClass } from '../common';
|
||||||
import type { ImageOptions, MethodContext } from '../common/types/options';
|
import type { ImageOptions, MethodContext } from '../common/types/options';
|
||||||
import type { GuildMemberResolvable } from '../common/types/resolvables';
|
import type { GuildMemberResolvable } from '../common/types/resolvables';
|
||||||
import { User } from './User';
|
import { User } from './User';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
import type { APIGuildPreview, APIPartialGuild } from 'discord-api-types/v10';
|
||||||
import type { UsingClient } from '../commands';
|
import type { UsingClient } from '../commands';
|
||||||
import type { APIGuildPreview, APIPartialGuild } from '../common';
|
|
||||||
import { AnonymousGuild } from './AnonymousGuild';
|
import { AnonymousGuild } from './AnonymousGuild';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
import type { UsingClient } from '../commands';
|
|
||||||
import type {
|
import type {
|
||||||
APIRole,
|
APIRole,
|
||||||
MethodContext,
|
|
||||||
ObjectToLower,
|
|
||||||
RESTPatchAPIGuildRoleJSONBody,
|
RESTPatchAPIGuildRoleJSONBody,
|
||||||
RESTPatchAPIGuildRolePositionsJSONBody,
|
RESTPatchAPIGuildRolePositionsJSONBody,
|
||||||
RESTPostAPIGuildRoleJSONBody,
|
RESTPostAPIGuildRoleJSONBody,
|
||||||
} from '../common';
|
} from 'discord-api-types/v10';
|
||||||
|
import type { UsingClient } from '../commands';
|
||||||
|
import type { MethodContext, ObjectToLower } from '../common';
|
||||||
import { DiscordBase } from './extra/DiscordBase';
|
import { DiscordBase } from './extra/DiscordBase';
|
||||||
import { PermissionsBitField } from './extra/Permissions';
|
import { PermissionsBitField } from './extra/Permissions';
|
||||||
|
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
import type { UsingClient } from '../commands';
|
|
||||||
import type {
|
import type {
|
||||||
APITemplate,
|
APITemplate,
|
||||||
MethodContext,
|
|
||||||
ObjectToLower,
|
|
||||||
RESTPatchAPIGuildTemplateJSONBody,
|
RESTPatchAPIGuildTemplateJSONBody,
|
||||||
RESTPostAPIGuildTemplatesJSONBody,
|
RESTPostAPIGuildTemplatesJSONBody,
|
||||||
} from '../common';
|
} from 'discord-api-types/v10';
|
||||||
|
import type { UsingClient } from '../commands';
|
||||||
|
import type { MethodContext, ObjectToLower } from '../common';
|
||||||
import { Base } from './extra/Base';
|
import { Base } from './extra/Base';
|
||||||
|
|
||||||
export interface GuildTemplate extends Base, ObjectToLower<APITemplate> {}
|
export interface GuildTemplate extends Base, ObjectToLower<APITemplate> {}
|
||||||
|
@ -1,46 +1,46 @@
|
|||||||
|
import {
|
||||||
|
type APIActionRowComponent,
|
||||||
|
type APIApplicationCommandAutocompleteInteraction,
|
||||||
|
type APIApplicationCommandInteraction,
|
||||||
|
type APIBaseInteraction,
|
||||||
|
type APIChatInputApplicationCommandInteraction,
|
||||||
|
type APIChatInputApplicationCommandInteractionData,
|
||||||
|
type APICommandAutocompleteInteractionResponseCallbackData,
|
||||||
|
type APIInteraction,
|
||||||
|
type APIInteractionResponse,
|
||||||
|
type APIInteractionResponseChannelMessageWithSource,
|
||||||
|
type APIInteractionResponseDeferredChannelMessageWithSource,
|
||||||
|
type APIInteractionResponseDeferredMessageUpdate,
|
||||||
|
type APIInteractionResponsePong,
|
||||||
|
type APIInteractionResponseUpdateMessage,
|
||||||
|
type APIMessageApplicationCommandInteraction,
|
||||||
|
type APIMessageApplicationCommandInteractionData,
|
||||||
|
type APIMessageButtonInteractionData,
|
||||||
|
type APIMessageChannelSelectInteractionData,
|
||||||
|
type APIMessageComponentInteraction,
|
||||||
|
type APIMessageComponentSelectMenuInteraction,
|
||||||
|
type APIMessageMentionableSelectInteractionData,
|
||||||
|
type APIMessageRoleSelectInteractionData,
|
||||||
|
type APIMessageStringSelectInteractionData,
|
||||||
|
type APIMessageUserSelectInteractionData,
|
||||||
|
type APIModalSubmission,
|
||||||
|
type APIModalSubmitInteraction,
|
||||||
|
type APITextInputComponent,
|
||||||
|
type APIUserApplicationCommandInteraction,
|
||||||
|
type APIUserApplicationCommandInteractionData,
|
||||||
|
ApplicationCommandType,
|
||||||
|
ComponentType,
|
||||||
|
type GatewayInteractionCreateDispatchData,
|
||||||
|
InteractionResponseType,
|
||||||
|
InteractionType,
|
||||||
|
type MessageFlags,
|
||||||
|
type RESTPostAPIInteractionCallbackJSONBody,
|
||||||
|
} from 'discord-api-types/v10';
|
||||||
import { mix } from 'ts-mixer';
|
import { mix } from 'ts-mixer';
|
||||||
import type { RawFile } from '../api';
|
import type { RawFile } from '../api';
|
||||||
import { ActionRow, Embed, Modal, resolveAttachment, resolveFiles } from '../builders';
|
import { ActionRow, Embed, Modal, resolveAttachment, resolveFiles } from '../builders';
|
||||||
import { OptionResolver, type ContextOptionsResolved, type UsingClient } from '../commands';
|
import { OptionResolver, type ContextOptionsResolved, type UsingClient } from '../commands';
|
||||||
import type {
|
import type { ObjectToLower, OmitInsert, ToClass, When } from '../common';
|
||||||
APIActionRowComponent,
|
|
||||||
APIApplicationCommandAutocompleteInteraction,
|
|
||||||
APIApplicationCommandInteraction,
|
|
||||||
APIBaseInteraction,
|
|
||||||
APIChatInputApplicationCommandInteraction,
|
|
||||||
APIChatInputApplicationCommandInteractionData,
|
|
||||||
APICommandAutocompleteInteractionResponseCallbackData,
|
|
||||||
APIInteraction,
|
|
||||||
APIInteractionResponse,
|
|
||||||
APIInteractionResponseChannelMessageWithSource,
|
|
||||||
APIInteractionResponseDeferredChannelMessageWithSource,
|
|
||||||
APIInteractionResponseDeferredMessageUpdate,
|
|
||||||
APIInteractionResponsePong,
|
|
||||||
APIInteractionResponseUpdateMessage,
|
|
||||||
APIMessageApplicationCommandInteraction,
|
|
||||||
APIMessageApplicationCommandInteractionData,
|
|
||||||
APIMessageButtonInteractionData,
|
|
||||||
APIMessageChannelSelectInteractionData,
|
|
||||||
APIMessageComponentInteraction,
|
|
||||||
APIMessageComponentSelectMenuInteraction,
|
|
||||||
APIMessageMentionableSelectInteractionData,
|
|
||||||
APIMessageRoleSelectInteractionData,
|
|
||||||
APIMessageStringSelectInteractionData,
|
|
||||||
APIMessageUserSelectInteractionData,
|
|
||||||
APIModalSubmission,
|
|
||||||
APIModalSubmitInteraction,
|
|
||||||
APITextInputComponent,
|
|
||||||
APIUserApplicationCommandInteraction,
|
|
||||||
APIUserApplicationCommandInteractionData,
|
|
||||||
GatewayInteractionCreateDispatchData,
|
|
||||||
MessageFlags,
|
|
||||||
ObjectToLower,
|
|
||||||
OmitInsert,
|
|
||||||
RESTPostAPIInteractionCallbackJSONBody,
|
|
||||||
ToClass,
|
|
||||||
When,
|
|
||||||
} from '../common';
|
|
||||||
import { ApplicationCommandType, ComponentType, InteractionResponseType, InteractionType } from '../common';
|
|
||||||
import type {
|
import type {
|
||||||
ComponentInteractionMessageUpdate,
|
ComponentInteractionMessageUpdate,
|
||||||
InteractionCreateBodyRequest,
|
InteractionCreateBodyRequest,
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
import type { ListenerOptions } from '../builders';
|
|
||||||
import type { UsingClient } from '../commands';
|
|
||||||
import type {
|
import type {
|
||||||
APIChannelMention,
|
APIChannelMention,
|
||||||
APIGuildMember,
|
APIGuildMember,
|
||||||
APIMessage,
|
APIMessage,
|
||||||
APIUser,
|
APIUser,
|
||||||
GatewayMessageCreateDispatchData,
|
GatewayMessageCreateDispatchData,
|
||||||
ObjectToLower,
|
} from 'discord-api-types/v10';
|
||||||
} from '../common';
|
import type { ListenerOptions } from '../builders';
|
||||||
|
import type { UsingClient } from '../commands';
|
||||||
|
import type { ObjectToLower } from '../common';
|
||||||
import type { EmojiResolvable } from '../common/types/resolvables';
|
import type { EmojiResolvable } from '../common/types/resolvables';
|
||||||
import type { MessageCreateBodyRequest, MessageUpdateBodyRequest } from '../common/types/write';
|
import type { MessageCreateBodyRequest, MessageUpdateBodyRequest } from '../common/types/write';
|
||||||
import type { ActionRowMessageComponents } from '../components';
|
import type { ActionRowMessageComponents } from '../components';
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
import type { UsingClient } from '..';
|
|
||||||
import type { Attachment } from '../builders';
|
|
||||||
import type {
|
import type {
|
||||||
APISticker,
|
APISticker,
|
||||||
MethodContext,
|
|
||||||
ObjectToLower,
|
|
||||||
RESTPatchAPIGuildStickerJSONBody,
|
RESTPatchAPIGuildStickerJSONBody,
|
||||||
RESTPostAPIGuildStickerFormDataBody,
|
RESTPostAPIGuildStickerFormDataBody,
|
||||||
} from '../common';
|
} from 'discord-api-types/v10';
|
||||||
|
import type { UsingClient } from '..';
|
||||||
|
import type { Attachment } from '../builders';
|
||||||
|
import type { MethodContext, ObjectToLower } from '../common';
|
||||||
import { User } from './User';
|
import { User } from './User';
|
||||||
import { DiscordBase } from './extra/DiscordBase';
|
import { DiscordBase } from './extra/DiscordBase';
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import type { APIUser, MessageCreateBodyRequest, ObjectToLower } from '../common';
|
import type { APIUser } from 'discord-api-types/v10';
|
||||||
|
import type { MessageCreateBodyRequest, ObjectToLower } from '../common';
|
||||||
import type { ImageOptions } from '../common/types/options';
|
import type { ImageOptions } from '../common/types/options';
|
||||||
import { DiscordBase } from './extra/DiscordBase';
|
import { DiscordBase } from './extra/DiscordBase';
|
||||||
|
|
||||||
|
@ -1,16 +1,18 @@
|
|||||||
import type { UsingClient } from '../commands';
|
|
||||||
import type {
|
import type {
|
||||||
APIWebhook,
|
APIWebhook,
|
||||||
|
RESTGetAPIWebhookWithTokenMessageQuery,
|
||||||
|
RESTPatchAPIWebhookJSONBody,
|
||||||
|
RESTPatchAPIWebhookWithTokenJSONBody,
|
||||||
|
RESTPostAPIWebhookWithTokenQuery,
|
||||||
|
} from 'discord-api-types/v10';
|
||||||
|
import type { UsingClient } from '../commands';
|
||||||
|
import type {
|
||||||
ImageOptions,
|
ImageOptions,
|
||||||
MessageWebhookCreateBodyRequest,
|
MessageWebhookCreateBodyRequest,
|
||||||
MessageWebhookPayload,
|
MessageWebhookPayload,
|
||||||
MessageWebhookUpdateBodyRequest,
|
MessageWebhookUpdateBodyRequest,
|
||||||
MethodContext,
|
MethodContext,
|
||||||
ObjectToLower,
|
ObjectToLower,
|
||||||
RESTGetAPIWebhookWithTokenMessageQuery,
|
|
||||||
RESTPatchAPIWebhookJSONBody,
|
|
||||||
RESTPatchAPIWebhookWithTokenJSONBody,
|
|
||||||
RESTPostAPIWebhookWithTokenQuery,
|
|
||||||
} from '../common';
|
} from '../common';
|
||||||
import { AnonymousGuild } from './AnonymousGuild';
|
import { AnonymousGuild } from './AnonymousGuild';
|
||||||
import { User } from './User';
|
import { User } from './User';
|
||||||
|
@ -1,6 +1,16 @@
|
|||||||
import {
|
import {
|
||||||
|
type APIChannelBase,
|
||||||
|
type APIGuildChannel,
|
||||||
|
type APIGuildForumDefaultReactionEmoji,
|
||||||
|
type APIGuildForumTag,
|
||||||
ChannelFlags,
|
ChannelFlags,
|
||||||
ChannelType,
|
ChannelType,
|
||||||
|
type RESTGetAPIChannelMessageReactionUsersQuery,
|
||||||
|
type RESTPatchAPIChannelJSONBody,
|
||||||
|
type RESTPatchAPIGuildChannelPositionsJSONBody,
|
||||||
|
type RESTPostAPIChannelWebhookJSONBody,
|
||||||
|
type RESTPostAPIGuildChannelJSONBody,
|
||||||
|
type SortOrderType,
|
||||||
VideoQualityMode,
|
VideoQualityMode,
|
||||||
type APIDMChannel,
|
type APIDMChannel,
|
||||||
type APIGuildCategoryChannel,
|
type APIGuildCategoryChannel,
|
||||||
@ -17,21 +27,11 @@ import { mix } from 'ts-mixer';
|
|||||||
import { Embed, resolveAttachment } from '../builders';
|
import { Embed, resolveAttachment } from '../builders';
|
||||||
import type { UsingClient } from '../commands';
|
import type { UsingClient } from '../commands';
|
||||||
import type {
|
import type {
|
||||||
APIChannelBase,
|
|
||||||
APIGuildChannel,
|
|
||||||
APIGuildForumDefaultReactionEmoji,
|
|
||||||
APIGuildForumTag,
|
|
||||||
EmojiResolvable,
|
EmojiResolvable,
|
||||||
MessageCreateBodyRequest,
|
MessageCreateBodyRequest,
|
||||||
MessageUpdateBodyRequest,
|
MessageUpdateBodyRequest,
|
||||||
MethodContext,
|
MethodContext,
|
||||||
ObjectToLower,
|
ObjectToLower,
|
||||||
RESTGetAPIChannelMessageReactionUsersQuery,
|
|
||||||
RESTPatchAPIChannelJSONBody,
|
|
||||||
RESTPatchAPIGuildChannelPositionsJSONBody,
|
|
||||||
RESTPostAPIChannelWebhookJSONBody,
|
|
||||||
RESTPostAPIGuildChannelJSONBody,
|
|
||||||
SortOrderType,
|
|
||||||
StringToNumber,
|
StringToNumber,
|
||||||
ToClass,
|
ToClass,
|
||||||
} from '../common';
|
} from '../common';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import type { APIPartialGuild, ObjectToLower } from '../../common';
|
import { type APIPartialGuild, GuildFeature } from 'discord-api-types/v10';
|
||||||
import { GuildFeature } from '../../common';
|
import type { ObjectToLower } from '../../common';
|
||||||
import type { ImageOptions } from '../../common/types/options';
|
import type { ImageOptions } from '../../common/types/options';
|
||||||
import { DiscordBase } from './DiscordBase';
|
import { DiscordBase } from './DiscordBase';
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
|
import { FormattingPatterns } from 'discord-api-types/globals';
|
||||||
|
import type { APIPartialEmoji } from 'discord-api-types/v10';
|
||||||
import type { Cache } from '../../cache';
|
import type { Cache } from '../../cache';
|
||||||
import type { APIPartialEmoji, TypeArray } from '../../common';
|
import type { TypeArray } from '../../common';
|
||||||
import { DiscordEpoch, FormattingPatterns } from '../../common';
|
import { DiscordEpoch } from '../../common';
|
||||||
import type { EmojiResolvable } from '../../common/types/resolvables';
|
import type { EmojiResolvable } from '../../common/types/resolvables';
|
||||||
|
|
||||||
/** * Convert a timestamp to a snowflake. * @param timestamp The timestamp to convert. * @returns The snowflake. */
|
/** * Convert a timestamp to a snowflake. * @param timestamp The timestamp to convert. * @returns The snowflake. */
|
||||||
|
1
src/types/index.ts
Normal file
1
src/types/index.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
export * from 'discord-api-types/v10';
|
@ -1,63 +1,63 @@
|
|||||||
import type {
|
import {
|
||||||
APIAuditLogEntry,
|
type APIAuditLogEntry,
|
||||||
APIAutoModerationRule,
|
type APIAutoModerationRule,
|
||||||
APIChannel,
|
type APIChannel,
|
||||||
APIEntitlement,
|
type APIEntitlement,
|
||||||
APIGuild,
|
type APIGuild,
|
||||||
APIGuildMember,
|
type APIGuildMember,
|
||||||
APIGuildScheduledEvent,
|
type APIGuildScheduledEvent,
|
||||||
APIStageInstance,
|
type APIStageInstance,
|
||||||
APIUser,
|
type APIUser,
|
||||||
GatewayActivity,
|
type GatewayActivity,
|
||||||
GatewayAutoModerationActionExecutionDispatchData,
|
type GatewayAutoModerationActionExecutionDispatchData,
|
||||||
GatewayChannelPinsUpdateDispatchData,
|
type GatewayChannelPinsUpdateDispatchData,
|
||||||
GatewayChannelUpdateDispatchData,
|
type GatewayChannelUpdateDispatchData,
|
||||||
GatewayDispatchEvents,
|
GatewayDispatchEvents,
|
||||||
GatewayGuildBanAddDispatchData,
|
type GatewayGuildBanAddDispatchData,
|
||||||
GatewayGuildBanRemoveDispatchData,
|
type GatewayGuildBanRemoveDispatchData,
|
||||||
GatewayGuildCreateDispatchData,
|
type GatewayGuildCreateDispatchData,
|
||||||
GatewayGuildDeleteDispatchData,
|
type GatewayGuildDeleteDispatchData,
|
||||||
GatewayGuildEmojisUpdateDispatchData,
|
type GatewayGuildEmojisUpdateDispatchData,
|
||||||
GatewayGuildIntegrationsUpdateDispatchData,
|
type GatewayGuildIntegrationsUpdateDispatchData,
|
||||||
GatewayGuildMemberRemoveDispatchData,
|
type GatewayGuildMemberRemoveDispatchData,
|
||||||
GatewayGuildMemberUpdateDispatchData,
|
type GatewayGuildMemberUpdateDispatchData,
|
||||||
GatewayGuildMembersChunkDispatchData,
|
type GatewayGuildMembersChunkDispatchData,
|
||||||
GatewayGuildRoleCreateDispatchData,
|
type GatewayGuildRoleCreateDispatchData,
|
||||||
GatewayGuildRoleDeleteDispatchData,
|
type GatewayGuildRoleDeleteDispatchData,
|
||||||
GatewayGuildRoleUpdateDispatchData,
|
type GatewayGuildRoleUpdateDispatchData,
|
||||||
GatewayGuildScheduledEventUserRemoveDispatchData,
|
type GatewayGuildScheduledEventUserRemoveDispatchData,
|
||||||
GatewayGuildStickersUpdateDispatchData,
|
type GatewayGuildStickersUpdateDispatchData,
|
||||||
GatewayIntegrationCreateDispatchData,
|
type GatewayIntegrationCreateDispatchData,
|
||||||
GatewayIntegrationDeleteDispatchData,
|
type GatewayIntegrationDeleteDispatchData,
|
||||||
GatewayInteractionCreateDispatchData,
|
type GatewayInteractionCreateDispatchData,
|
||||||
GatewayInviteCreateDispatchData,
|
type GatewayInviteCreateDispatchData,
|
||||||
GatewayInviteDeleteDispatchData,
|
type GatewayInviteDeleteDispatchData,
|
||||||
GatewayMessageCreateDispatchData,
|
type GatewayMessageCreateDispatchData,
|
||||||
GatewayMessageDeleteBulkDispatchData,
|
type GatewayMessageDeleteBulkDispatchData,
|
||||||
GatewayMessageDeleteDispatchData,
|
type GatewayMessageDeleteDispatchData,
|
||||||
GatewayMessageReactionAddDispatchData,
|
type GatewayMessageReactionAddDispatchData,
|
||||||
GatewayMessageReactionRemoveAllDispatchData,
|
type GatewayMessageReactionRemoveAllDispatchData,
|
||||||
GatewayMessageReactionRemoveDispatchData,
|
type GatewayMessageReactionRemoveDispatchData,
|
||||||
GatewayMessageReactionRemoveEmojiDispatchData,
|
type GatewayMessageReactionRemoveEmojiDispatchData,
|
||||||
GatewayMessageUpdateDispatchData,
|
type GatewayMessageUpdateDispatchData,
|
||||||
GatewayPresenceUpdateData,
|
type GatewayPresenceUpdateData,
|
||||||
GatewayPresenceUpdateDispatchData,
|
type GatewayPresenceUpdateDispatchData,
|
||||||
GatewayReadyDispatchData,
|
type GatewayReadyDispatchData,
|
||||||
GatewayRequestGuildMembersDataWithQuery,
|
type GatewayRequestGuildMembersDataWithQuery,
|
||||||
GatewayRequestGuildMembersDataWithUserIds,
|
type GatewayRequestGuildMembersDataWithUserIds,
|
||||||
GatewayThreadCreateDispatchData,
|
type GatewayThreadCreateDispatchData,
|
||||||
GatewayThreadDeleteDispatchData,
|
type GatewayThreadDeleteDispatchData,
|
||||||
GatewayThreadListSyncDispatchData,
|
type GatewayThreadListSyncDispatchData,
|
||||||
GatewayThreadMemberUpdateDispatchData,
|
type GatewayThreadMemberUpdateDispatchData,
|
||||||
GatewayThreadMembersUpdateDispatchData,
|
type GatewayThreadMembersUpdateDispatchData,
|
||||||
GatewayTypingStartDispatchData,
|
type GatewayTypingStartDispatchData,
|
||||||
GatewayUserUpdateDispatchData,
|
type GatewayUserUpdateDispatchData,
|
||||||
GatewayVoiceServerUpdateDispatchData,
|
type GatewayVoiceServerUpdateDispatchData,
|
||||||
GatewayVoiceStateUpdateData,
|
type GatewayVoiceStateUpdateData,
|
||||||
GatewayWebhooksUpdateDispatchData,
|
type GatewayWebhooksUpdateDispatchData,
|
||||||
PresenceUpdateStatus,
|
type PresenceUpdateStatus,
|
||||||
RestToKeys,
|
} from 'discord-api-types/v10';
|
||||||
} from '../common';
|
import type { RestToKeys } from '../common';
|
||||||
import type { GatewayGuildMemberAddDispatchDataFixed } from '../structures';
|
import type { GatewayGuildMemberAddDispatchDataFixed } from '../structures';
|
||||||
|
|
||||||
/** https://discord.com/developers/docs/topics/gateway-events#update-presence */
|
/** https://discord.com/developers/docs/topics/gateway-events#update-presence */
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { GatewayDispatchPayload } from '../../common';
|
import type { GatewayDispatchPayload } from 'discord-api-types/v10';
|
||||||
import type { ShardManagerOptions, WorkerManagerOptions } from '../discord';
|
import type { ShardManagerOptions, WorkerManagerOptions } from '../discord';
|
||||||
|
|
||||||
const COMPRESS = false;
|
const COMPRESS = false;
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
|
import type { GatewayReceivePayload, GatewaySendPayload } from 'discord-api-types/v10';
|
||||||
|
import { GatewayCloseCodes, GatewayDispatchEvents, GatewayOpcodes } from 'discord-api-types/v10';
|
||||||
import { inflateSync } from 'node:zlib';
|
import { inflateSync } from 'node:zlib';
|
||||||
import type WS from 'ws';
|
import type WS from 'ws';
|
||||||
import { WebSocket, type CloseEvent, type ErrorEvent } from 'ws';
|
import { WebSocket, type CloseEvent, type ErrorEvent } from 'ws';
|
||||||
import type { GatewayReceivePayload, GatewaySendPayload, Logger } from '../../common';
|
import type { Logger } from '../../common';
|
||||||
import { GatewayCloseCodes, GatewayDispatchEvents, GatewayOpcodes } from '../../common';
|
|
||||||
import { properties } from '../constants';
|
import { properties } from '../constants';
|
||||||
import { DynamicBucket, PriorityQueue } from '../structures';
|
import { DynamicBucket, PriorityQueue } from '../structures';
|
||||||
import { ConnectTimeout } from '../structures/timeout';
|
import { ConnectTimeout } from '../structures/timeout';
|
||||||
|
@ -1,13 +1,15 @@
|
|||||||
import { parentPort, workerData } from 'node:worker_threads';
|
|
||||||
import {
|
import {
|
||||||
GatewayOpcodes,
|
GatewayOpcodes,
|
||||||
|
type GatewaySendPayload,
|
||||||
|
type GatewayUpdatePresence,
|
||||||
|
type GatewayVoiceStateUpdate,
|
||||||
|
} from 'discord-api-types/v10';
|
||||||
|
import { parentPort, workerData } from 'node:worker_threads';
|
||||||
|
import {
|
||||||
LogLevels,
|
LogLevels,
|
||||||
Logger,
|
Logger,
|
||||||
MergeOptions,
|
MergeOptions,
|
||||||
toSnakeCase,
|
toSnakeCase,
|
||||||
type GatewaySendPayload,
|
|
||||||
type GatewayUpdatePresence,
|
|
||||||
type GatewayVoiceStateUpdate,
|
|
||||||
type ObjectToLower,
|
type ObjectToLower,
|
||||||
type WatcherSendToShard,
|
type WatcherSendToShard,
|
||||||
} from '../../common';
|
} from '../../common';
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user