mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +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",
|
||||
"module": "./lib/index.js",
|
||||
"types": "./lib/index.d.ts",
|
||||
"files": ["lib/**"],
|
||||
"files": [
|
||||
"lib/**"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsc --outDir ./lib",
|
||||
"prepublishOnly": "npm run build",
|
||||
@ -25,7 +27,10 @@
|
||||
"ws": "^8.16.0"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.ts": ["biome check --apply", "biome format --write"]
|
||||
"*.ts": [
|
||||
"biome check --apply",
|
||||
"biome format --write"
|
||||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "1.6.0",
|
||||
@ -50,7 +55,13 @@
|
||||
"bugs": {
|
||||
"url": "https://github.com/tiramisulabs/seyfert"
|
||||
},
|
||||
"keywords": ["api", "discord", "bots", "typescript", "botdev"],
|
||||
"keywords": [
|
||||
"api",
|
||||
"discord",
|
||||
"bots",
|
||||
"typescript",
|
||||
"botdev"
|
||||
],
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
@ -59,5 +70,22 @@
|
||||
"name": "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,
|
||||
RESTPutAPIApplicationRoleConnectionMetadataResult,
|
||||
RESTPutAPIGuildApplicationCommandsPermissionsResult,
|
||||
} from '../../common';
|
||||
import type { RestArguments } from '../api';
|
||||
} from 'discord-api-types/v10';
|
||||
import type { ProxyRequestMethod } from '../Router';
|
||||
import type { RestArguments } from '../api';
|
||||
|
||||
export interface ApplicationRoutes {
|
||||
applications: (id: string) => {
|
||||
|
@ -52,9 +52,9 @@ import type {
|
||||
RESTPutAPIChannelRecipientJSONBody,
|
||||
RESTPutAPIChannelRecipientResult,
|
||||
RESTPutAPIChannelThreadMembersResult,
|
||||
} from '../../common';
|
||||
import type { RestArguments } from '../api';
|
||||
} from 'discord-api-types/v10';
|
||||
import type { ProxyRequestMethod } from '../Router';
|
||||
import type { RestArguments } from '../api';
|
||||
|
||||
export interface ChannelRoutes {
|
||||
channels(id: string): {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import type { RESTGetAPIGatewayBotResult, RESTGetAPIGatewayResult } from '../../common';
|
||||
import type { RestArguments } from '../api';
|
||||
import type { RESTGetAPIGatewayBotResult, RESTGetAPIGatewayResult } from 'discord-api-types/v10';
|
||||
import type { ProxyRequestMethod } from '../Router';
|
||||
import type { RestArguments } from '../api';
|
||||
|
||||
export interface GatewayRoutes {
|
||||
gateway: {
|
||||
|
@ -1,7 +1,5 @@
|
||||
import type {
|
||||
APIThreadChannel,
|
||||
Identify,
|
||||
OmitInsert,
|
||||
RESTDeleteAPIAutoModerationRuleResult,
|
||||
RESTDeleteAPIGuildBanResult,
|
||||
RESTDeleteAPIGuildEmojiResult,
|
||||
@ -112,7 +110,8 @@ import type {
|
||||
RESTPutAPIGuildMemberResult,
|
||||
RESTPutAPIGuildMemberRoleResult,
|
||||
RESTPutAPIGuildTemplateSyncResult,
|
||||
} from '../../common';
|
||||
} from 'discord-api-types/v10';
|
||||
import type { Identify, OmitInsert } from '../../common';
|
||||
import type { ProxyRequestMethod } from '../Router';
|
||||
import type { RestArguments } from '../api';
|
||||
import type { RawFile } from '../shared';
|
||||
|
@ -1,6 +1,6 @@
|
||||
import type { RESTPostAPIInteractionCallbackJSONBody } from '../../common';
|
||||
import type { RestArguments } from '../api';
|
||||
import type { RESTPostAPIInteractionCallbackJSONBody } from 'discord-api-types/v10';
|
||||
import type { ProxyRequestMethod } from '../Router';
|
||||
import type { RestArguments } from '../api';
|
||||
|
||||
export interface InteractionRoutes {
|
||||
interactions: (id: string) => (token: string) => {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import type { RESTDeleteAPIInviteResult, RESTGetAPIInviteQuery, RESTGetAPIInviteResult } from '../../common';
|
||||
import type { RestArguments } from '../api';
|
||||
import type { RESTDeleteAPIInviteResult, RESTGetAPIInviteQuery, RESTGetAPIInviteResult } from 'discord-api-types/v10';
|
||||
import type { ProxyRequestMethod } from '../Router';
|
||||
import type { RestArguments } from '../api';
|
||||
|
||||
export interface InviteRoutes {
|
||||
invites(id: string): {
|
||||
|
@ -5,9 +5,9 @@ import type {
|
||||
RESTPatchAPIStageInstanceResult,
|
||||
RESTPostAPIStageInstanceJSONBody,
|
||||
RESTPostAPIStageInstanceResult,
|
||||
} from '../../common';
|
||||
import type { RestArguments } from '../api';
|
||||
} from 'discord-api-types/v10';
|
||||
import type { ProxyRequestMethod } from '../Router';
|
||||
import type { RestArguments } from '../api';
|
||||
|
||||
export interface StageInstanceRoutes {
|
||||
'stage-instances': {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import type { RESTGetAPIStickerResult, RESTGetNitroStickerPacksResult } from '../../common';
|
||||
import type { RestArguments } from '../api';
|
||||
import type { RESTGetAPIStickerResult, RESTGetNitroStickerPacksResult } from 'discord-api-types/v10';
|
||||
import type { ProxyRequestMethod } from '../Router';
|
||||
import type { RestArguments } from '../api';
|
||||
|
||||
export interface StickerRoutes {
|
||||
stickers(id: string): {
|
||||
|
@ -13,9 +13,9 @@ import type {
|
||||
RESTPostAPICurrentUserCreateDMChannelJSONBody,
|
||||
RESTPutAPICurrentUserApplicationRoleConnectionJSONBody,
|
||||
RESTPutAPICurrentUserApplicationRoleConnectionResult,
|
||||
} from '../../common';
|
||||
import type { RestArguments } from '../api';
|
||||
} from 'discord-api-types/v10';
|
||||
import type { ProxyRequestMethod } from '../Router';
|
||||
import type { RestArguments } from '../api';
|
||||
|
||||
export interface UserRoutes {
|
||||
users: {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import type { RESTGetAPIVoiceRegionsResult } from '../../common';
|
||||
import type { RestArguments } from '../api';
|
||||
import type { RESTGetAPIVoiceRegionsResult } from 'discord-api-types/v10';
|
||||
import type { ProxyRequestMethod } from '../Router';
|
||||
import type { RestArguments } from '../api';
|
||||
|
||||
export interface VoiceRoutes {
|
||||
voice: {
|
||||
|
@ -21,9 +21,9 @@ import type {
|
||||
RESTPostAPIWebhookWithTokenSlackResult,
|
||||
RESTPostAPIWebhookWithTokenSlackWaitResult,
|
||||
RESTPostAPIWebhookWithTokenWaitResult,
|
||||
} from '../../common';
|
||||
import type { RestArguments } from '../api';
|
||||
} from 'discord-api-types/v10';
|
||||
import type { ProxyRequestMethod } from '../Router';
|
||||
import type { RestArguments } from '../api';
|
||||
|
||||
export interface WebhookRoutes {
|
||||
webhooks(id: string): {
|
||||
|
@ -3,8 +3,8 @@ import {
|
||||
type APIActionRowComponent,
|
||||
type APIActionRowComponentTypes,
|
||||
type APIMessageActionRowComponent,
|
||||
type RestOrArray,
|
||||
} from '../common';
|
||||
} from 'discord-api-types/v10';
|
||||
import type { RestOrArray } from '../common/types/util';
|
||||
import { BaseComponentBuilder } from './Base';
|
||||
import { fromComponent } from './index';
|
||||
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<
|
||||
TYPE extends Partial<APIBaseComponent<ComponentType>> = APIBaseComponent<ComponentType>,
|
||||
|
@ -1,13 +1,12 @@
|
||||
import { throwError } from '..';
|
||||
import {
|
||||
ComponentType,
|
||||
type APIButtonComponentWithCustomId,
|
||||
type APIButtonComponentWithURL,
|
||||
type APIMessageComponentEmoji,
|
||||
type ButtonStyle,
|
||||
type EmojiResolvable,
|
||||
type When,
|
||||
} from '../common';
|
||||
ComponentType,
|
||||
} from 'discord-api-types/v10';
|
||||
import { throwError } from '..';
|
||||
import type { EmojiResolvable, When } from '../common';
|
||||
import { resolvePartialEmoji } from '../structures/extra/functions';
|
||||
|
||||
export type ButtonStylesForID = Exclude<ButtonStyle, ButtonStyle.Link>;
|
||||
|
@ -1,14 +1,5 @@
|
||||
import {
|
||||
resolveColor,
|
||||
toSnakeCase,
|
||||
type APIEmbed,
|
||||
type APIEmbedAuthor,
|
||||
type APIEmbedField,
|
||||
type APIEmbedFooter,
|
||||
type ColorResolvable,
|
||||
type ObjectToLower,
|
||||
type RestOrArray,
|
||||
} from '../common';
|
||||
import type { APIEmbed, APIEmbedAuthor, APIEmbedField, APIEmbedFooter } from 'discord-api-types/v10';
|
||||
import { resolveColor, toSnakeCase, type ColorResolvable, type ObjectToLower, type RestOrArray } from '../common';
|
||||
|
||||
/**
|
||||
* Represents a message embed.
|
||||
|
@ -1,11 +1,11 @@
|
||||
import {
|
||||
ComponentType,
|
||||
type APIActionRowComponent,
|
||||
type APIModalInteractionResponseCallbackData,
|
||||
type APITextInputComponent,
|
||||
type RestOrArray,
|
||||
ComponentType,
|
||||
type TextInputStyle,
|
||||
} from '../common';
|
||||
} from 'discord-api-types/v10';
|
||||
import type { RestOrArray } from '../common';
|
||||
import type { ActionRow } from './ActionRow';
|
||||
import { BaseComponentBuilder, type OptionValuesLength } from './Base';
|
||||
import { fromComponent } from './index';
|
||||
|
@ -1,7 +1,4 @@
|
||||
import { throwError } from '..';
|
||||
import {
|
||||
ComponentType,
|
||||
SelectMenuDefaultValueType,
|
||||
type APIChannelSelectComponent,
|
||||
type APIMentionableSelectComponent,
|
||||
type APIMessageComponentEmoji,
|
||||
@ -12,10 +9,11 @@ import {
|
||||
type APIStringSelectComponent,
|
||||
type APIUserSelectComponent,
|
||||
type ChannelType,
|
||||
type EmojiResolvable,
|
||||
type RestOrArray,
|
||||
type ToClass,
|
||||
} from '../common';
|
||||
ComponentType,
|
||||
SelectMenuDefaultValueType,
|
||||
} from 'discord-api-types/v10';
|
||||
import { throwError } from '..';
|
||||
import type { EmojiResolvable, RestOrArray, ToClass } from '../common';
|
||||
import type {
|
||||
ChannelSelectMenuInteraction,
|
||||
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 { Button } from './Button';
|
||||
import { TextInput } from './Modal';
|
||||
|
19
src/cache/index.ts
vendored
19
src/cache/index.ts
vendored
@ -1,11 +1,4 @@
|
||||
import type {
|
||||
APIEmoji,
|
||||
APISticker,
|
||||
APIThreadChannel,
|
||||
GatewayDispatchPayload,
|
||||
GatewayReadyDispatchData,
|
||||
If,
|
||||
} from '../common';
|
||||
import type { If } from '../common';
|
||||
|
||||
import type { Adapter } from './adapters';
|
||||
|
||||
@ -22,8 +15,16 @@ import { Stickers } from './resources/stickers';
|
||||
import { Threads } from './resources/threads';
|
||||
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 { ChannelType, GatewayIntentBits } from '../common';
|
||||
import { Overwrites } from './resources/overwrites';
|
||||
|
||||
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 { UsingClient } from '../../../commands';
|
||||
import { fakePromise, type GatewayIntentBits } from '../../../common';
|
||||
import { fakePromise } from '../../../common';
|
||||
import type { Cache, ReturnCache } from '../../index';
|
||||
|
||||
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 { UsingClient } from '../../../commands';
|
||||
import { fakePromise, type GatewayIntentBits } from '../../../common';
|
||||
import { fakePromise } from '../../../common';
|
||||
import type { Cache, ReturnCache } from '../../index';
|
||||
|
||||
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 { UsingClient } from '../../../commands';
|
||||
import { fakePromise, type GatewayIntentBits } from '../../../common';
|
||||
import { fakePromise } from '../../../common';
|
||||
import type { Cache, ReturnCache } from '../../index';
|
||||
|
||||
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 { fakePromise, type APIEmoji } from '../../common';
|
||||
import { fakePromise } from '../../common';
|
||||
import { GuildEmoji } from '../../structures';
|
||||
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 { fakePromise, type APIGuild } from '../../common';
|
||||
import { fakePromise } from '../../common';
|
||||
import { Guild } from '../../structures';
|
||||
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';
|
||||
|
||||
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';
|
||||
|
||||
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 { fakePromise, type APISticker } from '../../common';
|
||||
import { fakePromise } from '../../common';
|
||||
import { Sticker } from '../../structures';
|
||||
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 { fakePromise, type APIThreadChannel } from '../../common';
|
||||
import { fakePromise } from '../../common';
|
||||
import { ThreadChannel } from '../../structures';
|
||||
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 { fakePromise, type APIUser } from '../../common';
|
||||
import { fakePromise } from '../../common';
|
||||
import { User } from '../../structures';
|
||||
import { BaseResource } from './default/base';
|
||||
|
||||
|
@ -20,10 +20,10 @@ import {
|
||||
WebhookShorter,
|
||||
filterSplit,
|
||||
magicImport,
|
||||
type LocaleString,
|
||||
type MakeRequired,
|
||||
} from '../common';
|
||||
|
||||
import type { LocaleString } from 'discord-api-types/rest/v10';
|
||||
import type { DeepPartial, IntentStrings, OmitInsert, When } from '../common/types/util';
|
||||
import type { ComponentCommand, ModalCommand } from '../components';
|
||||
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 type { ClientEvent, Command, CommandContext, EventHandlerLike, Message, SubCommand } from '..';
|
||||
import {
|
||||
GatewayIntentBits,
|
||||
type DeepPartial,
|
||||
type GatewayDispatchPayload,
|
||||
type GatewayPresenceUpdateData,
|
||||
type If,
|
||||
type WatcherPayload,
|
||||
type WatcherSendToShard,
|
||||
} from '../common';
|
||||
import type { DeepPartial, If, WatcherPayload, WatcherSendToShard } from '../common';
|
||||
import { EventHandler } from '../events';
|
||||
import { ClientUser } from '../structures';
|
||||
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 type { HttpRequest, HttpResponse } from 'uWebSockets.js';
|
||||
import { OverwrittenMimeTypes } from '../api';
|
||||
import { isBufferLike } from '../api/utils/utils';
|
||||
import type { APIInteraction, DeepPartial } from '../common';
|
||||
import { InteractionResponseType, InteractionType } from '../common';
|
||||
import type { DeepPartial } from '../common';
|
||||
import type { BaseClientOptions, InternalRuntimeConfigHTTP, StartOptions } from './base';
|
||||
import { BaseClient } from './base';
|
||||
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 { parentPort as manager } from 'node:worker_threads';
|
||||
import { ApiHandler } from '..';
|
||||
import { ApiHandler, Logger } from '..';
|
||||
import type { Cache } from '../cache';
|
||||
import { WorkerAdapter } from '../cache';
|
||||
import type { GatewayDispatchPayload, GatewaySendPayload, When } from '../common';
|
||||
import { GatewayIntentBits, LogLevels, Logger, type DeepPartial } from '../common';
|
||||
import { type DeepPartial, LogLevels, type When } from '../common';
|
||||
import { EventHandler, type EventHandlerLike } from '../events';
|
||||
import { ClientUser } from '../structures';
|
||||
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 {
|
||||
APIApplicationCommandBasicOption,
|
||||
APIApplicationCommandOption,
|
||||
APIApplicationCommandSubcommandGroupOption,
|
||||
FlatObjectKeys,
|
||||
LocaleString,
|
||||
PermissionStrings,
|
||||
} from '../../common';
|
||||
import { ApplicationCommandOptionType, ApplicationCommandType, magicImport } from '../../common';
|
||||
import { type FlatObjectKeys, magicImport } from '../../common';
|
||||
import type { AllChannels, AutocompleteInteraction, GuildRole, InteractionGuildMember, User } from '../../structures';
|
||||
import type { Groups, IntegrationTypes, InteractionContextTypes, RegisteredMiddlewares } from '../decorators';
|
||||
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 { 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 {
|
||||
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 { MenuCommandContext } from './menucontext';
|
||||
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 {
|
||||
ApplicationCommandType,
|
||||
MessageFlags,
|
||||
toSnakeCase,
|
||||
type InteractionCreateBodyRequest,
|
||||
type InteractionMessageUpdateBodyRequest,
|
||||
|
@ -1,10 +1,5 @@
|
||||
import {
|
||||
ApplicationCommandType,
|
||||
PermissionFlagsBits,
|
||||
type FlatObjectKeys,
|
||||
type LocaleString,
|
||||
type PermissionStrings,
|
||||
} from '../common';
|
||||
import { ApplicationCommandType, type LocaleString, PermissionFlagsBits } from 'discord-api-types/v10';
|
||||
import type { FlatObjectKeys, PermissionStrings } from '../common';
|
||||
import type { CommandOption, OptionsRecord, SubCommand } from './applications/chat';
|
||||
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 type { Logger } from '../common';
|
||||
import { BaseHandler, Locale, type LocaleString } from '../common';
|
||||
import { BaseHandler } from '../common';
|
||||
import { Command, SubCommand } from './applications/chat';
|
||||
import { ContextMenuCommand } from './applications/menu';
|
||||
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 type {
|
||||
APIApplicationCommandInteractionDataOption,
|
||||
APIAttachment,
|
||||
APIGuildMember,
|
||||
APIInteractionDataResolvedChannel,
|
||||
APIInteractionGuildMember,
|
||||
APIRole,
|
||||
APIUser,
|
||||
MakeRequired,
|
||||
} from '../common';
|
||||
import { ApplicationCommandOptionType } from '../common';
|
||||
import type { MakeRequired } from '../common';
|
||||
import type { AllChannels } from '../structures';
|
||||
import { GuildRole, InteractionGuildMember, User } from '../structures';
|
||||
import channelFrom from '../structures/channels';
|
||||
|
@ -1,7 +1,6 @@
|
||||
export * from './it/constants';
|
||||
export * from './it/utils';
|
||||
//
|
||||
export * from 'discord-api-types/v10';
|
||||
export * from './it/colors';
|
||||
export * from './it/logger';
|
||||
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 channelFrom, { type AllChannels } from '../../structures/channels';
|
||||
import { PermissionsBitField } from '../../structures/extra/Permissions';
|
||||
|
@ -1,15 +1,15 @@
|
||||
import {
|
||||
FormattingPatterns,
|
||||
type APIGuildMember,
|
||||
type GuildMemberResolvable,
|
||||
type RESTGetAPIGuildMembersQuery,
|
||||
type RESTGetAPIGuildMembersSearchQuery,
|
||||
type RESTPatchAPIGuildMemberJSONBody,
|
||||
type RESTPutAPIGuildBanJSONBody,
|
||||
type RESTPutAPIGuildMemberJSONBody,
|
||||
} from '..';
|
||||
import { FormattingPatterns } from 'discord-api-types/globals';
|
||||
import type {
|
||||
APIGuildMember,
|
||||
RESTGetAPIGuildMembersQuery,
|
||||
RESTGetAPIGuildMembersSearchQuery,
|
||||
RESTPatchAPIGuildMemberJSONBody,
|
||||
RESTPutAPIGuildBanJSONBody,
|
||||
RESTPutAPIGuildMemberJSONBody,
|
||||
} from 'discord-api-types/v10';
|
||||
import { GuildMember } from '../../structures';
|
||||
import { PermissionsBitField } from '../../structures/extra/Permissions';
|
||||
import type { GuildMemberResolvable } from '../types/resolvables';
|
||||
import { BaseShorter } from './base';
|
||||
|
||||
export class MemberShorter extends BaseShorter {
|
||||
|
@ -3,7 +3,7 @@ import type {
|
||||
RESTPatchAPIWebhookWithTokenJSONBody,
|
||||
RESTPostAPIChannelWebhookJSONBody,
|
||||
RESTPostAPIWebhookWithTokenJSONBody,
|
||||
} from '..';
|
||||
} from 'discord-api-types/v10';
|
||||
import { resolveFiles } from '../../builders';
|
||||
import {
|
||||
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 { 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 (
|
||||
...args: any[]
|
||||
|
@ -9,7 +9,7 @@ import type {
|
||||
RESTPatchAPIWebhookWithTokenMessageJSONBody,
|
||||
RESTPostAPIChannelMessageJSONBody,
|
||||
RESTPostAPIWebhookWithTokenJSONBody,
|
||||
} from '..';
|
||||
} from 'discord-api-types/v10';
|
||||
import type { RawFile } from '../../api';
|
||||
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 type { ActionRowMessageComponents } from './index';
|
||||
import { componentFactory } from './index';
|
||||
|
@ -1,16 +1,16 @@
|
||||
import { fromComponent } from '../builders';
|
||||
import type {
|
||||
APIActionRowComponent,
|
||||
APIActionRowComponentTypes,
|
||||
APIButtonComponent,
|
||||
APIChannelSelectComponent,
|
||||
APIMentionableSelectComponent,
|
||||
APIRoleSelectComponent,
|
||||
APIStringSelectComponent,
|
||||
APITextInputComponent,
|
||||
APIUserSelectComponent,
|
||||
import {
|
||||
type APIActionRowComponent,
|
||||
type APIActionRowComponentTypes,
|
||||
type APIButtonComponent,
|
||||
type APIChannelSelectComponent,
|
||||
type APIMentionableSelectComponent,
|
||||
type APIRoleSelectComponent,
|
||||
type APIStringSelectComponent,
|
||||
type APITextInputComponent,
|
||||
type APIUserSelectComponent,
|
||||
ComponentType,
|
||||
} from '../common';
|
||||
} from 'discord-api-types/v10';
|
||||
import { fromComponent } from '../builders';
|
||||
|
||||
export class BaseComponent<T extends ComponentType> {
|
||||
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';
|
||||
|
||||
export type APISelectMenuComponentTypes =
|
||||
|
@ -1,5 +1,5 @@
|
||||
import type { ButtonStyle, ComponentType } from 'discord-api-types/v10';
|
||||
import { Button, type ButtonStylesForID } from '../builders';
|
||||
import type { ButtonStyle, ComponentType } from '../common';
|
||||
import { BaseComponent } from './BaseComponent';
|
||||
|
||||
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';
|
||||
|
||||
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';
|
||||
|
||||
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';
|
||||
|
||||
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';
|
||||
|
||||
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';
|
||||
|
||||
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';
|
||||
|
||||
export class UserSelectMenuComponent extends BaseSelectMenuComponent<ComponentType.UserSelect> {
|
||||
|
@ -1,5 +1,4 @@
|
||||
import type { APIMessageActionRowComponent } from '../common';
|
||||
import { ButtonStyle, ComponentType } from '../common';
|
||||
import { type APIMessageActionRowComponent, ButtonStyle, ComponentType } from 'discord-api-types/v10';
|
||||
import { BaseComponent } from './BaseComponent';
|
||||
import { ButtonComponent, LinkButtonComponent } from './ButtonComponent';
|
||||
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 {
|
||||
BaseHandler,
|
||||
ReplaceRegex,
|
||||
magicImport,
|
||||
type GatewayDispatchPayload,
|
||||
type GatewayMessageCreateDispatch,
|
||||
type GatewayMessageDeleteBulkDispatch,
|
||||
type GatewayMessageDeleteDispatch,
|
||||
type MakeRequired,
|
||||
type OnFailCallback,
|
||||
type SnakeCase,
|
||||
|
@ -1,5 +1,5 @@
|
||||
import type { GatewayApplicationCommandPermissionsUpdateDispatchData } from 'discord-api-types/v10';
|
||||
import type { BaseClient } from '../../client/base';
|
||||
import type { GatewayApplicationCommandPermissionsUpdateDispatchData } from '../../common';
|
||||
import { toCamelCase } from '../../common';
|
||||
|
||||
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 GatewayAutoModerationActionExecutionDispatchData,
|
||||
type GatewayAutoModerationRuleCreateDispatchData,
|
||||
type GatewayAutoModerationRuleDeleteDispatchData,
|
||||
type GatewayAutoModerationRuleUpdateDispatchData,
|
||||
toCamelCase,
|
||||
} from '../../common';
|
||||
import { toCamelCase } from '../../common';
|
||||
import { AutoModerationRule } from '../../structures';
|
||||
|
||||
export const AUTO_MODERATION_ACTION_EXECUTION = (
|
||||
|
@ -1,12 +1,12 @@
|
||||
import {
|
||||
toCamelCase,
|
||||
type GatewayChannelCreateDispatchData,
|
||||
type GatewayChannelDeleteDispatchData,
|
||||
type GatewayChannelPinsUpdateDispatchData,
|
||||
type GatewayChannelUpdateDispatchData,
|
||||
} from '../../common';
|
||||
import type {
|
||||
GatewayChannelCreateDispatchData,
|
||||
GatewayChannelDeleteDispatchData,
|
||||
GatewayChannelPinsUpdateDispatchData,
|
||||
GatewayChannelUpdateDispatchData,
|
||||
} from 'discord-api-types/v10';
|
||||
|
||||
import type { BaseClient } from '../../client/base';
|
||||
import { toCamelCase } from '../../common';
|
||||
import type { AllChannels } from '../../structures';
|
||||
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 { GatewayDispatchPayload, GatewayReadyDispatchData, GatewayResumedDispatch } from '../../common';
|
||||
import { ClientUser } from '../../structures';
|
||||
|
||||
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 APIEntitlement, toCamelCase } from '../../common';
|
||||
import { toCamelCase } from '../../common';
|
||||
|
||||
export const ENTITLEMENT_CREATE = (_: BaseClient, data: APIEntitlement) => {
|
||||
return toCamelCase(data);
|
||||
|
@ -1,4 +1,3 @@
|
||||
import type { BaseClient } from '../../client/base';
|
||||
import type {
|
||||
GatewayGuildAuditLogEntryCreateDispatchData,
|
||||
GatewayGuildBanAddDispatchData,
|
||||
@ -20,7 +19,8 @@ import type {
|
||||
GatewayGuildScheduledEventUserRemoveDispatchData,
|
||||
GatewayGuildStickersUpdateDispatchData,
|
||||
GatewayGuildUpdateDispatchData,
|
||||
} from '../../common';
|
||||
} from 'discord-api-types/v10';
|
||||
import type { BaseClient } from '../../client/base';
|
||||
import { toCamelCase } from '../../common';
|
||||
import {
|
||||
Guild,
|
||||
|
@ -1,9 +1,9 @@
|
||||
import type { BaseClient } from '../../client/base';
|
||||
import type {
|
||||
GatewayIntegrationCreateDispatchData,
|
||||
GatewayIntegrationDeleteDispatchData,
|
||||
GatewayIntegrationUpdateDispatchData,
|
||||
} from '../../common';
|
||||
} from 'discord-api-types/v10';
|
||||
import type { BaseClient } from '../../client/base';
|
||||
import { toCamelCase } from '../../common';
|
||||
import { User } from '../../structures';
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import type { GatewayInteractionCreateDispatchData } from 'discord-api-types/v10';
|
||||
import type { BaseClient } from '../../client/base';
|
||||
import type { GatewayInteractionCreateDispatchData } from '../../common';
|
||||
import { BaseInteraction } from '../../structures';
|
||||
|
||||
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 { toCamelCase } from '../../common';
|
||||
|
@ -1,4 +1,3 @@
|
||||
import type { BaseClient } from '../../client/base';
|
||||
import type {
|
||||
APIMessage,
|
||||
GatewayMessageCreateDispatchData,
|
||||
@ -9,10 +8,9 @@ import type {
|
||||
GatewayMessageReactionRemoveDispatchData,
|
||||
GatewayMessageReactionRemoveEmojiDispatchData,
|
||||
GatewayMessageUpdateDispatchData,
|
||||
MakeRequired,
|
||||
PartialClass,
|
||||
} from '../../common';
|
||||
import { toCamelCase } from '../../common';
|
||||
} from 'discord-api-types/v10';
|
||||
import type { BaseClient } from '../../client/base';
|
||||
import { type MakeRequired, type PartialClass, toCamelCase } from '../../common';
|
||||
import { Message } from '../../structures';
|
||||
|
||||
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 { 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 { toCamelCase } from '../../common';
|
||||
|
@ -1,4 +1,3 @@
|
||||
import type { BaseClient } from '../../client/base';
|
||||
import type {
|
||||
GatewayThreadCreateDispatchData,
|
||||
GatewayThreadDeleteDispatchData,
|
||||
@ -6,7 +5,8 @@ import type {
|
||||
GatewayThreadMemberUpdateDispatchData,
|
||||
GatewayThreadMembersUpdateDispatchData,
|
||||
GatewayThreadUpdateDispatchData,
|
||||
} from '../../common';
|
||||
} from 'discord-api-types/v10';
|
||||
import type { BaseClient } from '../../client/base';
|
||||
import { toCamelCase } from '../../common';
|
||||
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 { toCamelCase } from '../../common';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import type { GatewayUserUpdateDispatchData } from 'discord-api-types/v10';
|
||||
import type { BaseClient } from '../../client/base';
|
||||
import type { GatewayUserUpdateDispatchData } from '../../common';
|
||||
import { User } from '../../structures';
|
||||
|
||||
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 { GatewayVoiceServerUpdateDispatchData, GatewayVoiceStateUpdateDispatchData } from '../../common';
|
||||
import { toCamelCase } from '../../common';
|
||||
import { GuildMember } from '../../structures';
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import type { GatewayWebhooksUpdateDispatchData } from 'discord-api-types/v10';
|
||||
import type { BaseClient } from '../../client/base';
|
||||
import type { GatewayWebhooksUpdateDispatchData } from '../../common';
|
||||
import { toCamelCase } from '../../common';
|
||||
|
||||
export const WEBHOOKS_UPDATE = (_self: BaseClient, data: GatewayWebhooksUpdateDispatchData) => {
|
||||
|
@ -1,3 +1,4 @@
|
||||
import { GatewayIntentBits } from 'discord-api-types/gateway/v10';
|
||||
import type {
|
||||
BaseClientOptions,
|
||||
InternalRuntimeConfig,
|
||||
@ -5,10 +6,8 @@ import type {
|
||||
RuntimeConfig,
|
||||
RuntimeConfigHTTP,
|
||||
} from './client/base';
|
||||
import { GatewayIntentBits } from './common';
|
||||
import type { ClientNameEvents, EventContext } from './events';
|
||||
|
||||
export { Logger, PermissionFlagsBits, PermissionStrings, Watcher } from './common';
|
||||
export { Logger, PermissionStrings, Watcher } from './common';
|
||||
//
|
||||
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';
|
||||
|
||||
export interface LangsHandlerLike {
|
||||
|
@ -1,11 +1,10 @@
|
||||
import type { UsingClient } from '../commands';
|
||||
import type {
|
||||
APIAutoModerationRule,
|
||||
MethodContext,
|
||||
ObjectToLower,
|
||||
RESTPatchAPIAutoModerationRuleJSONBody,
|
||||
RESTPostAPIAutoModerationRuleJSONBody,
|
||||
} from '../common';
|
||||
} from 'discord-api-types/v10';
|
||||
import type { UsingClient } from '../commands';
|
||||
import type { MethodContext, ObjectToLower } from '../common';
|
||||
import { DiscordBase } from './extra/DiscordBase';
|
||||
|
||||
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 { GatewayReadyDispatchData, RESTPatchAPICurrentUserJSONBody } from '../common';
|
||||
import { User } from './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 { APIGuild, APIPartialGuild, GatewayGuildCreateDispatchData, ObjectToLower } from '../common';
|
||||
import type { StructPropState, StructStates, ToClass } from '../common/types/util';
|
||||
import type { ObjectToLower, StructPropState, StructStates, ToClass } from '../common/types/util';
|
||||
import { AutoModerationRule } from './AutoModerationRule';
|
||||
import { GuildEmoji } from './GuildEmoji';
|
||||
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 { UsingClient } from '../commands';
|
||||
import type {
|
||||
APIEmoji,
|
||||
EmojiShorter,
|
||||
MethodContext,
|
||||
ObjectToLower,
|
||||
RESTPatchAPIChannelJSONBody,
|
||||
RESTPatchAPIGuildEmojiJSONBody,
|
||||
} from '../common';
|
||||
import type { EmojiShorter, MethodContext, ObjectToLower } from '../common';
|
||||
import { DiscordBase } from './extra/DiscordBase';
|
||||
|
||||
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';
|
||||
|
||||
export type GuildMemberData =
|
||||
@ -22,7 +6,20 @@ export type GuildMemberData =
|
||||
| GatewayGuildMemberAddDispatchData
|
||||
| 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 { MakeRequired, MessageCreateBodyRequest, ObjectToLower, ToClass } from '../common';
|
||||
import type { ImageOptions, MethodContext } from '../common/types/options';
|
||||
import type { GuildMemberResolvable } from '../common/types/resolvables';
|
||||
import { User } from './User';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import type { APIGuildPreview, APIPartialGuild } from 'discord-api-types/v10';
|
||||
import type { UsingClient } from '../commands';
|
||||
import type { APIGuildPreview, APIPartialGuild } from '../common';
|
||||
import { AnonymousGuild } from './AnonymousGuild';
|
||||
|
||||
/**
|
||||
|
@ -1,12 +1,11 @@
|
||||
import type { UsingClient } from '../commands';
|
||||
import type {
|
||||
APIRole,
|
||||
MethodContext,
|
||||
ObjectToLower,
|
||||
RESTPatchAPIGuildRoleJSONBody,
|
||||
RESTPatchAPIGuildRolePositionsJSONBody,
|
||||
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 { PermissionsBitField } from './extra/Permissions';
|
||||
|
||||
|
@ -1,11 +1,10 @@
|
||||
import type { UsingClient } from '../commands';
|
||||
import type {
|
||||
APITemplate,
|
||||
MethodContext,
|
||||
ObjectToLower,
|
||||
RESTPatchAPIGuildTemplateJSONBody,
|
||||
RESTPostAPIGuildTemplatesJSONBody,
|
||||
} from '../common';
|
||||
} from 'discord-api-types/v10';
|
||||
import type { UsingClient } from '../commands';
|
||||
import type { MethodContext, ObjectToLower } from '../common';
|
||||
import { Base } from './extra/Base';
|
||||
|
||||
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 type { RawFile } from '../api';
|
||||
import { ActionRow, Embed, Modal, resolveAttachment, resolveFiles } from '../builders';
|
||||
import { OptionResolver, type ContextOptionsResolved, type UsingClient } from '../commands';
|
||||
import type {
|
||||
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 { ObjectToLower, OmitInsert, ToClass, When } from '../common';
|
||||
import type {
|
||||
ComponentInteractionMessageUpdate,
|
||||
InteractionCreateBodyRequest,
|
||||
|
@ -1,13 +1,13 @@
|
||||
import type { ListenerOptions } from '../builders';
|
||||
import type { UsingClient } from '../commands';
|
||||
import type {
|
||||
APIChannelMention,
|
||||
APIGuildMember,
|
||||
APIMessage,
|
||||
APIUser,
|
||||
GatewayMessageCreateDispatchData,
|
||||
ObjectToLower,
|
||||
} from '../common';
|
||||
} from 'discord-api-types/v10';
|
||||
import type { ListenerOptions } from '../builders';
|
||||
import type { UsingClient } from '../commands';
|
||||
import type { ObjectToLower } from '../common';
|
||||
import type { EmojiResolvable } from '../common/types/resolvables';
|
||||
import type { MessageCreateBodyRequest, MessageUpdateBodyRequest } from '../common/types/write';
|
||||
import type { ActionRowMessageComponents } from '../components';
|
||||
|
@ -1,12 +1,11 @@
|
||||
import type { UsingClient } from '..';
|
||||
import type { Attachment } from '../builders';
|
||||
import type {
|
||||
APISticker,
|
||||
MethodContext,
|
||||
ObjectToLower,
|
||||
RESTPatchAPIGuildStickerJSONBody,
|
||||
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 { 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 { DiscordBase } from './extra/DiscordBase';
|
||||
|
||||
|
@ -1,16 +1,18 @@
|
||||
import type { UsingClient } from '../commands';
|
||||
import type {
|
||||
APIWebhook,
|
||||
RESTGetAPIWebhookWithTokenMessageQuery,
|
||||
RESTPatchAPIWebhookJSONBody,
|
||||
RESTPatchAPIWebhookWithTokenJSONBody,
|
||||
RESTPostAPIWebhookWithTokenQuery,
|
||||
} from 'discord-api-types/v10';
|
||||
import type { UsingClient } from '../commands';
|
||||
import type {
|
||||
ImageOptions,
|
||||
MessageWebhookCreateBodyRequest,
|
||||
MessageWebhookPayload,
|
||||
MessageWebhookUpdateBodyRequest,
|
||||
MethodContext,
|
||||
ObjectToLower,
|
||||
RESTGetAPIWebhookWithTokenMessageQuery,
|
||||
RESTPatchAPIWebhookJSONBody,
|
||||
RESTPatchAPIWebhookWithTokenJSONBody,
|
||||
RESTPostAPIWebhookWithTokenQuery,
|
||||
} from '../common';
|
||||
import { AnonymousGuild } from './AnonymousGuild';
|
||||
import { User } from './User';
|
||||
|
@ -1,6 +1,16 @@
|
||||
import {
|
||||
type APIChannelBase,
|
||||
type APIGuildChannel,
|
||||
type APIGuildForumDefaultReactionEmoji,
|
||||
type APIGuildForumTag,
|
||||
ChannelFlags,
|
||||
ChannelType,
|
||||
type RESTGetAPIChannelMessageReactionUsersQuery,
|
||||
type RESTPatchAPIChannelJSONBody,
|
||||
type RESTPatchAPIGuildChannelPositionsJSONBody,
|
||||
type RESTPostAPIChannelWebhookJSONBody,
|
||||
type RESTPostAPIGuildChannelJSONBody,
|
||||
type SortOrderType,
|
||||
VideoQualityMode,
|
||||
type APIDMChannel,
|
||||
type APIGuildCategoryChannel,
|
||||
@ -17,21 +27,11 @@ import { mix } from 'ts-mixer';
|
||||
import { Embed, resolveAttachment } from '../builders';
|
||||
import type { UsingClient } from '../commands';
|
||||
import type {
|
||||
APIChannelBase,
|
||||
APIGuildChannel,
|
||||
APIGuildForumDefaultReactionEmoji,
|
||||
APIGuildForumTag,
|
||||
EmojiResolvable,
|
||||
MessageCreateBodyRequest,
|
||||
MessageUpdateBodyRequest,
|
||||
MethodContext,
|
||||
ObjectToLower,
|
||||
RESTGetAPIChannelMessageReactionUsersQuery,
|
||||
RESTPatchAPIChannelJSONBody,
|
||||
RESTPatchAPIGuildChannelPositionsJSONBody,
|
||||
RESTPostAPIChannelWebhookJSONBody,
|
||||
RESTPostAPIGuildChannelJSONBody,
|
||||
SortOrderType,
|
||||
StringToNumber,
|
||||
ToClass,
|
||||
} from '../common';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import type { APIPartialGuild, ObjectToLower } from '../../common';
|
||||
import { GuildFeature } from '../../common';
|
||||
import { type APIPartialGuild, GuildFeature } from 'discord-api-types/v10';
|
||||
import type { ObjectToLower } from '../../common';
|
||||
import type { ImageOptions } from '../../common/types/options';
|
||||
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 { APIPartialEmoji, TypeArray } from '../../common';
|
||||
import { DiscordEpoch, FormattingPatterns } from '../../common';
|
||||
import type { TypeArray } from '../../common';
|
||||
import { DiscordEpoch } from '../../common';
|
||||
import type { EmojiResolvable } from '../../common/types/resolvables';
|
||||
|
||||
/** * 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 {
|
||||
APIAuditLogEntry,
|
||||
APIAutoModerationRule,
|
||||
APIChannel,
|
||||
APIEntitlement,
|
||||
APIGuild,
|
||||
APIGuildMember,
|
||||
APIGuildScheduledEvent,
|
||||
APIStageInstance,
|
||||
APIUser,
|
||||
GatewayActivity,
|
||||
GatewayAutoModerationActionExecutionDispatchData,
|
||||
GatewayChannelPinsUpdateDispatchData,
|
||||
GatewayChannelUpdateDispatchData,
|
||||
import {
|
||||
type APIAuditLogEntry,
|
||||
type APIAutoModerationRule,
|
||||
type APIChannel,
|
||||
type APIEntitlement,
|
||||
type APIGuild,
|
||||
type APIGuildMember,
|
||||
type APIGuildScheduledEvent,
|
||||
type APIStageInstance,
|
||||
type APIUser,
|
||||
type GatewayActivity,
|
||||
type GatewayAutoModerationActionExecutionDispatchData,
|
||||
type GatewayChannelPinsUpdateDispatchData,
|
||||
type GatewayChannelUpdateDispatchData,
|
||||
GatewayDispatchEvents,
|
||||
GatewayGuildBanAddDispatchData,
|
||||
GatewayGuildBanRemoveDispatchData,
|
||||
GatewayGuildCreateDispatchData,
|
||||
GatewayGuildDeleteDispatchData,
|
||||
GatewayGuildEmojisUpdateDispatchData,
|
||||
GatewayGuildIntegrationsUpdateDispatchData,
|
||||
GatewayGuildMemberRemoveDispatchData,
|
||||
GatewayGuildMemberUpdateDispatchData,
|
||||
GatewayGuildMembersChunkDispatchData,
|
||||
GatewayGuildRoleCreateDispatchData,
|
||||
GatewayGuildRoleDeleteDispatchData,
|
||||
GatewayGuildRoleUpdateDispatchData,
|
||||
GatewayGuildScheduledEventUserRemoveDispatchData,
|
||||
GatewayGuildStickersUpdateDispatchData,
|
||||
GatewayIntegrationCreateDispatchData,
|
||||
GatewayIntegrationDeleteDispatchData,
|
||||
GatewayInteractionCreateDispatchData,
|
||||
GatewayInviteCreateDispatchData,
|
||||
GatewayInviteDeleteDispatchData,
|
||||
GatewayMessageCreateDispatchData,
|
||||
GatewayMessageDeleteBulkDispatchData,
|
||||
GatewayMessageDeleteDispatchData,
|
||||
GatewayMessageReactionAddDispatchData,
|
||||
GatewayMessageReactionRemoveAllDispatchData,
|
||||
GatewayMessageReactionRemoveDispatchData,
|
||||
GatewayMessageReactionRemoveEmojiDispatchData,
|
||||
GatewayMessageUpdateDispatchData,
|
||||
GatewayPresenceUpdateData,
|
||||
GatewayPresenceUpdateDispatchData,
|
||||
GatewayReadyDispatchData,
|
||||
GatewayRequestGuildMembersDataWithQuery,
|
||||
GatewayRequestGuildMembersDataWithUserIds,
|
||||
GatewayThreadCreateDispatchData,
|
||||
GatewayThreadDeleteDispatchData,
|
||||
GatewayThreadListSyncDispatchData,
|
||||
GatewayThreadMemberUpdateDispatchData,
|
||||
GatewayThreadMembersUpdateDispatchData,
|
||||
GatewayTypingStartDispatchData,
|
||||
GatewayUserUpdateDispatchData,
|
||||
GatewayVoiceServerUpdateDispatchData,
|
||||
GatewayVoiceStateUpdateData,
|
||||
GatewayWebhooksUpdateDispatchData,
|
||||
PresenceUpdateStatus,
|
||||
RestToKeys,
|
||||
} from '../common';
|
||||
type GatewayGuildBanAddDispatchData,
|
||||
type GatewayGuildBanRemoveDispatchData,
|
||||
type GatewayGuildCreateDispatchData,
|
||||
type GatewayGuildDeleteDispatchData,
|
||||
type GatewayGuildEmojisUpdateDispatchData,
|
||||
type GatewayGuildIntegrationsUpdateDispatchData,
|
||||
type GatewayGuildMemberRemoveDispatchData,
|
||||
type GatewayGuildMemberUpdateDispatchData,
|
||||
type GatewayGuildMembersChunkDispatchData,
|
||||
type GatewayGuildRoleCreateDispatchData,
|
||||
type GatewayGuildRoleDeleteDispatchData,
|
||||
type GatewayGuildRoleUpdateDispatchData,
|
||||
type GatewayGuildScheduledEventUserRemoveDispatchData,
|
||||
type GatewayGuildStickersUpdateDispatchData,
|
||||
type GatewayIntegrationCreateDispatchData,
|
||||
type GatewayIntegrationDeleteDispatchData,
|
||||
type GatewayInteractionCreateDispatchData,
|
||||
type GatewayInviteCreateDispatchData,
|
||||
type GatewayInviteDeleteDispatchData,
|
||||
type GatewayMessageCreateDispatchData,
|
||||
type GatewayMessageDeleteBulkDispatchData,
|
||||
type GatewayMessageDeleteDispatchData,
|
||||
type GatewayMessageReactionAddDispatchData,
|
||||
type GatewayMessageReactionRemoveAllDispatchData,
|
||||
type GatewayMessageReactionRemoveDispatchData,
|
||||
type GatewayMessageReactionRemoveEmojiDispatchData,
|
||||
type GatewayMessageUpdateDispatchData,
|
||||
type GatewayPresenceUpdateData,
|
||||
type GatewayPresenceUpdateDispatchData,
|
||||
type GatewayReadyDispatchData,
|
||||
type GatewayRequestGuildMembersDataWithQuery,
|
||||
type GatewayRequestGuildMembersDataWithUserIds,
|
||||
type GatewayThreadCreateDispatchData,
|
||||
type GatewayThreadDeleteDispatchData,
|
||||
type GatewayThreadListSyncDispatchData,
|
||||
type GatewayThreadMemberUpdateDispatchData,
|
||||
type GatewayThreadMembersUpdateDispatchData,
|
||||
type GatewayTypingStartDispatchData,
|
||||
type GatewayUserUpdateDispatchData,
|
||||
type GatewayVoiceServerUpdateDispatchData,
|
||||
type GatewayVoiceStateUpdateData,
|
||||
type GatewayWebhooksUpdateDispatchData,
|
||||
type PresenceUpdateStatus,
|
||||
} from 'discord-api-types/v10';
|
||||
import type { RestToKeys } from '../common';
|
||||
import type { GatewayGuildMemberAddDispatchDataFixed } from '../structures';
|
||||
|
||||
/** 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';
|
||||
|
||||
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 type WS from 'ws';
|
||||
import { WebSocket, type CloseEvent, type ErrorEvent } from 'ws';
|
||||
import type { GatewayReceivePayload, GatewaySendPayload, Logger } from '../../common';
|
||||
import { GatewayCloseCodes, GatewayDispatchEvents, GatewayOpcodes } from '../../common';
|
||||
import type { Logger } from '../../common';
|
||||
import { properties } from '../constants';
|
||||
import { DynamicBucket, PriorityQueue } from '../structures';
|
||||
import { ConnectTimeout } from '../structures/timeout';
|
||||
|
@ -1,13 +1,15 @@
|
||||
import { parentPort, workerData } from 'node:worker_threads';
|
||||
import {
|
||||
GatewayOpcodes,
|
||||
type GatewaySendPayload,
|
||||
type GatewayUpdatePresence,
|
||||
type GatewayVoiceStateUpdate,
|
||||
} from 'discord-api-types/v10';
|
||||
import { parentPort, workerData } from 'node:worker_threads';
|
||||
import {
|
||||
LogLevels,
|
||||
Logger,
|
||||
MergeOptions,
|
||||
toSnakeCase,
|
||||
type GatewaySendPayload,
|
||||
type GatewayUpdatePresence,
|
||||
type GatewayVoiceStateUpdate,
|
||||
type ObjectToLower,
|
||||
type WatcherSendToShard,
|
||||
} 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