seyfert 2.2.1-dev-13826509766.0 → 2.2.1-dev-14228555064.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.
@@ -4,7 +4,7 @@ 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
6
  import { CommandHandler } from '../commands/handler';
7
- import { ApplicationShorter, ChannelShorter, EmojiShorter, GuildShorter, InteractionShorter, Logger, type MakeRequired, MemberShorter, MessageShorter, ReactionShorter, RoleShorter, TemplateShorter, ThreadShorter, UsersShorter, WebhookShorter } from '../common';
7
+ import { ApplicationShorter, ChannelShorter, EmojiShorter, GuildShorter, InteractionShorter, InvitesShorter, Logger, type MakeRequired, MemberShorter, MessageShorter, ReactionShorter, RoleShorter, TemplateShorter, ThreadShorter, UsersShorter, WebhookShorter } from '../common';
8
8
  import { HandleCommand } from '../commands/handle';
9
9
  import { BanShorter } from '../common/shorters/bans';
10
10
  import { SoundboardShorter } from '../common/shorters/soundboard';
@@ -35,7 +35,7 @@ export declare class BaseClient {
35
35
  interactions: InteractionShorter;
36
36
  voiceStates: VoiceStateShorter;
37
37
  soundboards: SoundboardShorter;
38
- debugger?: Logger;
38
+ invites: InvitesShorter;
39
39
  logger: Logger;
40
40
  langs: LangsHandler;
41
41
  commands: CommandHandler;
@@ -34,6 +34,8 @@ class BaseClient {
34
34
  interactions = new common_1.InteractionShorter(this);
35
35
  voiceStates = new voiceStates_1.VoiceStateShorter(this);
36
36
  soundboards = new soundboard_1.SoundboardShorter(this);
37
+ invites = new common_1.InvitesShorter(this);
38
+ /**@internal */
37
39
  debugger;
38
40
  logger = new common_1.Logger({
39
41
  name: '[Seyfert]',
@@ -3,6 +3,7 @@ export * from './it/utils';
3
3
  export * from './it/colors';
4
4
  export { CustomizeLoggerCallback, AssignFilenameCallback, LogLevels, Logger, LoggerOptions } from './it/logger';
5
5
  export * from './it/formatter';
6
+ export * from './shorters/invites';
6
7
  export * from './shorters/channels';
7
8
  export * from './shorters/emojis';
8
9
  export * from './shorters/guilds';
@@ -22,6 +22,8 @@ var logger_1 = require("./it/logger");
22
22
  Object.defineProperty(exports, "LogLevels", { enumerable: true, get: function () { return logger_1.LogLevels; } });
23
23
  Object.defineProperty(exports, "Logger", { enumerable: true, get: function () { return logger_1.Logger; } });
24
24
  __exportStar(require("./it/formatter"), exports);
25
+ // circular lol
26
+ __exportStar(require("./shorters/invites"), exports);
25
27
  //
26
28
  __exportStar(require("./shorters/channels"), exports);
27
29
  __exportStar(require("./shorters/emojis"), exports);
@@ -1,6 +1,6 @@
1
1
  import { type AnonymousGuildStructure, type AutoModerationRuleStructure, type GuildMemberStructure, type GuildStructure, type StickerStructure } from '../../client/transformers';
2
2
  import type { SeyfertChannelMap } from '../../commands';
3
- import { type AllChannels, type CreateStickerBodyRequest, Guild, type GuildChannelTypes } from '../../structures';
3
+ import { type AllChannels, type CreateStickerBodyRequest, type GuildChannelTypes } from '../../structures';
4
4
  import type { GuildWidgetStyle, RESTGetAPICurrentUserGuildsQuery, RESTGetAPIGuildQuery, RESTPatchAPIAutoModerationRuleJSONBody, RESTPatchAPIChannelJSONBody, RESTPatchAPIGuildChannelPositionsJSONBody, RESTPatchAPIGuildJSONBody, RESTPatchAPIGuildStickerJSONBody, RESTPostAPIAutoModerationRuleJSONBody, RESTPostAPIGuildChannelJSONBody, RESTPostAPIGuildsJSONBody } from '../../types';
5
5
  import { BaseShorter } from './base';
6
6
  export declare class GuildShorter extends BaseShorter {
@@ -18,7 +18,7 @@ export declare class GuildShorter extends BaseShorter {
18
18
  * @param options.force Whether to force fetching the guild from the API even if it exists in the cache.
19
19
  * @returns A Promise that resolves to the fetched guild.
20
20
  */
21
- fetch(id: string, options?: GuildFetchOptions | boolean): Promise<Guild<"api">>;
21
+ fetch(id: string, options?: GuildFetchOptions | boolean): Promise<import("../../structures").Guild<"api">>;
22
22
  /**
23
23
  * Fetches a guild by its ID.
24
24
  * @param id The ID of the guild to fetch.
@@ -35,7 +35,7 @@ export declare class GuildShorter extends BaseShorter {
35
35
  * @returns The generated widget URL.
36
36
  */
37
37
  widgetURL(id: string, style?: GuildWidgetStyle): Promise<import("../../types").APIGuildWidgetSettings>;
38
- edit(guildId: string, body: RESTPatchAPIGuildJSONBody, reason?: string): Promise<Guild<"api">>;
38
+ edit(guildId: string, body: RESTPatchAPIGuildJSONBody, reason?: string): Promise<import("../../structures").Guild<"api">>;
39
39
  list(query?: RESTGetAPICurrentUserGuildsQuery): Promise<AnonymousGuildStructure[]>;
40
40
  fetchSelf(id: string, force?: boolean): Promise<GuildMemberStructure>;
41
41
  leave(id: string): Promise<void | undefined>;
@@ -59,7 +59,7 @@ class GuildShorter extends base_1.BaseShorter {
59
59
  const guild = await this.client.proxy.guilds(guildId).patch({ body, reason });
60
60
  if (!this.client.cache.hasGuildsIntent)
61
61
  await this.client.cache.guilds?.patch(cache_1.CacheFrom.Rest, guildId, guild);
62
- return new structures_1.Guild(this.client, guild);
62
+ return transformers_1.Transformers.Guild(this.client, guild);
63
63
  }
64
64
  list(query) {
65
65
  return this.client.proxy