seyfert 3.2.1-dev-15657234528.0 → 3.2.2-dev-15717671418.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/lib/api/Routes/guilds.d.ts +1 -1
  2. package/lib/api/api.d.ts +1 -1
  3. package/lib/api/api.js +1 -1
  4. package/lib/api/index.d.ts +1 -1
  5. package/lib/api/index.js +1 -1
  6. package/lib/builders/Container.d.ts +1 -1
  7. package/lib/builders/Container.js +1 -1
  8. package/lib/builders/Section.d.ts +1 -1
  9. package/lib/builders/Section.js +1 -1
  10. package/lib/cache/index.d.ts +4 -4
  11. package/lib/cache/index.js +2 -2
  12. package/lib/cache/resources/guilds.d.ts +1 -1
  13. package/lib/client/base.d.ts +1 -1
  14. package/lib/client/base.js +3 -3
  15. package/lib/client/index.d.ts +1 -1
  16. package/lib/client/index.js +1 -1
  17. package/lib/client/transformers.d.ts +1 -1
  18. package/lib/client/workerclient.d.ts +4 -4
  19. package/lib/client/workerclient.js +1 -1
  20. package/lib/commands/applications/menucontext.js +0 -1
  21. package/lib/commands/applications/options.d.ts +1 -1
  22. package/lib/commands/applications/shared.d.ts +1 -1
  23. package/lib/commands/handle.d.ts +2 -2
  24. package/lib/commands/handle.js +1 -1
  25. package/lib/commands/handler.d.ts +1 -1
  26. package/lib/commands/index.d.ts +3 -3
  27. package/lib/commands/index.js +3 -3
  28. package/lib/common/index.d.ts +8 -8
  29. package/lib/common/index.js +12 -12
  30. package/lib/common/it/utils.d.ts +1 -1
  31. package/lib/common/it/utils.js +1 -3
  32. package/lib/common/shorters/messages.d.ts +1 -1
  33. package/lib/common/shorters/messages.js +1 -1
  34. package/lib/common/types/options.d.ts +1 -1
  35. package/lib/common/types/resolvables.d.ts +1 -1
  36. package/lib/components/Container.d.ts +1 -1
  37. package/lib/events/hooks/channel.d.ts +1 -1
  38. package/lib/events/hooks/guild.d.ts +1 -1
  39. package/lib/events/hooks/index.d.ts +1 -1
  40. package/lib/events/hooks/index.js +1 -1
  41. package/lib/events/hooks/interactions.d.ts +1 -1
  42. package/lib/events/hooks/presence.d.ts +1 -1
  43. package/lib/events/hooks/soundboard.d.ts +1 -1
  44. package/lib/events/hooks/thread.d.ts +1 -1
  45. package/lib/index.d.ts +3 -3
  46. package/lib/index.js +10 -10
  47. package/lib/structures/Guild.js +2 -2
  48. package/lib/structures/GuildBan.d.ts +1 -1
  49. package/lib/structures/Interaction.d.ts +2 -2
  50. package/lib/structures/Interaction.js +1 -2
  51. package/lib/structures/Message.d.ts +1 -1
  52. package/lib/structures/Message.js +1 -2
  53. package/lib/structures/channels.d.ts +2 -2
  54. package/lib/structures/index.d.ts +5 -5
  55. package/lib/structures/index.js +5 -5
  56. package/lib/types/index.d.ts +1 -1
  57. package/lib/types/index.js +1 -1
  58. package/lib/types/payloads/_interactions/base.d.ts +1 -1
  59. package/lib/types/payloads/application.d.ts +2 -2
  60. package/lib/types/payloads/components.d.ts +1 -1
  61. package/lib/types/payloads/index.d.ts +4 -4
  62. package/lib/types/payloads/index.js +4 -4
  63. package/lib/types/rest/index.d.ts +2 -2
  64. package/lib/types/rest/index.js +2 -2
  65. package/lib/websocket/SharedTypes.d.ts +1 -1
  66. package/lib/websocket/discord/shard.js +0 -1
  67. package/lib/websocket/index.d.ts +1 -1
  68. package/lib/websocket/index.js +1 -1
  69. package/package.json +4 -10
@@ -1,5 +1,5 @@
1
1
  import type { Identify, OmitInsert } from '../../common';
2
- import type { APIThreadChannel, RESTDeleteAPIAutoModerationRuleResult, RESTDeleteAPIGuildBanResult, RESTDeleteAPIGuildEmojiResult, RESTDeleteAPIGuildIntegrationResult, RESTDeleteAPIGuildMemberResult, RESTDeleteAPIGuildMemberRoleResult, RESTDeleteAPIGuildResult, RESTDeleteAPIGuildRoleResult, RESTDeleteAPIGuildScheduledEventResult, RESTDeleteAPIGuildStickerResult, RESTDeleteAPIGuildTemplateResult, RESTGetAPIAuditLogQuery, RESTGetAPIAuditLogResult, RESTGetAPIAutoModerationRuleResult, RESTGetAPIAutoModerationRulesResult, RESTGetAPICurrentUserVoiceState, RESTGetAPIGuildBanResult, RESTGetAPIGuildBansQuery, RESTGetAPIGuildBansResult, RESTGetAPIGuildChannelsResult, RESTGetAPIGuildEmojiResult, RESTGetAPIGuildEmojisResult, RESTGetAPIGuildIntegrationsResult, RESTGetAPIGuildInvitesResult, RESTGetAPIGuildMemberResult, RESTGetAPIGuildMembersQuery, RESTGetAPIGuildMembersResult, RESTGetAPIGuildMembersSearchQuery, RESTGetAPIGuildMembersSearchResult, RESTGetAPIGuildPreviewResult, RESTGetAPIGuildPruneCountQuery, RESTGetAPIGuildPruneCountResult, RESTGetAPIGuildQuery, RESTGetAPIGuildResult, RESTGetAPIGuildRoleResult, RESTGetAPIGuildRolesResult, RESTGetAPIGuildScheduledEventQuery, RESTGetAPIGuildScheduledEventResult, RESTGetAPIGuildScheduledEventUsersQuery, RESTGetAPIGuildScheduledEventUsersResult, RESTGetAPIGuildScheduledEventsQuery, RESTGetAPIGuildScheduledEventsResult, RESTGetAPIGuildSoundboardSoundsResult, RESTGetAPIGuildStickerResult, RESTGetAPIGuildStickersResult, RESTGetAPIGuildTemplatesResult, RESTGetAPIGuildThreadsResult, RESTGetAPIGuildVanityUrlResult, RESTGetAPIGuildVoiceRegionsResult, RESTGetAPIGuildWebhooksResult, RESTGetAPIGuildWelcomeScreenResult, RESTGetAPIGuildWidgetImageQuery, RESTGetAPIGuildWidgetImageResult, RESTGetAPIGuildWidgetJSONResult, RESTGetAPIGuildWidgetSettingsResult, RESTGetAPITemplateResult, RESTGetAPIUserVoiceState, RESTPatchAPIAutoModerationRuleJSONBody, RESTPatchAPIAutoModerationRuleResult, RESTPatchAPICurrentGuildMemberJSONBody, RESTPatchAPIGuildChannelPositionsJSONBody, RESTPatchAPIGuildChannelPositionsResult, RESTPatchAPIGuildEmojiJSONBody, RESTPatchAPIGuildEmojiResult, RESTPatchAPIGuildJSONBody, RESTPatchAPIGuildMemberJSONBody, RESTPatchAPIGuildMemberResult, RESTPatchAPIGuildResult, RESTPatchAPIGuildRoleJSONBody, RESTPatchAPIGuildRolePositionsJSONBody, RESTPatchAPIGuildRolePositionsResult, RESTPatchAPIGuildRoleResult, RESTPatchAPIGuildScheduledEventJSONBody, RESTPatchAPIGuildScheduledEventResult, RESTPatchAPIGuildSoundboardSound, RESTPatchAPIGuildSoundboardSoundResult, RESTPatchAPIGuildStickerJSONBody, RESTPatchAPIGuildStickerResult, RESTPatchAPIGuildTemplateJSONBody, RESTPatchAPIGuildTemplateResult, RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody, RESTPatchAPIGuildVoiceStateCurrentMemberResult, RESTPatchAPIGuildVoiceStateUserJSONBody, RESTPatchAPIGuildVoiceStateUserResult, RESTPatchAPIGuildWelcomeScreenJSONBody, RESTPatchAPIGuildWelcomeScreenResult, RESTPatchAPIGuildWidgetSettingsJSONBody, RESTPatchAPIGuildWidgetSettingsResult, RESTPostAPIAutoModerationRuleJSONBody, RESTPostAPIAutoModerationRuleResult, RESTPostAPIGuildBulkBanJSONBody, RESTPostAPIGuildBulkBanResult, RESTPostAPIGuildChannelJSONBody, RESTPostAPIGuildChannelResult, RESTPostAPIGuildEmojiJSONBody, RESTPostAPIGuildEmojiResult, RESTPostAPIGuildPruneJSONBody, RESTPostAPIGuildPruneResult, RESTPostAPIGuildRoleJSONBody, RESTPostAPIGuildRoleResult, RESTPostAPIGuildScheduledEventJSONBody, RESTPostAPIGuildScheduledEventResult, RESTPostAPIGuildSoundboardSound, RESTPostAPIGuildSoundboardSoundResult, RESTPostAPIGuildStickerFormDataBody, RESTPostAPIGuildStickerResult, RESTPostAPIGuildTemplatesJSONBody, RESTPostAPIGuildTemplatesResult, RESTPostAPIGuildsJSONBody, RESTPostAPIGuildsMFAJSONBody, RESTPostAPIGuildsMFAResult, RESTPostAPIGuildsResult, RESTPostAPITemplateCreateGuildJSONBody, RESTPostAPITemplateCreateGuildResult, RESTPutAPIGuildBanJSONBody, RESTPutAPIGuildBanResult, RESTPutAPIGuildMemberJSONBody, RESTPutAPIGuildMemberResult, RESTPutAPIGuildMemberRoleResult, RESTPutAPIGuildTemplateSyncResult } from '../../types';
2
+ import type { APIThreadChannel, RESTDeleteAPIAutoModerationRuleResult, RESTDeleteAPIGuildBanResult, RESTDeleteAPIGuildEmojiResult, RESTDeleteAPIGuildIntegrationResult, RESTDeleteAPIGuildMemberResult, RESTDeleteAPIGuildMemberRoleResult, RESTDeleteAPIGuildResult, RESTDeleteAPIGuildRoleResult, RESTDeleteAPIGuildScheduledEventResult, RESTDeleteAPIGuildStickerResult, RESTDeleteAPIGuildTemplateResult, RESTGetAPIAuditLogQuery, RESTGetAPIAuditLogResult, RESTGetAPIAutoModerationRuleResult, RESTGetAPIAutoModerationRulesResult, RESTGetAPICurrentUserVoiceState, RESTGetAPIGuildBanResult, RESTGetAPIGuildBansQuery, RESTGetAPIGuildBansResult, RESTGetAPIGuildChannelsResult, RESTGetAPIGuildEmojiResult, RESTGetAPIGuildEmojisResult, RESTGetAPIGuildIntegrationsResult, RESTGetAPIGuildInvitesResult, RESTGetAPIGuildMemberResult, RESTGetAPIGuildMembersQuery, RESTGetAPIGuildMembersResult, RESTGetAPIGuildMembersSearchQuery, RESTGetAPIGuildMembersSearchResult, RESTGetAPIGuildPreviewResult, RESTGetAPIGuildPruneCountQuery, RESTGetAPIGuildPruneCountResult, RESTGetAPIGuildQuery, RESTGetAPIGuildResult, RESTGetAPIGuildRoleResult, RESTGetAPIGuildRolesResult, RESTGetAPIGuildScheduledEventQuery, RESTGetAPIGuildScheduledEventResult, RESTGetAPIGuildScheduledEventsQuery, RESTGetAPIGuildScheduledEventsResult, RESTGetAPIGuildScheduledEventUsersQuery, RESTGetAPIGuildScheduledEventUsersResult, RESTGetAPIGuildSoundboardSoundsResult, RESTGetAPIGuildStickerResult, RESTGetAPIGuildStickersResult, RESTGetAPIGuildTemplatesResult, RESTGetAPIGuildThreadsResult, RESTGetAPIGuildVanityUrlResult, RESTGetAPIGuildVoiceRegionsResult, RESTGetAPIGuildWebhooksResult, RESTGetAPIGuildWelcomeScreenResult, RESTGetAPIGuildWidgetImageQuery, RESTGetAPIGuildWidgetImageResult, RESTGetAPIGuildWidgetJSONResult, RESTGetAPIGuildWidgetSettingsResult, RESTGetAPITemplateResult, RESTGetAPIUserVoiceState, RESTPatchAPIAutoModerationRuleJSONBody, RESTPatchAPIAutoModerationRuleResult, RESTPatchAPICurrentGuildMemberJSONBody, RESTPatchAPIGuildChannelPositionsJSONBody, RESTPatchAPIGuildChannelPositionsResult, RESTPatchAPIGuildEmojiJSONBody, RESTPatchAPIGuildEmojiResult, RESTPatchAPIGuildJSONBody, RESTPatchAPIGuildMemberJSONBody, RESTPatchAPIGuildMemberResult, RESTPatchAPIGuildResult, RESTPatchAPIGuildRoleJSONBody, RESTPatchAPIGuildRolePositionsJSONBody, RESTPatchAPIGuildRolePositionsResult, RESTPatchAPIGuildRoleResult, RESTPatchAPIGuildScheduledEventJSONBody, RESTPatchAPIGuildScheduledEventResult, RESTPatchAPIGuildSoundboardSound, RESTPatchAPIGuildSoundboardSoundResult, RESTPatchAPIGuildStickerJSONBody, RESTPatchAPIGuildStickerResult, RESTPatchAPIGuildTemplateJSONBody, RESTPatchAPIGuildTemplateResult, RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody, RESTPatchAPIGuildVoiceStateCurrentMemberResult, RESTPatchAPIGuildVoiceStateUserJSONBody, RESTPatchAPIGuildVoiceStateUserResult, RESTPatchAPIGuildWelcomeScreenJSONBody, RESTPatchAPIGuildWelcomeScreenResult, RESTPatchAPIGuildWidgetSettingsJSONBody, RESTPatchAPIGuildWidgetSettingsResult, RESTPostAPIAutoModerationRuleJSONBody, RESTPostAPIAutoModerationRuleResult, RESTPostAPIGuildBulkBanJSONBody, RESTPostAPIGuildBulkBanResult, RESTPostAPIGuildChannelJSONBody, RESTPostAPIGuildChannelResult, RESTPostAPIGuildEmojiJSONBody, RESTPostAPIGuildEmojiResult, RESTPostAPIGuildPruneJSONBody, RESTPostAPIGuildPruneResult, RESTPostAPIGuildRoleJSONBody, RESTPostAPIGuildRoleResult, RESTPostAPIGuildScheduledEventJSONBody, RESTPostAPIGuildScheduledEventResult, RESTPostAPIGuildSoundboardSound, RESTPostAPIGuildSoundboardSoundResult, RESTPostAPIGuildStickerFormDataBody, RESTPostAPIGuildStickerResult, RESTPostAPIGuildsJSONBody, RESTPostAPIGuildsMFAJSONBody, RESTPostAPIGuildsMFAResult, RESTPostAPIGuildsResult, RESTPostAPIGuildTemplatesJSONBody, RESTPostAPIGuildTemplatesResult, RESTPostAPITemplateCreateGuildJSONBody, RESTPostAPITemplateCreateGuildResult, RESTPutAPIGuildBanJSONBody, RESTPutAPIGuildBanResult, RESTPutAPIGuildMemberJSONBody, RESTPutAPIGuildMemberResult, RESTPutAPIGuildMemberRoleResult, RESTPutAPIGuildTemplateSyncResult } from '../../types';
3
3
  import type { RestArguments, RestArgumentsNoBody } from '../api';
4
4
  import type { RawFile } from '../shared';
5
5
  export interface GuildRoutes {
package/lib/api/api.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { type UUID } from 'node:crypto';
2
2
  import { type Awaitable, Logger } from '../common';
3
3
  import type { WorkerSendApiRequest } from '../websocket/discord/worker';
4
- import type { APIRoutes } from './Routes';
5
4
  import { Bucket } from './bucket';
5
+ import type { APIRoutes } from './Routes';
6
6
  import { type ApiHandlerInternalOptions, type ApiHandlerOptions, type ApiRequestOptions, type HttpMethods, type RawFile, type RequestHeaders } from './shared';
7
7
  export interface ApiHandler {
8
8
  debugger?: Logger;
package/lib/api/api.js CHANGED
@@ -4,8 +4,8 @@ exports.ApiHandler = void 0;
4
4
  const node_crypto_1 = require("node:crypto");
5
5
  const common_1 = require("../common");
6
6
  const utils_1 = require("../common/it/utils");
7
- const Router_1 = require("./Router");
8
7
  const bucket_1 = require("./bucket");
8
+ const Router_1 = require("./Router");
9
9
  const shared_1 = require("./shared");
10
10
  const utils_2 = require("./utils/utils");
11
11
  class ApiHandler {
@@ -1,4 +1,4 @@
1
+ export * from './api';
1
2
  export * from './Router';
2
3
  export * from './Routes';
3
- export * from './api';
4
4
  export * from './shared';
package/lib/api/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./api"), exports);
17
18
  __exportStar(require("./Router"), exports);
18
19
  __exportStar(require("./Routes"), exports);
19
- __exportStar(require("./api"), exports);
20
20
  __exportStar(require("./shared"), exports);
@@ -1,6 +1,6 @@
1
- import { type ActionRow } from '.';
2
1
  import { type ColorResolvable, type RestOrArray } from '../common';
3
2
  import { type APIContainerComponent } from '../types';
3
+ import { type ActionRow } from '.';
4
4
  import { BaseComponentBuilder } from './Base';
5
5
  import type { File } from './File';
6
6
  import type { MediaGallery } from './MediaGallery';
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Container = void 0;
4
- const _1 = require(".");
5
4
  const common_1 = require("../common");
6
5
  const types_1 = require("../types");
6
+ const _1 = require(".");
7
7
  const Base_1 = require("./Base");
8
8
  /**
9
9
  * Represents a container component builder.
@@ -1,6 +1,6 @@
1
- import { type Button } from '.';
2
1
  import type { RestOrArray } from '../common';
3
2
  import { type APISectionComponent } from '../types';
3
+ import { type Button } from '.';
4
4
  import { BaseComponentBuilder } from './Base';
5
5
  import type { TextDisplay } from './TextDisplay';
6
6
  import type { Thumbnail } from './Thumbnail';
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Section = void 0;
4
- const _1 = require(".");
5
4
  const types_1 = require("../types");
5
+ const _1 = require(".");
6
6
  const Base_1 = require("./Base");
7
7
  class Section extends Base_1.BaseComponentBuilder {
8
8
  components;
@@ -1,12 +1,11 @@
1
- import { type If, Logger } from '../common';
2
- import type { Adapter } from './adapters';
3
- import { Guilds } from './resources/guilds';
4
- import { Users } from './resources/users';
5
1
  import type { InternalOptions, UsingClient } from '../commands';
2
+ import { type If, Logger } from '../common';
6
3
  import { type GatewayDispatchPayload, GatewayIntentBits } from '../types';
4
+ import type { Adapter } from './adapters';
7
5
  import { Bans } from './resources/bans';
8
6
  import { Channels } from './resources/channels';
9
7
  import { Emojis } from './resources/emojis';
8
+ import { Guilds } from './resources/guilds';
10
9
  import { Members } from './resources/members';
11
10
  import { Messages } from './resources/messages';
12
11
  import { Overwrites } from './resources/overwrites';
@@ -14,6 +13,7 @@ import { Presences } from './resources/presence';
14
13
  import { Roles } from './resources/roles';
15
14
  import { StageInstances } from './resources/stage-instances';
16
15
  import { Stickers } from './resources/stickers';
16
+ import { Users } from './resources/users';
17
17
  import { VoiceStates } from './resources/voice-states';
18
18
  export { BaseResource } from './resources/default/base';
19
19
  export { GuildBasedResource } from './resources/default/guild-based';
@@ -16,12 +16,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.CacheFrom = exports.Cache = exports.GuildRelatedResource = exports.GuildBasedResource = exports.BaseResource = void 0;
18
18
  const common_1 = require("../common");
19
- const guilds_1 = require("./resources/guilds");
20
- const users_1 = require("./resources/users");
21
19
  const types_1 = require("../types");
22
20
  const bans_1 = require("./resources/bans");
23
21
  const channels_1 = require("./resources/channels");
24
22
  const emojis_1 = require("./resources/emojis");
23
+ const guilds_1 = require("./resources/guilds");
25
24
  const members_1 = require("./resources/members");
26
25
  const messages_1 = require("./resources/messages");
27
26
  const overwrites_1 = require("./resources/overwrites");
@@ -29,6 +28,7 @@ const presence_1 = require("./resources/presence");
29
28
  const roles_1 = require("./resources/roles");
30
29
  const stage_instances_1 = require("./resources/stage-instances");
31
30
  const stickers_1 = require("./resources/stickers");
31
+ const users_1 = require("./resources/users");
32
32
  const voice_states_1 = require("./resources/voice-states");
33
33
  var base_1 = require("./resources/default/base");
34
34
  Object.defineProperty(exports, "BaseResource", { enumerable: true, get: function () { return base_1.BaseResource; } });
@@ -1,6 +1,6 @@
1
- import type { CacheFrom, ReturnCache } from '..';
2
1
  import { type GuildStructure } from '../../client/transformers';
3
2
  import type { APIGuild, GatewayGuildCreateDispatchData } from '../../types';
3
+ import type { CacheFrom, ReturnCache } from '..';
4
4
  import { BaseResource } from './default/base';
5
5
  export declare class Guilds extends BaseResource<any, APIGuild | GatewayGuildCreateDispatchData> {
6
6
  namespace: string;
@@ -3,9 +3,9 @@ import type { Adapter, DisabledCache } from '../cache';
3
3
  import { Cache } from '../cache';
4
4
  import type { Command, CommandContext, ContextMenuCommand, ExtendedRC, ExtendedRCLocations, ExtraProps, MenuCommandContext, RegisteredMiddlewares, SubCommand, UsingClient } from '../commands';
5
5
  import { type InferWithPrefix, type MiddlewareContext } from '../commands/applications/shared';
6
+ import { HandleCommand } from '../commands/handle';
6
7
  import { CommandHandler } from '../commands/handler';
7
8
  import { ApplicationShorter, ChannelShorter, EmojiShorter, GuildShorter, InteractionShorter, InvitesShorter, Logger, type MakeRequired, MemberShorter, MessageShorter, ReactionShorter, RoleShorter, TemplateShorter, ThreadShorter, UsersShorter, WebhookShorter } from '../common';
8
- import { HandleCommand } from '../commands/handle';
9
9
  import { BanShorter } from '../common/shorters/bans';
10
10
  import { SoundboardShorter } from '../common/shorters/soundboard';
11
11
  import { VoiceStateShorter } from '../common/shorters/voiceStates';
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BaseClient = void 0;
4
+ const node_fs_1 = require("node:fs");
4
5
  const node_path_1 = require("node:path");
5
6
  const api_1 = require("../api");
7
+ const utils_1 = require("../api/utils/utils");
6
8
  const cache_1 = require("../cache");
7
9
  const shared_1 = require("../commands/applications/shared");
10
+ const handle_1 = require("../commands/handle");
8
11
  const handler_1 = require("../commands/handler");
9
12
  const common_1 = require("../common");
10
- const node_fs_1 = require("node:fs");
11
- const utils_1 = require("../api/utils/utils");
12
- const handle_1 = require("../commands/handle");
13
13
  const bans_1 = require("../common/shorters/bans");
14
14
  const soundboard_1 = require("../common/shorters/soundboard");
15
15
  const voiceStates_1 = require("../common/shorters/voiceStates");
@@ -1,5 +1,5 @@
1
1
  export type { RuntimeConfig, RuntimeConfigHTTP } from './base';
2
2
  export * from './client';
3
3
  export * from './httpclient';
4
- export * from './workerclient';
5
4
  export * from './transformers';
5
+ export * from './workerclient';
@@ -16,5 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./client"), exports);
18
18
  __exportStar(require("./httpclient"), exports);
19
- __exportStar(require("./workerclient"), exports);
20
19
  __exportStar(require("./transformers"), exports);
20
+ __exportStar(require("./workerclient"), exports);
@@ -1,6 +1,6 @@
1
1
  import { type CustomStructures, OptionResolver } from '../commands';
2
2
  import type { StructStates } from '../common/';
3
- import { AnonymousGuild, ApplicationEmoji, AutoModerationRule, BaseChannel, BaseGuildChannel, CategoryChannel, ClientUser, DMChannel, DirectoryChannel, Emoji, Entitlement, ForumChannel, Guild, GuildBan, GuildEmoji, GuildMember, GuildRole, GuildTemplate, InteractionGuildMember, MediaChannel, Message, NewsChannel, Poll, StageChannel, Sticker, TextGuildChannel, ThreadChannel, User, VoiceChannel, VoiceState, Webhook, WebhookMessage } from '../structures';
3
+ import { AnonymousGuild, ApplicationEmoji, AutoModerationRule, BaseChannel, BaseGuildChannel, CategoryChannel, ClientUser, DirectoryChannel, DMChannel, Emoji, Entitlement, ForumChannel, Guild, GuildBan, GuildEmoji, GuildMember, GuildRole, GuildTemplate, InteractionGuildMember, MediaChannel, Message, NewsChannel, Poll, StageChannel, Sticker, TextGuildChannel, ThreadChannel, User, VoiceChannel, VoiceState, Webhook, WebhookMessage } from '../structures';
4
4
  import { Application } from '../structures/Application';
5
5
  import type { ChannelType } from '../types';
6
6
  export type PollStructure = InferCustomStructure<Poll, 'Poll'>;
@@ -2,15 +2,15 @@ import { type Awaitable, type DeepPartial, type MakeRequired, type When } from '
2
2
  import { EventHandler } from '../events';
3
3
  import type { GatewayDispatchPayload } from '../types';
4
4
  import { Shard, type ShardManagerOptions, type WorkerData } from '../websocket';
5
+ import { MemberUpdateHandler } from '../websocket/discord/events/memberUpdate';
6
+ import { PresenceUpdateHandler } from '../websocket/discord/events/presenceUpdate';
7
+ import type { WorkerHeartbeaterMessages } from '../websocket/discord/heartbeater';
8
+ import type { ShardData } from '../websocket/discord/shared';
5
9
  import type { ClientHeartbeaterMessages, WorkerMessages, WorkerShardInfo } from '../websocket/discord/worker';
6
10
  import type { ManagerMessages, ManagerSpawnShards } from '../websocket/discord/workermanager';
7
11
  import type { BaseClientOptions, ServicesOptions, StartOptions } from './base';
8
12
  import { BaseClient } from './base';
9
13
  import type { Client, ClientOptions } from './client';
10
- import { MemberUpdateHandler } from '../websocket/discord/events/memberUpdate';
11
- import { PresenceUpdateHandler } from '../websocket/discord/events/presenceUpdate';
12
- import type { WorkerHeartbeaterMessages } from '../websocket/discord/heartbeater';
13
- import type { ShardData } from '../websocket/discord/shared';
14
14
  import { Collectors } from './collectors';
15
15
  import { type ClientUserStructure } from './transformers';
16
16
  export declare class WorkerClient<Ready extends boolean = boolean> extends BaseClient {
@@ -8,9 +8,9 @@ const cache_1 = require("../cache");
8
8
  const common_1 = require("../common");
9
9
  const events_1 = require("../events");
10
10
  const websocket_1 = require("../websocket");
11
- const base_1 = require("./base");
12
11
  const memberUpdate_1 = require("../websocket/discord/events/memberUpdate");
13
12
  const presenceUpdate_1 = require("../websocket/discord/events/presenceUpdate");
13
+ const base_1 = require("./base");
14
14
  const collectors_1 = require("./collectors");
15
15
  const transformers_1 = require("./transformers");
16
16
  let workerData;
@@ -19,7 +19,6 @@ class MenuCommandContext extends basecontext_1.BaseContext {
19
19
  }
20
20
  metadata = {};
21
21
  globalMetadata = {};
22
- // biome-ignore lint/suspicious/useGetterReturn: default don't exist.
23
22
  get target() {
24
23
  switch (this.interaction.data.type) {
25
24
  case types_1.ApplicationCommandType.Message: {
@@ -1,10 +1,10 @@
1
- import type { AutocompleteCallback, EntryPointContext, MenuCommandContext, OnAutocompleteErrorCallback, ReturnOptionsTypes } from '..';
2
1
  import type { Awaitable, FlatObjectKeys } from '../../common';
3
2
  import type { ModalContext } from '../../components';
4
3
  import type { ComponentContext } from '../../components/componentcontext';
5
4
  import type { MessageCommandInteraction, UserCommandInteraction } from '../../structures';
6
5
  import { type APIApplicationCommandBasicOption, type APIApplicationCommandOptionChoice, ApplicationCommandOptionType } from '../../types';
7
6
  import type { LocalizationMap } from '../../types/payloads';
7
+ import type { AutocompleteCallback, EntryPointContext, MenuCommandContext, OnAutocompleteErrorCallback, ReturnOptionsTypes } from '..';
8
8
  import type { CommandContext } from './chatcontext';
9
9
  import type { DefaultLocale, MiddlewareContext, OKFunction, SeyfertChannelMap, StopFunction } from './shared';
10
10
  export interface SeyfertBasicOption<T extends keyof ReturnOptionsTypes, R = true | false> {
@@ -1,4 +1,4 @@
1
- import type { CategoryChannelStructure, DMChannelStructure, DirectoryChannelStructure, ForumChannelStructure, MediaChannelStructure, NewsChannelStructure, StageChannelStructure, TextGuildChannelStructure, ThreadChannelStructure, VoiceChannelStructure } from '../../client';
1
+ import type { CategoryChannelStructure, DirectoryChannelStructure, DMChannelStructure, ForumChannelStructure, MediaChannelStructure, NewsChannelStructure, StageChannelStructure, TextGuildChannelStructure, ThreadChannelStructure, VoiceChannelStructure } from '../../client';
2
2
  import type { BaseClient } from '../../client/base';
3
3
  import type { IsStrictlyUndefined } from '../../common';
4
4
  import { ChannelType } from '../../types';
@@ -1,9 +1,9 @@
1
- import { Command, type CommandAutocompleteOption, CommandContext, type CommandOption, type ContextMenuCommand, type ContextOptionsResolved, type EntryPointCommand, EntryPointContext, MenuCommandContext, type MessageCommandOptionErrors, SubCommand, type UsingClient } from '.';
2
1
  import { type MessageStructure, type OptionResolverStructure, Transformers } from '../client/transformers';
3
2
  import type { MakeRequired } from '../common';
4
- import { AutocompleteInteraction, type ChatInputCommandInteraction, type ComponentInteraction, type EntryPointInteraction, type MessageCommandInteraction, type ModalSubmitInteraction, type UserCommandInteraction, type __InternalReplyFunction } from '../structures';
3
+ import { type __InternalReplyFunction, AutocompleteInteraction, type ChatInputCommandInteraction, type ComponentInteraction, type EntryPointInteraction, type MessageCommandInteraction, type ModalSubmitInteraction, type UserCommandInteraction } from '../structures';
5
4
  import type { PermissionsBitField } from '../structures/extra/Permissions';
6
5
  import { type APIApplicationCommandInteraction, type APIApplicationCommandInteractionDataOption, type APIInteraction, ApplicationCommandOptionType, type GatewayMessageCreateDispatchData } from '../types';
6
+ import { Command, type CommandAutocompleteOption, CommandContext, type CommandOption, type ContextMenuCommand, type ContextOptionsResolved, type EntryPointCommand, EntryPointContext, MenuCommandContext, type MessageCommandOptionErrors, SubCommand, type UsingClient } from '.';
7
7
  export type CommandOptionWithType = CommandOption & {
8
8
  type: ApplicationCommandOptionType;
9
9
  };
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.HandleCommand = void 0;
4
- const _1 = require(".");
5
4
  const transformers_1 = require("../client/transformers");
6
5
  const constants_1 = require("../common/it/constants");
7
6
  const components_1 = require("../components");
8
7
  const structures_1 = require("../structures");
9
8
  const types_1 = require("../types");
9
+ const _1 = require(".");
10
10
  class HandleCommand {
11
11
  client;
12
12
  constructor(client) {
@@ -1,7 +1,7 @@
1
- import type { EntryPointCommand } from '.';
2
1
  import type { Logger, NulleableCoalising, OmitInsert } from '../common';
3
2
  import { BaseHandler } from '../common';
4
3
  import { type APIApplicationCommandOption, type LocalizationMap } from '../types';
4
+ import type { EntryPointCommand } from '.';
5
5
  import { Command, type CommandOption, SubCommand } from './applications/chat';
6
6
  import { ContextMenuCommand } from './applications/menu';
7
7
  import { type UsingClient } from './applications/shared';
@@ -1,10 +1,10 @@
1
- export * from './applications/shared';
2
1
  export * from './applications/chat';
3
2
  export * from './applications/chatcontext';
3
+ export * from './applications/entrycontext';
4
+ export * from './applications/entryPoint';
4
5
  export * from './applications/menu';
5
6
  export * from './applications/menucontext';
6
7
  export * from './applications/options';
7
- export * from './applications/entryPoint';
8
- export * from './applications/entrycontext';
8
+ export * from './applications/shared';
9
9
  export * from './decorators';
10
10
  export * from './optionresolver';
@@ -14,14 +14,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./applications/shared"), exports);
18
17
  //
19
18
  __exportStar(require("./applications/chat"), exports);
20
19
  __exportStar(require("./applications/chatcontext"), exports);
20
+ __exportStar(require("./applications/entrycontext"), exports);
21
+ __exportStar(require("./applications/entryPoint"), exports);
21
22
  __exportStar(require("./applications/menu"), exports);
22
23
  __exportStar(require("./applications/menucontext"), exports);
23
24
  __exportStar(require("./applications/options"), exports);
24
- __exportStar(require("./applications/entryPoint"), exports);
25
- __exportStar(require("./applications/entrycontext"), exports);
25
+ __exportStar(require("./applications/shared"), exports);
26
26
  __exportStar(require("./decorators"), exports);
27
27
  __exportStar(require("./optionresolver"), exports);
@@ -1,24 +1,24 @@
1
- export * from './it/constants';
2
- export * from './it/utils';
1
+ export * from './bot/watcher';
3
2
  export * from './it/colors';
4
- export { CustomizeLoggerCallback, AssignFilenameCallback, LogLevels, Logger, LoggerOptions } from './it/logger';
3
+ export * from './it/constants';
5
4
  export * from './it/formatter';
6
- export * from './shorters/invites';
5
+ export { AssignFilenameCallback, CustomizeLoggerCallback, Logger, LoggerOptions, LogLevels } from './it/logger';
6
+ export * from './it/utils';
7
+ export * from './shorters/application';
7
8
  export * from './shorters/channels';
8
9
  export * from './shorters/emojis';
9
10
  export * from './shorters/guilds';
11
+ export * from './shorters/interaction';
12
+ export * from './shorters/invites';
10
13
  export * from './shorters/members';
11
14
  export * from './shorters/messages';
12
15
  export * from './shorters/reactions';
13
16
  export * from './shorters/roles';
14
17
  export * from './shorters/templates';
15
- export * from './shorters/users';
16
18
  export * from './shorters/threads';
19
+ export * from './shorters/users';
17
20
  export * from './shorters/webhook';
18
- export * from './shorters/interaction';
19
- export * from './shorters/application';
20
21
  export * from './types/options';
21
22
  export * from './types/resolvables';
22
23
  export * from './types/util';
23
24
  export * from './types/write';
24
- export * from './bot/watcher';
@@ -14,34 +14,34 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.Logger = exports.LogLevels = void 0;
18
- __exportStar(require("./it/constants"), exports);
19
- __exportStar(require("./it/utils"), exports);
17
+ exports.LogLevels = exports.Logger = void 0;
18
+ //
19
+ __exportStar(require("./bot/watcher"), exports);
20
20
  __exportStar(require("./it/colors"), exports);
21
+ __exportStar(require("./it/constants"), exports);
22
+ __exportStar(require("./it/formatter"), exports);
21
23
  var logger_1 = require("./it/logger");
22
- Object.defineProperty(exports, "LogLevels", { enumerable: true, get: function () { return logger_1.LogLevels; } });
23
24
  Object.defineProperty(exports, "Logger", { enumerable: true, get: function () { return logger_1.Logger; } });
24
- __exportStar(require("./it/formatter"), exports);
25
- // circular lol
26
- __exportStar(require("./shorters/invites"), exports);
25
+ Object.defineProperty(exports, "LogLevels", { enumerable: true, get: function () { return logger_1.LogLevels; } });
26
+ __exportStar(require("./it/utils"), exports);
27
+ __exportStar(require("./shorters/application"), exports);
27
28
  //
28
29
  __exportStar(require("./shorters/channels"), exports);
29
30
  __exportStar(require("./shorters/emojis"), exports);
30
31
  __exportStar(require("./shorters/guilds"), exports);
32
+ __exportStar(require("./shorters/interaction"), exports);
33
+ // circular lol
34
+ __exportStar(require("./shorters/invites"), exports);
31
35
  __exportStar(require("./shorters/members"), exports);
32
36
  __exportStar(require("./shorters/messages"), exports);
33
37
  __exportStar(require("./shorters/reactions"), exports);
34
38
  __exportStar(require("./shorters/roles"), exports);
35
39
  __exportStar(require("./shorters/templates"), exports);
36
- __exportStar(require("./shorters/users"), exports);
37
40
  __exportStar(require("./shorters/threads"), exports);
41
+ __exportStar(require("./shorters/users"), exports);
38
42
  __exportStar(require("./shorters/webhook"), exports);
39
- __exportStar(require("./shorters/interaction"), exports);
40
- __exportStar(require("./shorters/application"), exports);
41
43
  //
42
44
  __exportStar(require("./types/options"), exports);
43
45
  __exportStar(require("./types/resolvables"), exports);
44
46
  __exportStar(require("./types/util"), exports);
45
47
  __exportStar(require("./types/write"), exports);
46
- //
47
- __exportStar(require("./bot/watcher"), exports);
@@ -1,6 +1,6 @@
1
- import { type ColorResolvable, type EmojiResolvable, type Logger, type ObjectToLower, type ObjectToSnake, type TypeArray } from '..';
2
1
  import type { Cache } from '../../cache';
3
2
  import { type APIPartialEmoji, GatewayIntentBits } from '../../types';
3
+ import { type ColorResolvable, type EmojiResolvable, type Logger, type ObjectToLower, type ObjectToSnake, type TypeArray } from '..';
4
4
  /**
5
5
  * Calculates the shard ID for a guild based on its ID.
6
6
  * @param guildId The ID of the guild.
@@ -24,8 +24,8 @@ exports.toBuffer = toBuffer;
24
24
  exports.assertString = assertString;
25
25
  const node_fs_1 = require("node:fs");
26
26
  const node_path_1 = require("node:path");
27
- const __1 = require("..");
28
27
  const types_1 = require("../../types");
28
+ const __1 = require("..");
29
29
  /**
30
30
  * Calculates the shard ID for a guild based on its ID.
31
31
  * @param guildId The ID of the guild.
@@ -282,8 +282,6 @@ function lazyLoadPackage(mod) {
282
282
  return require(mod);
283
283
  }
284
284
  catch (e) {
285
- // biome-ignore lint/suspicious/noConsoleLog:
286
- // biome-ignore lint/suspicious/noConsole:
287
285
  console.log(`Cannot import ${mod}`, e);
288
286
  return;
289
287
  }
@@ -1,6 +1,6 @@
1
- import type { RESTGetAPIChannelMessagesQuery, RESTPostAPIChannelMessagesThreadsJSONBody } from '../../types';
2
1
  import type { ValidAnswerId } from '../../api/Routes/channels';
3
2
  import { type MessageStructure, type ThreadChannelStructure, type UserStructure } from '../../client';
3
+ import type { RESTGetAPIChannelMessagesQuery, RESTPostAPIChannelMessagesThreadsJSONBody } from '../../types';
4
4
  import type { MessageCreateBodyRequest, MessageUpdateBodyRequest } from '../types/write';
5
5
  import { BaseShorter } from './base';
6
6
  export declare class MessageShorter extends BaseShorter {
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MessageShorter = void 0;
4
4
  const builders_1 = require("../../builders");
5
- const structures_1 = require("../../structures");
6
5
  const cache_1 = require("../../cache");
7
6
  const client_1 = require("../../client");
7
+ const structures_1 = require("../../structures");
8
8
  const base_1 = require("./base");
9
9
  class MessageShorter extends base_1.BaseShorter {
10
10
  async write(channelId, { files, ...body }) {
@@ -1,6 +1,6 @@
1
- import type { Identify } from '..';
2
1
  import type { CDNUrlOptions } from '../../api';
3
2
  import type { UsingClient } from '../../commands';
3
+ import type { Identify } from '..';
4
4
  export type ImageOptions = CDNUrlOptions;
5
5
  export type MethodContext<T = object> = Identify<{
6
6
  client: UsingClient;
@@ -1,7 +1,7 @@
1
- import type { EmbedColors, OmitInsert } from '..';
2
1
  import type { Attachment, AttachmentDataType, AttachmentResolvable } from '../../builders';
3
2
  import type { GuildMember } from '../../structures';
4
3
  import type { APIGuildMember, APIPartialEmoji, RESTPostAPIApplicationEmojiJSONBody } from '../../types';
4
+ import type { EmbedColors, OmitInsert } from '..';
5
5
  export type EmojiResolvable = string | Partial<APIPartialEmoji> | `<${string | undefined}:${string}:${string}>`;
6
6
  export type GuildMemberResolvable = string | Partial<GuildMember> | APIGuildMember;
7
7
  export type ColorResolvable = `#${string}` | number | keyof typeof EmbedColors | 'Random' | [number, number, number];
@@ -1,5 +1,5 @@
1
- import { type ContainerComponents } from '.';
2
1
  import type { APIContainerComponent, ComponentType } from '../types';
2
+ import { type ContainerComponents } from '.';
3
3
  import { BaseComponent } from './BaseComponent';
4
4
  export declare class ContainerComponent extends BaseComponent<ComponentType.Container> {
5
5
  _components: ContainerComponents[];
@@ -1,6 +1,6 @@
1
- import type { GatewayChannelCreateDispatchData, GatewayChannelDeleteDispatchData, GatewayChannelPinsUpdateDispatchData, GatewayChannelUpdateDispatchData } from '../../types';
2
1
  import type { UsingClient } from '../../commands';
3
2
  import { type AllChannels } from '../../structures';
3
+ import type { GatewayChannelCreateDispatchData, GatewayChannelDeleteDispatchData, GatewayChannelPinsUpdateDispatchData, GatewayChannelUpdateDispatchData } from '../../types';
4
4
  export declare const CHANNEL_CREATE: (self: UsingClient, data: GatewayChannelCreateDispatchData) => AllChannels;
5
5
  export declare const CHANNEL_DELETE: (self: UsingClient, data: GatewayChannelDeleteDispatchData) => AllChannels;
6
6
  export declare const CHANNEL_PINS_UPDATE: (_self: UsingClient, data: GatewayChannelPinsUpdateDispatchData) => {
@@ -1,7 +1,7 @@
1
1
  import { type GuildEmojiStructure, type GuildMemberStructure, type GuildRoleStructure, type GuildStructure, type StickerStructure, type UserStructure } from '../../client/transformers';
2
2
  import type { UsingClient } from '../../commands';
3
3
  import { type ObjectToLower } from '../../common';
4
- import type { APIUnavailableGuild, GatewayGuildAuditLogEntryCreateDispatchData, GatewayGuildBanAddDispatchData, GatewayGuildBanRemoveDispatchData, GatewayGuildCreateDispatchData, GatewayGuildDeleteDispatchData, GatewayGuildEmojisUpdateDispatchData, GatewayGuildIntegrationsUpdateDispatchData, GatewayGuildMemberAddDispatchData, GatewayGuildMemberRemoveDispatchData, GatewayGuildMemberUpdateDispatchData, GatewayGuildMembersChunkDispatchData, GatewayGuildRoleCreateDispatchData, GatewayGuildRoleDeleteDispatchData, GatewayGuildRoleUpdateDispatchData, GatewayGuildScheduledEventCreateDispatchData, GatewayGuildScheduledEventDeleteDispatchData, GatewayGuildScheduledEventUpdateDispatchData, GatewayGuildScheduledEventUserAddDispatchData, GatewayGuildScheduledEventUserRemoveDispatchData, GatewayGuildStickersUpdateDispatchData, GatewayGuildUpdateDispatchData } from '../../types';
4
+ import type { APIUnavailableGuild, GatewayGuildAuditLogEntryCreateDispatchData, GatewayGuildBanAddDispatchData, GatewayGuildBanRemoveDispatchData, GatewayGuildCreateDispatchData, GatewayGuildDeleteDispatchData, GatewayGuildEmojisUpdateDispatchData, GatewayGuildIntegrationsUpdateDispatchData, GatewayGuildMemberAddDispatchData, GatewayGuildMemberRemoveDispatchData, GatewayGuildMembersChunkDispatchData, GatewayGuildMemberUpdateDispatchData, GatewayGuildRoleCreateDispatchData, GatewayGuildRoleDeleteDispatchData, GatewayGuildRoleUpdateDispatchData, GatewayGuildScheduledEventCreateDispatchData, GatewayGuildScheduledEventDeleteDispatchData, GatewayGuildScheduledEventUpdateDispatchData, GatewayGuildScheduledEventUserAddDispatchData, GatewayGuildScheduledEventUserRemoveDispatchData, GatewayGuildStickersUpdateDispatchData, GatewayGuildUpdateDispatchData } from '../../types';
5
5
  export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: GatewayGuildAuditLogEntryCreateDispatchData) => {
6
6
  guildId: string;
7
7
  targetId: string | null;
@@ -10,13 +10,13 @@ export * from './interactions';
10
10
  export * from './invite';
11
11
  export * from './message';
12
12
  export * from './presence';
13
+ export * from './soundboard';
13
14
  export * from './stage';
14
15
  export * from './thread';
15
16
  export * from './typing';
16
17
  export * from './user';
17
18
  export * from './voice';
18
19
  export * from './webhook';
19
- export * from './soundboard';
20
20
  import type { CamelCase } from '../../common';
21
21
  import type * as RawEvents from './index';
22
22
  export type ClientEvents = {
@@ -26,10 +26,10 @@ __exportStar(require("./interactions"), exports);
26
26
  __exportStar(require("./invite"), exports);
27
27
  __exportStar(require("./message"), exports);
28
28
  __exportStar(require("./presence"), exports);
29
+ __exportStar(require("./soundboard"), exports);
29
30
  __exportStar(require("./stage"), exports);
30
31
  __exportStar(require("./thread"), exports);
31
32
  __exportStar(require("./typing"), exports);
32
33
  __exportStar(require("./user"), exports);
33
34
  __exportStar(require("./voice"), exports);
34
35
  __exportStar(require("./webhook"), exports);
35
- __exportStar(require("./soundboard"), exports);
@@ -1,4 +1,4 @@
1
1
  import type { UsingClient } from '../../commands';
2
2
  import { BaseInteraction } from '../../structures';
3
3
  import type { GatewayInteractionCreateDispatchData } from '../../types';
4
- export declare const INTERACTION_CREATE: (self: UsingClient, data: GatewayInteractionCreateDispatchData) => import("../../structures").ChatInputCommandInteraction<boolean> | import("../../structures").UserCommandInteraction<boolean> | import("../../structures").MessageCommandInteraction<boolean> | import("../../structures").ButtonInteraction | import("../../structures").StringSelectMenuInteraction<string[]> | import("../../structures").UserSelectMenuInteraction | import("../../structures").RoleSelectMenuInteraction | import("../../structures").MentionableSelectMenuInteraction | import("../../structures").ChannelSelectMenuInteraction | import("../../structures").ModalSubmitInteraction<boolean> | import("../../structures").AutocompleteInteraction<boolean> | BaseInteraction<boolean, import("../../types").APIPingInteraction> | undefined;
4
+ export declare const INTERACTION_CREATE: (self: UsingClient, data: GatewayInteractionCreateDispatchData) => import("../../structures").ModalSubmitInteraction<boolean> | import("../../structures").ButtonInteraction | import("../../structures").ChannelSelectMenuInteraction | import("../../structures").RoleSelectMenuInteraction | import("../../structures").MentionableSelectMenuInteraction | import("../../structures").UserSelectMenuInteraction | import("../../structures").StringSelectMenuInteraction<string[]> | import("../../structures").ChatInputCommandInteraction<boolean> | import("../../structures").UserCommandInteraction<boolean> | import("../../structures").MessageCommandInteraction<boolean> | import("../../structures").AutocompleteInteraction<boolean> | BaseInteraction<boolean, import("../../types").APIPingInteraction> | undefined;
@@ -57,8 +57,8 @@ export declare const PRESENCE_UPDATE: (self: UsingClient, data: GatewayPresenceU
57
57
  smallText?: string | undefined;
58
58
  } | undefined;
59
59
  secrets?: {
60
- join?: string | undefined;
61
60
  match?: string | undefined;
61
+ join?: string | undefined;
62
62
  spectate?: string | undefined;
63
63
  } | undefined;
64
64
  instance?: boolean | undefined;
@@ -1,7 +1,7 @@
1
1
  import { type UserStructure } from '../../client';
2
2
  import type { UsingClient } from '../../commands';
3
3
  import { type ObjectToLower } from '../../common';
4
- import type { APISoundBoard, GatewayGuildSoundboardSoundCreateDispatchData, GatewayGuildSoundboardSoundDeleteDispatchData, GatewayGuildSoundboardSoundUpdateDispatchData, GatewayGuildSoundboardSoundsUpdateDispatchData, GatewaySoundboardSoundsDispatchData } from '../../types';
4
+ import type { APISoundBoard, GatewayGuildSoundboardSoundCreateDispatchData, GatewayGuildSoundboardSoundDeleteDispatchData, GatewayGuildSoundboardSoundsUpdateDispatchData, GatewayGuildSoundboardSoundUpdateDispatchData, GatewaySoundboardSoundsDispatchData } from '../../types';
5
5
  export declare const GUILD_SOUNDBOARD_SOUND_CREATE: (self: UsingClient, data: GatewayGuildSoundboardSoundCreateDispatchData) => (ObjectToLower<Omit<GatewayGuildSoundboardSoundCreateDispatchData, "user">> & {
6
6
  user: UserStructure;
7
7
  }) | ObjectToLower<Omit<GatewayGuildSoundboardSoundCreateDispatchData, "user">>;
@@ -1,7 +1,7 @@
1
1
  import { type ThreadChannelStructure } from '../../client/transformers';
2
2
  import type { UsingClient } from '../../commands';
3
3
  import { type ObjectToLower } from '../../common';
4
- import type { GatewayThreadCreateDispatchData, GatewayThreadDeleteDispatchData, GatewayThreadListSyncDispatchData, GatewayThreadMemberUpdateDispatchData, GatewayThreadMembersUpdateDispatchData, GatewayThreadUpdateDispatchData } from '../../types';
4
+ import type { GatewayThreadCreateDispatchData, GatewayThreadDeleteDispatchData, GatewayThreadListSyncDispatchData, GatewayThreadMembersUpdateDispatchData, GatewayThreadMemberUpdateDispatchData, GatewayThreadUpdateDispatchData } from '../../types';
5
5
  export declare const THREAD_CREATE: (self: UsingClient, data: GatewayThreadCreateDispatchData) => ThreadChannelStructure;
6
6
  export declare const THREAD_DELETE: (self: UsingClient, data: GatewayThreadDeleteDispatchData) => Promise<ThreadChannelStructure | ObjectToLower<GatewayThreadDeleteDispatchData>>;
7
7
  export declare const THREAD_LIST_SYNC: (_self: UsingClient, data: GatewayThreadListSyncDispatchData) => {
package/lib/index.d.ts CHANGED
@@ -1,17 +1,17 @@
1
1
  export * from './client';
2
2
  import { type BaseClientOptions, type InternalRuntimeConfig, type InternalRuntimeConfigHTTP, type RuntimeConfig, type RuntimeConfigHTTP } from './client/base';
3
3
  import type { ClientNameEvents, CustomEventsKeys, ResolveEventParams } from './events';
4
- export { Logger, PermissionStrings, Formatter } from './common';
5
- export { Collection, LimitedCollection } from './collection';
6
4
  export * from './api';
7
5
  export * from './builders';
8
6
  export * from './cache';
7
+ export { Collection, LimitedCollection } from './collection';
9
8
  export * from './commands';
9
+ export { Formatter, Logger, PermissionStrings } from './common';
10
10
  export * from './components';
11
11
  export * from './events';
12
12
  export * from './langs';
13
- export { ShardManager, WorkerManager } from './websocket/discord';
14
13
  export * from './structures';
14
+ export { ShardManager, WorkerManager } from './websocket/discord';
15
15
  /**
16
16
  * Creates an event with the specified data and run function.
17
17
  *
package/lib/index.js CHANGED
@@ -14,34 +14,34 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.config = exports.WorkerManager = exports.ShardManager = exports.LimitedCollection = exports.Collection = exports.Formatter = exports.Logger = void 0;
17
+ exports.config = exports.WorkerManager = exports.ShardManager = exports.Logger = exports.Formatter = exports.LimitedCollection = exports.Collection = void 0;
18
18
  exports.createEvent = createEvent;
19
19
  exports.extendContext = extendContext;
20
20
  __exportStar(require("./client"), exports);
21
21
  const base_1 = require("./client/base");
22
22
  const common_1 = require("./common");
23
23
  const types_1 = require("./types");
24
- var common_2 = require("./common");
25
- Object.defineProperty(exports, "Logger", { enumerable: true, get: function () { return common_2.Logger; } });
26
- Object.defineProperty(exports, "Formatter", { enumerable: true, get: function () { return common_2.Formatter; } });
27
- //
28
- var collection_1 = require("./collection");
29
- Object.defineProperty(exports, "Collection", { enumerable: true, get: function () { return collection_1.Collection; } });
30
- Object.defineProperty(exports, "LimitedCollection", { enumerable: true, get: function () { return collection_1.LimitedCollection; } });
31
24
  //
32
25
  __exportStar(require("./api"), exports);
33
26
  __exportStar(require("./builders"), exports);
34
27
  __exportStar(require("./cache"), exports);
28
+ //
29
+ var collection_1 = require("./collection");
30
+ Object.defineProperty(exports, "Collection", { enumerable: true, get: function () { return collection_1.Collection; } });
31
+ Object.defineProperty(exports, "LimitedCollection", { enumerable: true, get: function () { return collection_1.LimitedCollection; } });
35
32
  __exportStar(require("./commands"), exports);
33
+ var common_2 = require("./common");
34
+ Object.defineProperty(exports, "Formatter", { enumerable: true, get: function () { return common_2.Formatter; } });
35
+ Object.defineProperty(exports, "Logger", { enumerable: true, get: function () { return common_2.Logger; } });
36
36
  __exportStar(require("./components"), exports);
37
37
  __exportStar(require("./events"), exports);
38
38
  __exportStar(require("./langs"), exports);
39
39
  //
40
+ __exportStar(require("./structures"), exports);
41
+ //
40
42
  var discord_1 = require("./websocket/discord");
41
43
  Object.defineProperty(exports, "ShardManager", { enumerable: true, get: function () { return discord_1.ShardManager; } });
42
44
  Object.defineProperty(exports, "WorkerManager", { enumerable: true, get: function () { return discord_1.WorkerManager; } });
43
- //
44
- __exportStar(require("./structures"), exports);
45
45
  /**
46
46
  * Creates an event with the specified data and run function.
47
47
  *
@@ -2,14 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Guild = void 0;
4
4
  const AutoModerationRule_1 = require("./AutoModerationRule");
5
+ const channels_1 = require("./channels");
5
6
  const Emoji_1 = require("./Emoji");
7
+ const BaseGuild_1 = require("./extra/BaseGuild");
6
8
  const GuildBan_1 = require("./GuildBan");
7
9
  const GuildMember_1 = require("./GuildMember");
8
10
  const GuildRole_1 = require("./GuildRole");
9
11
  const GuildTemplate_1 = require("./GuildTemplate");
10
12
  const Sticker_1 = require("./Sticker");
11
- const channels_1 = require("./channels");
12
- const BaseGuild_1 = require("./extra/BaseGuild");
13
13
  class Guild extends BaseGuild_1.BaseGuild {
14
14
  joinedAt;
15
15
  memberCount;
@@ -3,7 +3,7 @@ import type { GuildBanStructure, GuildStructure } from '../client';
3
3
  import type { UsingClient } from '../commands';
4
4
  import { type MethodContext, type ObjectToLower } from '../common';
5
5
  import type { BanShorter } from '../common/shorters/bans';
6
- import type { APIBan, ActuallyBan, RESTGetAPIGuildBansQuery } from '../types';
6
+ import type { ActuallyBan, APIBan, RESTGetAPIGuildBansQuery } from '../types';
7
7
  import { DiscordBase } from './extra/DiscordBase';
8
8
  export interface GuildBan extends DiscordBase, ObjectToLower<Omit<APIBan, 'id'>> {
9
9
  }
@@ -1,9 +1,9 @@
1
- import { type APIApplicationCommandAutocompleteInteraction, type APIApplicationCommandInteraction, type APIBaseInteraction, type APIChatInputApplicationCommandInteraction, type APIChatInputApplicationCommandInteractionData, type APICommandAutocompleteInteractionResponseCallbackData, type APIEntryPointCommandInteraction, type APIInteraction, type APIInteractionResponse, type APIInteractionResponseChannelMessageWithSource, type APIInteractionResponseDeferredChannelMessageWithSource, type APIInteractionResponseDeferredMessageUpdate, type APIInteractionResponsePong, type APIInteractionResponseUpdateMessage, type APIMessageApplicationCommandInteraction, type APIMessageApplicationCommandInteractionData, type APIMessageButtonInteractionData, type APIMessageComponentInteraction, type APIMessageComponentSelectMenuInteraction, type APIMessageStringSelectInteractionData, type APIModalSubmission, type APIModalSubmitInteraction, type APIUserApplicationCommandInteraction, type APIUserApplicationCommandInteractionData, ApplicationCommandType, ComponentType, type GatewayInteractionCreateDispatchData, type InteractionCallbackData, type InteractionCallbackResourceActivity, InteractionResponseType, InteractionType, type MessageFlags, type RESTPostAPIInteractionCallbackJSONBody, type RESTPostAPIInteractionCallbackResult } from '../types';
2
1
  import type { RawFile } from '../api';
3
2
  import type { ReturnCache } from '../cache';
4
3
  import { type EntitlementStructure, type GuildRoleStructure, type GuildStructure, type InteractionGuildMemberStructure, type MessageStructure, type OptionResolverStructure, type UserStructure, type WebhookMessageStructure } from '../client/transformers';
5
4
  import type { UsingClient } from '../commands';
6
5
  import { type ComponentInteractionMessageUpdate, type InteractionCreateBodyRequest, type InteractionMessageUpdateBodyRequest, type MessageCreateBodyRequest, type MessageUpdateBodyRequest, type MessageWebhookCreateBodyRequest, type ModalCreateBodyRequest, type ObjectToLower, type OmitInsert, type ToClass, type When } from '../common';
6
+ import { type APIApplicationCommandAutocompleteInteraction, type APIApplicationCommandInteraction, type APIBaseInteraction, type APIChatInputApplicationCommandInteraction, type APIChatInputApplicationCommandInteractionData, type APICommandAutocompleteInteractionResponseCallbackData, type APIEntryPointCommandInteraction, type APIInteraction, type APIInteractionResponse, type APIInteractionResponseChannelMessageWithSource, type APIInteractionResponseDeferredChannelMessageWithSource, type APIInteractionResponseDeferredMessageUpdate, type APIInteractionResponsePong, type APIInteractionResponseUpdateMessage, type APIMessageApplicationCommandInteraction, type APIMessageApplicationCommandInteractionData, type APIMessageButtonInteractionData, type APIMessageComponentInteraction, type APIMessageComponentSelectMenuInteraction, type APIMessageStringSelectInteractionData, type APIModalSubmission, type APIModalSubmitInteraction, type APIUserApplicationCommandInteraction, type APIUserApplicationCommandInteractionData, ApplicationCommandType, ComponentType, type GatewayInteractionCreateDispatchData, type InteractionCallbackData, type InteractionCallbackResourceActivity, InteractionResponseType, InteractionType, type MessageFlags, type RESTPostAPIInteractionCallbackJSONBody, type RESTPostAPIInteractionCallbackResult } from '../types';
7
7
  import { type AllChannels } from './';
8
8
  import { DiscordBase } from './extra/DiscordBase';
9
9
  import { PermissionsBitField } from './extra/Permissions';
@@ -50,7 +50,7 @@ export declare class BaseInteraction<FromGuild extends boolean = boolean, Type e
50
50
  isAutocomplete(): this is AutocompleteInteraction;
51
51
  isModal(): this is ModalSubmitInteraction;
52
52
  isEntryPoint(): this is EntryPointInteraction;
53
- static from(client: UsingClient, gateway: GatewayInteractionCreateDispatchData, __reply?: __InternalReplyFunction): ChatInputCommandInteraction<boolean> | UserCommandInteraction<boolean> | MessageCommandInteraction<boolean> | ButtonInteraction | StringSelectMenuInteraction<string[]> | UserSelectMenuInteraction | RoleSelectMenuInteraction | MentionableSelectMenuInteraction | ChannelSelectMenuInteraction | ModalSubmitInteraction<boolean> | AutocompleteInteraction<boolean> | BaseInteraction<boolean, import("../types").APIPingInteraction> | undefined;
53
+ static from(client: UsingClient, gateway: GatewayInteractionCreateDispatchData, __reply?: __InternalReplyFunction): ModalSubmitInteraction<boolean> | ButtonInteraction | ChannelSelectMenuInteraction | RoleSelectMenuInteraction | MentionableSelectMenuInteraction | UserSelectMenuInteraction | StringSelectMenuInteraction<string[]> | ChatInputCommandInteraction<boolean> | UserCommandInteraction<boolean> | MessageCommandInteraction<boolean> | AutocompleteInteraction<boolean> | BaseInteraction<boolean, import("../types").APIPingInteraction> | undefined;
54
54
  fetchGuild(mode?: 'rest' | 'flow'): Promise<GuildStructure<'cached' | 'api'> | undefined>;
55
55
  fetchGuild(mode: 'cache'): ReturnCache<GuildStructure<'cached'> | undefined>;
56
56
  }
@@ -7,11 +7,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.ModalSubmitInteraction = exports.MessageCommandInteraction = exports.UserCommandInteraction = exports.ChatInputCommandInteraction = exports.UserSelectMenuInteraction = exports.RoleSelectMenuInteraction = exports.MentionableSelectMenuInteraction = exports.ChannelSelectMenuInteraction = exports.StringSelectMenuInteraction = exports.SelectMenuInteraction = exports.ButtonInteraction = exports.ComponentInteraction = exports.EntryPointInteraction = exports.ApplicationCommandInteraction = exports.Interaction = exports.AutocompleteInteraction = exports.BaseInteraction = void 0;
10
- const types_1 = require("../types");
11
10
  const builders_1 = require("../builders");
12
11
  const transformers_1 = require("../client/transformers");
13
12
  const common_1 = require("../common");
14
13
  const mixer_1 = require("../deps/mixer");
14
+ const types_1 = require("../types");
15
15
  const _1 = require("./");
16
16
  const DiscordBase_1 = require("./extra/DiscordBase");
17
17
  const Permissions_1 = require("./extra/Permissions");
@@ -183,7 +183,6 @@ class BaseInteraction extends DiscordBase_1.DiscordBase {
183
183
  switch (gateway.type) {
184
184
  case types_1.InteractionType.ApplicationCommandAutocomplete:
185
185
  return new AutocompleteInteraction(client, gateway, undefined, __reply);
186
- // biome-ignore lint/suspicious/noFallthroughSwitchClause: bad interaction between biome and ts-server
187
186
  case types_1.InteractionType.ApplicationCommand:
188
187
  switch (gateway.data.type) {
189
188
  case types_1.ApplicationCommandType.ChatInput:
@@ -7,8 +7,8 @@ import type { EmojiResolvable } from '../common/types/resolvables';
7
7
  import type { MessageCreateBodyRequest, MessageUpdateBodyRequest } from '../common/types/write';
8
8
  import type { TopLevelComponents } from '../components';
9
9
  import type { APIChannelMention, APIEmbed, APIMessage, GatewayMessageCreateDispatchData } from '../types';
10
- import type { MessageWebhookMethodEditParams, MessageWebhookMethodWriteParams } from './Webhook';
11
10
  import { DiscordBase } from './extra/DiscordBase';
11
+ import type { MessageWebhookMethodEditParams, MessageWebhookMethodWriteParams } from './Webhook';
12
12
  export type MessageData = APIMessage | GatewayMessageCreateDispatchData;
13
13
  export interface BaseMessage extends DiscordBase, ObjectToLower<Omit<MessageData, 'timestamp' | 'author' | 'mentions' | 'components' | 'poll' | 'embeds'>> {
14
14
  timestamp?: number;
@@ -4,7 +4,6 @@ exports.InMessageEmbed = exports.WebhookMessage = exports.Message = exports.Base
4
4
  const __1 = require("..");
5
5
  const transformers_1 = require("../client/transformers");
6
6
  const common_1 = require("../common");
7
- const common_2 = require("../common");
8
7
  const DiscordBase_1 = require("./extra/DiscordBase");
9
8
  class BaseMessage extends DiscordBase_1.DiscordBase {
10
9
  embeds;
@@ -26,7 +25,7 @@ class BaseMessage extends DiscordBase_1.DiscordBase {
26
25
  return this.client.components.createComponentCollector(this.id, this.channelId, this.guildId, options);
27
26
  }
28
27
  get url() {
29
- return common_2.Formatter.messageLink(this.guildId ?? '@me', this.channelId, this.id);
28
+ return common_1.Formatter.messageLink(this.guildId ?? '@me', this.channelId, this.id);
30
29
  }
31
30
  guild(mode = 'flow') {
32
31
  if (!this.guildId)
@@ -1,12 +1,12 @@
1
1
  import { Collection, type RawFile, type ReturnCache } from '..';
2
2
  import type { Overwrites } from '../cache/resources/overwrites';
3
- import { type BaseChannelStructure, type BaseGuildChannelStructure, type CategoryChannelStructure, type DMChannelStructure, type DirectoryChannelStructure, type ForumChannelStructure, type GuildMemberStructure, type GuildStructure, type MediaChannelStructure, type MessageStructure, type NewsChannelStructure, type StageChannelStructure, type TextGuildChannelStructure, type ThreadChannelStructure, type UserStructure, type VoiceChannelStructure, type VoiceStateStructure, type WebhookStructure } from '../client';
3
+ import { type BaseChannelStructure, type BaseGuildChannelStructure, type CategoryChannelStructure, type DirectoryChannelStructure, type DMChannelStructure, type ForumChannelStructure, type GuildMemberStructure, type GuildStructure, type MediaChannelStructure, type MessageStructure, type NewsChannelStructure, type StageChannelStructure, type TextGuildChannelStructure, type ThreadChannelStructure, type UserStructure, type VoiceChannelStructure, type VoiceStateStructure, type WebhookStructure } from '../client';
4
4
  import type { SeyfertChannelMap, UsingClient } from '../commands';
5
5
  import { type CreateInviteFromChannel, type EmojiResolvable, type MessageCreateBodyRequest, type MessageUpdateBodyRequest, type MethodContext, type ObjectToLower, type StringToNumber, type ToClass } from '../common';
6
6
  import { type APIChannelBase, type APIDMChannel, type APIGuildCategoryChannel, type APIGuildChannel, type APIGuildForumChannel, type APIGuildForumDefaultReactionEmoji, type APIGuildForumTag, type APIGuildMediaChannel, type APIGuildStageVoiceChannel, type APIGuildVoiceChannel, type APINewsChannel, type APITextChannel, type APIThreadChannel, ChannelType, type RESTGetAPIChannelMessageReactionUsersQuery, type RESTGetAPIChannelMessagesQuery, type RESTPatchAPIChannelJSONBody, type RESTPatchAPIGuildChannelPositionsJSONBody, type RESTPostAPIChannelWebhookJSONBody, type RESTPostAPIGuildChannelJSONBody, type RESTPostAPIGuildForumThreadsJSONBody, type SortOrderType, type ThreadAutoArchiveDuration, VideoQualityMode } from '../types';
7
+ import { DiscordBase } from './extra/DiscordBase';
7
8
  import type { GuildMember } from './GuildMember';
8
9
  import type { GuildRole } from './GuildRole';
9
- import { DiscordBase } from './extra/DiscordBase';
10
10
  export declare class BaseNoEditableChannel<T extends ChannelType> extends DiscordBase<APIChannelBase<ChannelType>> {
11
11
  type: T;
12
12
  constructor(client: UsingClient, data: APIChannelBase<ChannelType>);
@@ -1,19 +1,19 @@
1
1
  export * from './AnonymousGuild';
2
2
  export * from './AutoModerationRule';
3
3
  export * from './ClientUser';
4
- export * from './Guild';
4
+ export * from './channels';
5
5
  export * from './Emoji';
6
+ export * from './Entitlement';
7
+ export * from './Guild';
8
+ export * from './GuildBan';
6
9
  export * from './GuildMember';
7
10
  export * from './GuildPreview';
8
11
  export * from './GuildRole';
9
12
  export * from './GuildTemplate';
10
13
  export * from './Interaction';
11
14
  export * from './Message';
15
+ export * from './Poll';
12
16
  export * from './Sticker';
13
17
  export * from './User';
14
18
  export * from './VoiceState';
15
19
  export * from './Webhook';
16
- export * from './channels';
17
- export * from './Poll';
18
- export * from './GuildBan';
19
- export * from './Entitlement';
@@ -17,19 +17,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./AnonymousGuild"), exports);
18
18
  __exportStar(require("./AutoModerationRule"), exports);
19
19
  __exportStar(require("./ClientUser"), exports);
20
- __exportStar(require("./Guild"), exports);
20
+ __exportStar(require("./channels"), exports);
21
21
  __exportStar(require("./Emoji"), exports);
22
+ __exportStar(require("./Entitlement"), exports);
23
+ __exportStar(require("./Guild"), exports);
24
+ __exportStar(require("./GuildBan"), exports);
22
25
  __exportStar(require("./GuildMember"), exports);
23
26
  __exportStar(require("./GuildPreview"), exports);
24
27
  __exportStar(require("./GuildRole"), exports);
25
28
  __exportStar(require("./GuildTemplate"), exports);
26
29
  __exportStar(require("./Interaction"), exports);
27
30
  __exportStar(require("./Message"), exports);
31
+ __exportStar(require("./Poll"), exports);
28
32
  __exportStar(require("./Sticker"), exports);
29
33
  __exportStar(require("./User"), exports);
30
34
  __exportStar(require("./VoiceState"), exports);
31
35
  __exportStar(require("./Webhook"), exports);
32
- __exportStar(require("./channels"), exports);
33
- __exportStar(require("./Poll"), exports);
34
- __exportStar(require("./GuildBan"), exports);
35
- __exportStar(require("./Entitlement"), exports);
@@ -1,7 +1,7 @@
1
1
  export * from './gateway';
2
- export * from './rest';
3
2
  export * from './payloads';
4
3
  export * from './rest';
4
+ export * from './rest';
5
5
  export * from './utils';
6
6
  /**
7
7
  * https://discord.com/developers/docs/reference#snowflakes
@@ -38,7 +38,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
38
38
  };
39
39
  Object.defineProperty(exports, "__esModule", { value: true });
40
40
  __exportStar(require("./gateway"), exports);
41
- __exportStar(require("./rest"), exports);
42
41
  __exportStar(require("./payloads"), exports);
43
42
  __exportStar(require("./rest"), exports);
43
+ __exportStar(require("./rest"), exports);
44
44
  __exportStar(require("./utils"), exports);
@@ -1,6 +1,6 @@
1
- import type { ApplicationIntegrationType, InteractionContextType } from '..';
2
1
  import type { ChannelType, Permissions, Snowflake } from '../..';
3
2
  import type { LocaleString } from '../../rest';
3
+ import type { ApplicationIntegrationType, InteractionContextType } from '..';
4
4
  import type { APIAttachment, APIChannel, APIMessage, APIPartialChannel, APIThreadChannel, ThreadChannelType } from '../channel';
5
5
  import type { APIGuildMember, APIPartialInteractionGuild } from '../guild';
6
6
  import type { APIEntitlement } from '../monetization';
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * Types extracted from https://discord.com/developers/docs/resources/application
3
3
  */
4
- import type { APIEmoji, LocalizationMap } from '.';
5
- import type { Permissions, Snowflake } from '..';
6
4
  import type { MakeRequired } from '../../common';
5
+ import type { Permissions, Snowflake } from '..';
6
+ import type { APIEmoji, LocalizationMap } from '.';
7
7
  import type { APIPartialGuild } from './guild';
8
8
  import type { ApplicationIntegrationType } from './interactions';
9
9
  import type { OAuth2Scopes } from './oauth2';
@@ -1,5 +1,5 @@
1
- import type { APIAttachment, Snowflake } from '..';
2
1
  import type { Identify, MakeRequired } from '../../common';
2
+ import type { APIAttachment, Snowflake } from '..';
3
3
  import type { ChannelType } from '../utils';
4
4
  /**
5
5
  * https://discord.com/developers/docs/interactions/message-components#component-object
@@ -2,15 +2,18 @@ export * from './application';
2
2
  export * from './auditLog';
3
3
  export * from './autoModeration';
4
4
  export * from './channel';
5
+ export * from './components';
5
6
  export * from './emoji';
6
7
  export * from './gateway';
7
8
  export * from './guild';
8
9
  export * from './guildScheduledEvent';
9
10
  export * from './interactions';
10
11
  export * from './invite';
12
+ export * from './monetization';
11
13
  export * from './oauth2';
12
- export * from './poll';
13
14
  export * from './permissions';
15
+ export * from './poll';
16
+ export * from './soundboard';
14
17
  export * from './stageInstance';
15
18
  export * from './sticker';
16
19
  export * from './teams';
@@ -18,9 +21,6 @@ export * from './template';
18
21
  export * from './user';
19
22
  export * from './voice';
20
23
  export * from './webhook';
21
- export * from './monetization';
22
- export * from './soundboard';
23
- export * from './components';
24
24
  import type { LocaleString } from '../rest';
25
25
  export type LocalizationMap = Partial<Record<LocaleString, string | null>>;
26
26
  /**
@@ -18,15 +18,18 @@ __exportStar(require("./application"), exports);
18
18
  __exportStar(require("./auditLog"), exports);
19
19
  __exportStar(require("./autoModeration"), exports);
20
20
  __exportStar(require("./channel"), exports);
21
+ __exportStar(require("./components"), exports);
21
22
  __exportStar(require("./emoji"), exports);
22
23
  __exportStar(require("./gateway"), exports);
23
24
  __exportStar(require("./guild"), exports);
24
25
  __exportStar(require("./guildScheduledEvent"), exports);
25
26
  __exportStar(require("./interactions"), exports);
26
27
  __exportStar(require("./invite"), exports);
28
+ __exportStar(require("./monetization"), exports);
27
29
  __exportStar(require("./oauth2"), exports);
28
- __exportStar(require("./poll"), exports);
29
30
  __exportStar(require("./permissions"), exports);
31
+ __exportStar(require("./poll"), exports);
32
+ __exportStar(require("./soundboard"), exports);
30
33
  __exportStar(require("./stageInstance"), exports);
31
34
  __exportStar(require("./sticker"), exports);
32
35
  __exportStar(require("./teams"), exports);
@@ -34,6 +37,3 @@ __exportStar(require("./template"), exports);
34
37
  __exportStar(require("./user"), exports);
35
38
  __exportStar(require("./voice"), exports);
36
39
  __exportStar(require("./webhook"), exports);
37
- __exportStar(require("./monetization"), exports);
38
- __exportStar(require("./soundboard"), exports);
39
- __exportStar(require("./components"), exports);
@@ -9,16 +9,16 @@ export * from './guild';
9
9
  export * from './guildScheduledEvent';
10
10
  export * from './interactions';
11
11
  export * from './invite';
12
+ export * from './monetization';
12
13
  export * from './oauth2';
13
14
  export * from './poll';
15
+ export * from './soundboard';
14
16
  export * from './stageInstance';
15
17
  export * from './sticker';
16
18
  export * from './template';
17
19
  export * from './user';
18
20
  export * from './voice';
19
21
  export * from './webhook';
20
- export * from './monetization';
21
- export * from './soundboard';
22
22
  export type DefaultUserAvatarAssets = 0 | 1 | 2 | 3 | 4 | 5;
23
23
  export type EmojiFormat = Exclude<ImageFormat, ImageFormat.Lottie>;
24
24
  export type GuildIconFormat = Exclude<ImageFormat, ImageFormat.Lottie>;
@@ -25,16 +25,16 @@ __exportStar(require("./guild"), exports);
25
25
  __exportStar(require("./guildScheduledEvent"), exports);
26
26
  __exportStar(require("./interactions"), exports);
27
27
  __exportStar(require("./invite"), exports);
28
+ __exportStar(require("./monetization"), exports);
28
29
  __exportStar(require("./oauth2"), exports);
29
30
  __exportStar(require("./poll"), exports);
31
+ __exportStar(require("./soundboard"), exports);
30
32
  __exportStar(require("./stageInstance"), exports);
31
33
  __exportStar(require("./sticker"), exports);
32
34
  __exportStar(require("./template"), exports);
33
35
  __exportStar(require("./user"), exports);
34
36
  __exportStar(require("./voice"), exports);
35
37
  __exportStar(require("./webhook"), exports);
36
- __exportStar(require("./monetization"), exports);
37
- __exportStar(require("./soundboard"), exports);
38
38
  /**
39
39
  * https://discord.com/developers/docs/topics/opcodes-and-status-codes#json-json-error-codes
40
40
  */
@@ -1,5 +1,5 @@
1
1
  import type { RestToKeys } from '../common';
2
- import type { APIAuditLogEntry, APIAutoModerationRule, APIChannel, APIEntitlement, APIGuild, APIGuildMember, APIGuildScheduledEvent, APIStageInstance, APISubscription, APIUser, GatewayActivity, GatewayAutoModerationActionExecutionDispatchData, GatewayChannelPinsUpdateDispatchData, GatewayChannelUpdateDispatchData, GatewayEntitlementCreateDispatchData, GatewayGuildBanAddDispatchData, GatewayGuildBanRemoveDispatchData, GatewayGuildCreateDispatchData, GatewayGuildDeleteDispatchData, GatewayGuildEmojisUpdateDispatchData, GatewayGuildIntegrationsUpdateDispatchData, GatewayGuildMemberAddDispatchData, GatewayGuildMemberRemoveDispatchData, GatewayGuildMemberUpdateDispatchData, GatewayGuildMembersChunkDispatchData, GatewayGuildRoleCreateDispatchData, GatewayGuildRoleDeleteDispatchData, GatewayGuildRoleUpdateDispatchData, GatewayGuildScheduledEventUserRemoveDispatchData, GatewayGuildSoundboardSoundDeleteDispatchData, GatewayGuildSoundboardSoundsUpdateDispatchData, GatewayGuildStickersUpdateDispatchData, GatewayIntegrationCreateDispatchData, GatewayIntegrationDeleteDispatchData, GatewayInteractionCreateDispatchData, GatewayInviteCreateDispatchData, GatewayInviteDeleteDispatchData, GatewayMessageCreateDispatchData, GatewayMessageDeleteBulkDispatchData, GatewayMessageDeleteDispatchData, GatewayMessagePollVoteDispatchData, GatewayMessageReactionAddDispatchData, GatewayMessageReactionRemoveAllDispatchData, GatewayMessageReactionRemoveDispatchData, GatewayMessageReactionRemoveEmojiDispatchData, GatewayMessageUpdateDispatchData, GatewayPresenceUpdateData, GatewayPresenceUpdateDispatchData, GatewayReadyDispatchData, GatewayRequestGuildMembersDataWithQuery, GatewayRequestGuildMembersDataWithUserIds, GatewaySoundboardSoundsDispatchData, GatewayThreadCreateDispatchData, GatewayThreadDeleteDispatchData, GatewayThreadListSyncDispatchData, GatewayThreadMemberUpdateDispatchData, GatewayThreadMembersUpdateDispatchData, GatewayTypingStartDispatchData, GatewayUserUpdateDispatchData, GatewayVoiceChannelEffectSendDispachData, GatewayVoiceServerUpdateDispatchData, GatewayVoiceStateUpdateData, GatewayWebhooksUpdateDispatchData, PresenceUpdateStatus } from '../types';
2
+ import type { APIAuditLogEntry, APIAutoModerationRule, APIChannel, APIEntitlement, APIGuild, APIGuildMember, APIGuildScheduledEvent, APIStageInstance, APISubscription, APIUser, GatewayActivity, GatewayAutoModerationActionExecutionDispatchData, GatewayChannelPinsUpdateDispatchData, GatewayChannelUpdateDispatchData, GatewayEntitlementCreateDispatchData, GatewayGuildBanAddDispatchData, GatewayGuildBanRemoveDispatchData, GatewayGuildCreateDispatchData, GatewayGuildDeleteDispatchData, GatewayGuildEmojisUpdateDispatchData, GatewayGuildIntegrationsUpdateDispatchData, GatewayGuildMemberAddDispatchData, GatewayGuildMemberRemoveDispatchData, GatewayGuildMembersChunkDispatchData, GatewayGuildMemberUpdateDispatchData, GatewayGuildRoleCreateDispatchData, GatewayGuildRoleDeleteDispatchData, GatewayGuildRoleUpdateDispatchData, GatewayGuildScheduledEventUserRemoveDispatchData, GatewayGuildSoundboardSoundDeleteDispatchData, GatewayGuildSoundboardSoundsUpdateDispatchData, GatewayGuildStickersUpdateDispatchData, GatewayIntegrationCreateDispatchData, GatewayIntegrationDeleteDispatchData, GatewayInteractionCreateDispatchData, GatewayInviteCreateDispatchData, GatewayInviteDeleteDispatchData, GatewayMessageCreateDispatchData, GatewayMessageDeleteBulkDispatchData, GatewayMessageDeleteDispatchData, GatewayMessagePollVoteDispatchData, GatewayMessageReactionAddDispatchData, GatewayMessageReactionRemoveAllDispatchData, GatewayMessageReactionRemoveDispatchData, GatewayMessageReactionRemoveEmojiDispatchData, GatewayMessageUpdateDispatchData, GatewayPresenceUpdateData, GatewayPresenceUpdateDispatchData, GatewayReadyDispatchData, GatewayRequestGuildMembersDataWithQuery, GatewayRequestGuildMembersDataWithUserIds, GatewaySoundboardSoundsDispatchData, GatewayThreadCreateDispatchData, GatewayThreadDeleteDispatchData, GatewayThreadListSyncDispatchData, GatewayThreadMembersUpdateDispatchData, GatewayThreadMemberUpdateDispatchData, GatewayTypingStartDispatchData, GatewayUserUpdateDispatchData, GatewayVoiceChannelEffectSendDispachData, GatewayVoiceServerUpdateDispatchData, GatewayVoiceStateUpdateData, GatewayWebhooksUpdateDispatchData, PresenceUpdateStatus } from '../types';
3
3
  import { GatewayDispatchEvents } from '../types';
4
4
  import type { APISoundBoard } from '../types/payloads/soundboard';
5
5
  /** https://discord.com/developers/docs/topics/gateway-events#update-presence */
@@ -83,7 +83,6 @@ class Shard {
83
83
  this.debugger?.debug(`[Shard #${this.id}] Connecting to ${this.currentGatewayURL}`);
84
84
  this.connectionTimeout = setTimeout(() => this.reconnect(shared_1.ShardSocketCloseCodes.Timeout), this.options.connectionTimeout);
85
85
  // @ts-expect-error Use native websocket when using Bun
86
- // biome-ignore lint/correctness/noUndeclaredVariables: /\
87
86
  this.websocket = new basesocket_1.BaseSocket(typeof Bun === 'undefined' ? 'ws' : 'bun', this.currentGatewayURL);
88
87
  this.websocket.onmessage = ({ data }) => {
89
88
  this.handleMessage(data);
@@ -1,3 +1,3 @@
1
- export * from './SharedTypes';
2
1
  export * from './constants';
3
2
  export * from './discord';
3
+ export * from './SharedTypes';
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./SharedTypes"), exports);
18
17
  __exportStar(require("./constants"), exports);
19
18
  __exportStar(require("./discord"), exports);
19
+ __exportStar(require("./SharedTypes"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seyfert",
3
- "version": "3.2.1-dev-15657234528.0",
3
+ "version": "3.2.2-dev-15717671418.0",
4
4
  "description": "The most advanced framework for discord bots",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",
@@ -21,15 +21,14 @@
21
21
  "author": "MARCROCK22",
22
22
  "license": "MIT",
23
23
  "devDependencies": {
24
- "@biomejs/biome": "1.9.4",
24
+ "@biomejs/biome": "2.0.0",
25
25
  "@changesets/cli": "^2.29.4",
26
26
  "@commitlint/cli": "^19.8.1",
27
27
  "@commitlint/config-conventional": "^19.8.1",
28
- "@types/node": "^24.0.1",
28
+ "@types/node": "^24.0.3",
29
29
  "husky": "^9.1.7",
30
- "lint-staged": "^15.5.1",
31
30
  "typescript": "^5.8.3",
32
- "vitest": "^3.2.3"
31
+ "vitest": "^3.2.4"
33
32
  },
34
33
  "homepage": "https://seyfert.dev",
35
34
  "repository": {
@@ -65,11 +64,6 @@
65
64
  "url": "https://github.com/Drylozu"
66
65
  }
67
66
  ],
68
- "lint-staged": {
69
- "*.ts": [
70
- "biome check --write"
71
- ]
72
- },
73
67
  "pnpm": {
74
68
  "onlyBuiltDependencies": [
75
69
  "@biomejs/biome",