seyfert 2.1.1-dev-12246048689.0 → 2.1.1-dev-12247418720.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.
@@ -40,13 +40,13 @@ export declare const Transformers: {
40
40
  BaseGuildChannel(client: import("../commands").UsingClient, data: import("../types").APIGuildChannel<ChannelType>): BaseGuildChannelStructure;
41
41
  TextGuildChannel(client: import("../commands").UsingClient, data: import("../types").APIGuildChannel<ChannelType>): TextGuildChannelStructure;
42
42
  DMChannel(client: import("../commands").UsingClient, data: import("../types").APIChannelBase<ChannelType>): DMChannelStructure;
43
- VoiceChannel(client: import("../commands").UsingClient, data: import("../types").APIChannelBase<ChannelType>): VoiceChannelStructure;
44
- StageChannel(client: import("../commands").UsingClient, data: import("../types").APIChannelBase<ChannelType>): StageChannelStructure;
45
- MediaChannel(client: import("../commands").UsingClient, data: import("../types").APIChannelBase<ChannelType>): MediaChannelStructure;
46
- ForumChannel(client: import("../commands").UsingClient, data: import("../types").APIChannelBase<ChannelType>): ForumChannelStructure;
43
+ VoiceChannel(client: import("../commands").UsingClient, data: import("../types").APIGuildChannel<ChannelType>): VoiceChannelStructure;
44
+ StageChannel(client: import("../commands").UsingClient, data: import("../types").APIGuildChannel<ChannelType>): StageChannelStructure;
45
+ MediaChannel(client: import("../commands").UsingClient, data: import("../types").APIGuildChannel<ChannelType>): MediaChannelStructure;
46
+ ForumChannel(client: import("../commands").UsingClient, data: import("../types").APIGuildChannel<ChannelType>): ForumChannelStructure;
47
47
  ThreadChannel(client: import("../commands").UsingClient, data: import("../types").APIChannelBase<ChannelType>): ThreadChannelStructure;
48
48
  CategoryChannel(...args: ConstructorParameters<typeof CategoryChannel>): CategoryChannelStructure;
49
- NewsChannel(client: import("../commands").UsingClient, data: import("../types").APIChannelBase<ChannelType>): NewsChannelStructure;
49
+ NewsChannel(client: import("../commands").UsingClient, data: import("../types").APIGuildChannel<ChannelType>): NewsChannelStructure;
50
50
  DirectoryChannel(client: import("../commands").UsingClient, data: import("../types").APIChannelBase<ChannelType>): DirectoryChannelStructure;
51
51
  ClientUser(client: import("../commands").UsingClient, data: import("../types").APIUser, application: Pick<import("../types").APIApplication, "id" | "flags">): ClientUserStructure;
52
52
  Guild<State extends StructStates = "api">(client: import("../commands").UsingClient, data: import("../types").APIGuild | import("../types").GatewayGuildCreateDispatchData): GuildStructure<State>;
@@ -36,61 +36,6 @@ export declare const THREAD_LIST_SYNC: (_self: UsingClient, data: GatewayThreadL
36
36
  skuId: string;
37
37
  } | null | undefined;
38
38
  }[] | undefined;
39
- } | {
40
- defaultForumLayout: import("../../types").ForumLayoutType;
41
- topic?: string | null | undefined;
42
- lastMessageId?: string | null | undefined;
43
- rateLimitPerUser?: number | undefined;
44
- lastPinTimestamp?: string | null | undefined;
45
- defaultAutoArchiveDuration?: import("../../types").ThreadAutoArchiveDuration | undefined;
46
- availableTags: {
47
- id: string;
48
- name: string;
49
- moderated: boolean;
50
- emojiId: string | null;
51
- emojiName: string | null;
52
- }[];
53
- defaultThreadRateLimitPerUser?: number | undefined;
54
- defaultReactionEmoji: {
55
- emojiId: string | null;
56
- emojiName: string | null;
57
- } | null;
58
- defaultSortOrder: import("../../types").SortOrderType | null;
59
- name: string;
60
- guildId?: string | undefined;
61
- permissionOverwrites?: {
62
- id: string;
63
- type: import("../../types").OverwriteType;
64
- allow: string;
65
- deny: string;
66
- }[] | undefined;
67
- position: number;
68
- parentId?: string | null | undefined;
69
- nsfw?: boolean | undefined;
70
- id: string;
71
- type: import("../../types").ChannelType.GuildForum;
72
- flags?: import("../../types").ChannelFlags | undefined;
73
- } | {
74
- defaultAutoArchiveDuration?: import("../../types").ThreadAutoArchiveDuration | undefined;
75
- defaultThreadRateLimitPerUser?: number | undefined;
76
- topic?: string | null | undefined;
77
- id: string;
78
- type: import("../../types").ChannelType.GuildAnnouncement;
79
- flags?: import("../../types").ChannelFlags | undefined;
80
- rateLimitPerUser?: number | undefined;
81
- lastMessageId?: string | null | undefined;
82
- lastPinTimestamp?: string | null | undefined;
83
- name: string;
84
- guildId?: string | undefined;
85
- permissionOverwrites?: {
86
- id: string;
87
- type: import("../../types").OverwriteType;
88
- allow: string;
89
- deny: string;
90
- }[] | undefined;
91
- position: number;
92
- parentId?: string | null | undefined;
93
- nsfw?: boolean | undefined;
94
39
  } | {
95
40
  name: string | null;
96
41
  applicationId?: string | undefined;
@@ -140,6 +85,40 @@ export declare const THREAD_LIST_SYNC: (_self: UsingClient, data: GatewayThreadL
140
85
  id: string;
141
86
  type: import("../../types").ChannelType.GuildCategory;
142
87
  flags?: import("../../types").ChannelFlags | undefined;
88
+ } | {
89
+ defaultForumLayout: import("../../types").ForumLayoutType;
90
+ topic?: string | null | undefined;
91
+ lastMessageId?: string | null | undefined;
92
+ rateLimitPerUser?: number | undefined;
93
+ lastPinTimestamp?: string | null | undefined;
94
+ defaultAutoArchiveDuration?: import("../../types").ThreadAutoArchiveDuration | undefined;
95
+ availableTags: {
96
+ id: string;
97
+ name: string;
98
+ moderated: boolean;
99
+ emojiId: string | null;
100
+ emojiName: string | null;
101
+ }[];
102
+ defaultThreadRateLimitPerUser?: number | undefined;
103
+ defaultReactionEmoji: {
104
+ emojiId: string | null;
105
+ emojiName: string | null;
106
+ } | null;
107
+ defaultSortOrder: import("../../types").SortOrderType | null;
108
+ name: string;
109
+ guildId?: string | undefined;
110
+ permissionOverwrites?: {
111
+ id: string;
112
+ type: import("../../types").OverwriteType;
113
+ allow: string;
114
+ deny: string;
115
+ }[] | undefined;
116
+ position: number;
117
+ parentId?: string | null | undefined;
118
+ nsfw?: boolean | undefined;
119
+ id: string;
120
+ type: import("../../types").ChannelType.GuildForum;
121
+ flags?: import("../../types").ChannelFlags | undefined;
143
122
  } | {
144
123
  topic?: string | null | undefined;
145
124
  lastMessageId?: string | null | undefined;
@@ -215,6 +194,27 @@ export declare const THREAD_LIST_SYNC: (_self: UsingClient, data: GatewayThreadL
215
194
  flags?: import("../../types").ChannelFlags | undefined;
216
195
  rateLimitPerUser?: number | undefined;
217
196
  lastMessageId?: string | null | undefined;
197
+ } | {
198
+ defaultAutoArchiveDuration?: import("../../types").ThreadAutoArchiveDuration | undefined;
199
+ defaultThreadRateLimitPerUser?: number | undefined;
200
+ topic?: string | null | undefined;
201
+ id: string;
202
+ type: import("../../types").ChannelType.GuildAnnouncement;
203
+ flags?: import("../../types").ChannelFlags | undefined;
204
+ rateLimitPerUser?: number | undefined;
205
+ lastMessageId?: string | null | undefined;
206
+ lastPinTimestamp?: string | null | undefined;
207
+ name: string;
208
+ guildId?: string | undefined;
209
+ permissionOverwrites?: {
210
+ id: string;
211
+ type: import("../../types").OverwriteType;
212
+ allow: string;
213
+ deny: string;
214
+ }[] | undefined;
215
+ position: number;
216
+ parentId?: string | null | undefined;
217
+ nsfw?: boolean | undefined;
218
218
  } | {
219
219
  defaultAutoArchiveDuration?: import("../../types").ThreadAutoArchiveDuration | undefined;
220
220
  defaultThreadRateLimitPerUser?: number | undefined;
@@ -97,6 +97,8 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
97
97
  setPosition(position: number, reason?: string): Promise<this>;
98
98
  setName(name: string, reason?: string): Promise<this>;
99
99
  setParent(parent_id: string | null, reason?: string): Promise<this>;
100
+ setRatelimitPerUser(rate_limit_per_user: number | null | undefined): Promise<this>;
101
+ setNsfw(nsfw?: boolean, reason?: string): Promise<this>;
100
102
  }
101
103
  export interface MessagesMethods extends BaseNoEditableChannel<ChannelType> {
102
104
  }
@@ -208,32 +210,30 @@ export interface TextGuildChannel extends ObjectToLower<Omit<APITextChannel, 'ty
208
210
  }
209
211
  export declare class TextGuildChannel extends BaseGuildChannel {
210
212
  type: ChannelType.GuildText;
211
- setRatelimitPerUser(rate_limit_per_user: number | null | undefined): Promise<this>;
212
- setNsfw(nsfw?: boolean, reason?: string): Promise<this>;
213
213
  }
214
214
  export interface DMChannel extends ObjectToLower<APIDMChannel>, MessagesMethods {
215
215
  }
216
216
  export declare class DMChannel extends BaseNoEditableChannel<ChannelType.DM> {
217
217
  type: ChannelType.DM;
218
218
  }
219
- export interface VoiceChannel extends ObjectToLower<Omit<APIGuildVoiceChannel, 'permission_overwrites'>>, Omit<TextGuildChannel, 'type' | 'edit'>, VoiceChannelMethods, WebhookChannelMethods {
219
+ export interface VoiceChannel extends ObjectToLower<Omit<APIGuildVoiceChannel, 'permission_overwrites'>>, Omit<TextGuildChannel, keyof BaseGuildChannel>, VoiceChannelMethods, WebhookChannelMethods {
220
220
  }
221
- export declare class VoiceChannel extends BaseChannel<ChannelType.GuildVoice> {
221
+ export declare class VoiceChannel extends BaseGuildChannel {
222
222
  type: ChannelType.GuildVoice;
223
223
  }
224
- export interface StageChannel extends ObjectToLower<Omit<APIGuildStageVoiceChannel, 'type'>>, TopicableGuildChannel, VoiceChannelMethods {
224
+ export interface StageChannel extends ObjectToLower<Omit<APIGuildStageVoiceChannel, 'type' | 'permission_overwrites'>>, TopicableGuildChannel, VoiceChannelMethods {
225
225
  }
226
- export declare class StageChannel extends BaseChannel<ChannelType> {
226
+ export declare class StageChannel extends BaseGuildChannel {
227
227
  type: ChannelType.GuildStageVoice;
228
228
  }
229
- export interface MediaChannel extends ObjectToLower<Omit<APIGuildMediaChannel, 'type'>>, ThreadOnlyMethods {
229
+ export interface MediaChannel extends ObjectToLower<Omit<APIGuildMediaChannel, 'type' | 'permission_overwrites'>>, ThreadOnlyMethods {
230
230
  }
231
- export declare class MediaChannel extends BaseChannel<ChannelType> {
231
+ export declare class MediaChannel extends BaseGuildChannel {
232
232
  type: ChannelType.GuildMedia;
233
233
  }
234
- export interface ForumChannel extends ObjectToLower<APIGuildForumChannel>, Omit<ThreadOnlyMethods, 'type' | 'edit'>, WebhookChannelMethods {
234
+ export interface ForumChannel extends ObjectToLower<Omit<APIGuildForumChannel, 'permission_overwrites'>>, Omit<ThreadOnlyMethods, 'type' | 'edit'>, WebhookChannelMethods {
235
235
  }
236
- export declare class ForumChannel extends BaseChannel<ChannelType.GuildForum> {
236
+ export declare class ForumChannel extends BaseGuildChannel {
237
237
  type: ChannelType.GuildForum;
238
238
  }
239
239
  export interface ThreadChannel extends ObjectToLower<Omit<APIThreadChannel, 'permission_overwrites'>>, TextBaseGuildChannel {
@@ -261,9 +261,9 @@ declare const CategoryChannel_base: ToClass<Omit<BaseGuildChannel, "setParent" |
261
261
  export declare class CategoryChannel extends CategoryChannel_base {
262
262
  type: ChannelType.GuildCategory;
263
263
  }
264
- export interface NewsChannel extends ObjectToLower<APINewsChannel>, WebhookChannelMethods {
264
+ export interface NewsChannel extends ObjectToLower<Omit<APINewsChannel, 'permission_overwrites'>>, WebhookChannelMethods, Omit<TextGuildChannel, keyof BaseGuildChannel> {
265
265
  }
266
- export declare class NewsChannel extends BaseChannel<ChannelType.GuildAnnouncement> {
266
+ export declare class NewsChannel extends BaseGuildChannel {
267
267
  type: ChannelType.GuildAnnouncement;
268
268
  addFollower(webhookChannelId: string, reason?: string): Promise<import("../types").APIFollowedChannel>;
269
269
  }
@@ -137,6 +137,12 @@ class BaseGuildChannel extends BaseChannel {
137
137
  setParent(parent_id, reason) {
138
138
  return this.edit({ parent_id }, reason);
139
139
  }
140
+ setRatelimitPerUser(rate_limit_per_user) {
141
+ return this.edit({ rate_limit_per_user });
142
+ }
143
+ setNsfw(nsfw = true, reason) {
144
+ return this.edit({ nsfw }, reason);
145
+ }
140
146
  }
141
147
  exports.BaseGuildChannel = BaseGuildChannel;
142
148
  class MessagesMethods extends DiscordBase_1.DiscordBase {
@@ -333,12 +339,6 @@ class WebhookChannelMethods extends DiscordBase_1.DiscordBase {
333
339
  }
334
340
  exports.WebhookChannelMethods = WebhookChannelMethods;
335
341
  let TextGuildChannel = class TextGuildChannel extends BaseGuildChannel {
336
- setRatelimitPerUser(rate_limit_per_user) {
337
- return this.edit({ rate_limit_per_user });
338
- }
339
- setNsfw(nsfw = true, reason) {
340
- return this.edit({ nsfw }, reason);
341
- }
342
342
  };
343
343
  exports.TextGuildChannel = TextGuildChannel;
344
344
  exports.TextGuildChannel = TextGuildChannel = __decorate([
@@ -350,25 +350,25 @@ exports.DMChannel = DMChannel;
350
350
  exports.DMChannel = DMChannel = __decorate([
351
351
  (0, mixer_1.mix)(MessagesMethods)
352
352
  ], DMChannel);
353
- let VoiceChannel = class VoiceChannel extends BaseChannel {
353
+ let VoiceChannel = class VoiceChannel extends BaseGuildChannel {
354
354
  };
355
355
  exports.VoiceChannel = VoiceChannel;
356
356
  exports.VoiceChannel = VoiceChannel = __decorate([
357
- (0, mixer_1.mix)(TextGuildChannel, WebhookChannelMethods, VoiceChannelMethods)
357
+ (0, mixer_1.mix)(TextGuildChannel, VoiceChannelMethods)
358
358
  ], VoiceChannel);
359
- let StageChannel = class StageChannel extends BaseChannel {
359
+ let StageChannel = class StageChannel extends BaseGuildChannel {
360
360
  };
361
361
  exports.StageChannel = StageChannel;
362
362
  exports.StageChannel = StageChannel = __decorate([
363
363
  (0, mixer_1.mix)(TopicableGuildChannel, VoiceChannelMethods)
364
364
  ], StageChannel);
365
- let MediaChannel = class MediaChannel extends BaseChannel {
365
+ let MediaChannel = class MediaChannel extends BaseGuildChannel {
366
366
  };
367
367
  exports.MediaChannel = MediaChannel;
368
368
  exports.MediaChannel = MediaChannel = __decorate([
369
369
  (0, mixer_1.mix)(ThreadOnlyMethods)
370
370
  ], MediaChannel);
371
- let ForumChannel = class ForumChannel extends BaseChannel {
371
+ let ForumChannel = class ForumChannel extends BaseGuildChannel {
372
372
  };
373
373
  exports.ForumChannel = ForumChannel;
374
374
  exports.ForumChannel = ForumChannel = __decorate([
@@ -423,14 +423,14 @@ exports.ThreadChannel = ThreadChannel = __decorate([
423
423
  class CategoryChannel extends BaseGuildChannel {
424
424
  }
425
425
  exports.CategoryChannel = CategoryChannel;
426
- let NewsChannel = class NewsChannel extends BaseChannel {
426
+ let NewsChannel = class NewsChannel extends BaseGuildChannel {
427
427
  addFollower(webhookChannelId, reason) {
428
428
  return this.client.guilds.channels.addFollower(this.id, webhookChannelId, reason);
429
429
  }
430
430
  };
431
431
  exports.NewsChannel = NewsChannel;
432
432
  exports.NewsChannel = NewsChannel = __decorate([
433
- (0, mixer_1.mix)(WebhookChannelMethods)
433
+ (0, mixer_1.mix)(TextGuildChannel, WebhookChannelMethods)
434
434
  ], NewsChannel);
435
435
  class DirectoryChannel extends BaseChannel {
436
436
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seyfert",
3
- "version": "2.1.1-dev-12246048689.0",
3
+ "version": "2.1.1-dev-12247418720.0",
4
4
  "description": "The most advanced framework for discord bots",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",