seyfert 3.2.7-dev-17350702966.0 → 3.2.7-dev-17387316482.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.
@@ -82,12 +82,6 @@ export declare class TextInput extends BaseComponentBuilder<APITextInputComponen
82
82
  * @returns The current TextInput instance.
83
83
  */
84
84
  setStyle(style: TextInputStyle): this;
85
- /**
86
- * Sets the label of the text input.
87
- * @param label - The label of the text input.
88
- * @returns The current TextInput instance.
89
- */
90
- setLabel(label: string): this;
91
85
  /**
92
86
  * Sets the placeholder of the text input.
93
87
  * @param placeholder - The placeholder text.
@@ -115,15 +115,6 @@ class TextInput extends Base_1.BaseComponentBuilder {
115
115
  this.data.style = style;
116
116
  return this;
117
117
  }
118
- /**
119
- * Sets the label of the text input.
120
- * @param label - The label of the text input.
121
- * @returns The current TextInput instance.
122
- */
123
- setLabel(label) {
124
- this.data.label = label;
125
- return this;
126
- }
127
118
  /**
128
119
  * Sets the placeholder of the text input.
129
120
  * @param placeholder - The placeholder text.
@@ -2,6 +2,7 @@ import { type AnonymousGuildStructure, type AutoModerationRuleStructure, type Gu
2
2
  import type { SeyfertChannelMap } from '../../commands';
3
3
  import { type AllChannels, type CreateStickerBodyRequest, type GuildChannelTypes } from '../../structures';
4
4
  import type { GuildWidgetStyle, RESTGetAPICurrentUserGuildsQuery, RESTGetAPIGuildQuery, RESTPatchAPIAutoModerationRuleJSONBody, RESTPatchAPIChannelJSONBody, RESTPatchAPIGuildChannelPositionsJSONBody, RESTPatchAPIGuildJSONBody, RESTPatchAPIGuildStickerJSONBody, RESTPostAPIAutoModerationRuleJSONBody, RESTPostAPIGuildChannelJSONBody } from '../../types';
5
+ import type { If } from '../types/util';
5
6
  import { BaseShorter } from './base';
6
7
  export declare class GuildShorter extends BaseShorter {
7
8
  /**
@@ -30,7 +31,7 @@ export declare class GuildShorter extends BaseShorter {
30
31
  */
31
32
  widgetURL(id: string, style?: GuildWidgetStyle): Promise<import("../../types").APIGuildWidgetSettings>;
32
33
  edit(guildId: string, body: RESTPatchAPIGuildJSONBody, reason?: string): Promise<GuildStructure<'api'>>;
33
- list(query?: RESTGetAPICurrentUserGuildsQuery): Promise<AnonymousGuildStructure[]>;
34
+ list<T extends boolean = false>(query?: RESTGetAPICurrentUserGuildsQuery, force?: T): Promise<If<T, AnonymousGuildStructure[], GuildStructure<'cached'>[]>>;
34
35
  fetchSelf(id: string, force?: boolean): Promise<GuildMemberStructure>;
35
36
  leave(id: string): Promise<void | undefined>;
36
37
  /**
@@ -53,7 +53,12 @@ class GuildShorter extends base_1.BaseShorter {
53
53
  await this.client.cache.guilds?.patch(cache_1.CacheFrom.Rest, guildId, guild);
54
54
  return transformers_1.Transformers.Guild(this.client, guild);
55
55
  }
56
- list(query) {
56
+ async list(query, force) {
57
+ if (!force) {
58
+ const guilds = await this.client.cache.guilds?.values();
59
+ if (guilds?.length)
60
+ return guilds;
61
+ }
57
62
  return this.client.proxy
58
63
  .users('@me')
59
64
  .guilds.get({ query })
@@ -4,7 +4,6 @@ export declare class TextInputComponent extends BaseComponent<ComponentType.Text
4
4
  get customId(): string;
5
5
  get value(): string | undefined;
6
6
  get style(): import("../types").TextInputStyle;
7
- get label(): string;
8
7
  get max(): number | undefined;
9
8
  get min(): number | undefined;
10
9
  get required(): boolean | undefined;
@@ -12,9 +12,6 @@ class TextInputComponent extends BaseComponent_1.BaseComponent {
12
12
  get style() {
13
13
  return this.data.style;
14
14
  }
15
- get label() {
16
- return this.data.label;
17
- }
18
15
  get max() {
19
16
  return this.data.max_length;
20
17
  }
@@ -290,10 +290,6 @@ export interface APITextInputComponent extends APIBaseComponent<ComponentType.Te
290
290
  * The custom id for the text input
291
291
  */
292
292
  custom_id: string;
293
- /**
294
- * Text that appears on top of the text input field, max 45 characters
295
- */
296
- label: string;
297
293
  /**
298
294
  * Placeholder for the text input
299
295
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seyfert",
3
- "version": "3.2.7-dev-17350702966.0",
3
+ "version": "3.2.7-dev-17387316482.0",
4
4
  "description": "The most advanced framework for discord bots",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",