seyfert 2.1.1-dev-12240981879.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").
|
|
44
|
-
StageChannel(client: import("../commands").UsingClient, data: import("../types").
|
|
45
|
-
MediaChannel(client: import("../commands").UsingClient, data: import("../types").
|
|
46
|
-
ForumChannel(client: import("../commands").UsingClient, data: import("../types").
|
|
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").
|
|
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
|
}
|
|
@@ -171,9 +173,9 @@ export declare class ThreadOnlyMethods extends DiscordBase {
|
|
|
171
173
|
thread(body: RESTPostAPIGuildForumThreadsJSONBody, reason?: string): Promise<ThreadChannel>;
|
|
172
174
|
}
|
|
173
175
|
export interface VoiceChannelMethods extends BaseChannel<ChannelType> {
|
|
176
|
+
guildId?: string;
|
|
174
177
|
}
|
|
175
178
|
export declare class VoiceChannelMethods extends DiscordBase {
|
|
176
|
-
guildId?: string;
|
|
177
179
|
setBitrate(bitrate: number | null, reason?: string): Promise<this>;
|
|
178
180
|
setUserLimit(user_limit: number | null, reason?: string): Promise<this>;
|
|
179
181
|
setRTC(rtc_region: string | null, reason?: string): Promise<this>;
|
|
@@ -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,
|
|
219
|
+
export interface VoiceChannel extends ObjectToLower<Omit<APIGuildVoiceChannel, 'permission_overwrites'>>, Omit<TextGuildChannel, keyof BaseGuildChannel>, VoiceChannelMethods, WebhookChannelMethods {
|
|
220
220
|
}
|
|
221
|
-
export declare class VoiceChannel extends
|
|
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
|
|
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
|
|
231
|
+
export declare class MediaChannel extends BaseGuildChannel {
|
|
232
232
|
type: ChannelType.GuildMedia;
|
|
233
233
|
}
|
|
234
|
-
export interface ForumChannel extends ObjectToLower<APIGuildForumChannel
|
|
234
|
+
export interface ForumChannel extends ObjectToLower<Omit<APIGuildForumChannel, 'permission_overwrites'>>, Omit<ThreadOnlyMethods, 'type' | 'edit'>, WebhookChannelMethods {
|
|
235
235
|
}
|
|
236
|
-
export declare class ForumChannel extends
|
|
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
|
|
264
|
+
export interface NewsChannel extends ObjectToLower<Omit<APINewsChannel, 'permission_overwrites'>>, WebhookChannelMethods, Omit<TextGuildChannel, keyof BaseGuildChannel> {
|
|
265
265
|
}
|
|
266
|
-
export declare class NewsChannel extends
|
|
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 {
|
|
@@ -273,7 +279,6 @@ exports.ThreadOnlyMethods = ThreadOnlyMethods = __decorate([
|
|
|
273
279
|
(0, mixer_1.mix)(TopicableGuildChannel)
|
|
274
280
|
], ThreadOnlyMethods);
|
|
275
281
|
class VoiceChannelMethods extends DiscordBase_1.DiscordBase {
|
|
276
|
-
guildId;
|
|
277
282
|
setBitrate(bitrate, reason) {
|
|
278
283
|
return this.edit({ bitrate }, reason);
|
|
279
284
|
}
|
|
@@ -334,12 +339,6 @@ class WebhookChannelMethods extends DiscordBase_1.DiscordBase {
|
|
|
334
339
|
}
|
|
335
340
|
exports.WebhookChannelMethods = WebhookChannelMethods;
|
|
336
341
|
let TextGuildChannel = class TextGuildChannel extends BaseGuildChannel {
|
|
337
|
-
setRatelimitPerUser(rate_limit_per_user) {
|
|
338
|
-
return this.edit({ rate_limit_per_user });
|
|
339
|
-
}
|
|
340
|
-
setNsfw(nsfw = true, reason) {
|
|
341
|
-
return this.edit({ nsfw }, reason);
|
|
342
|
-
}
|
|
343
342
|
};
|
|
344
343
|
exports.TextGuildChannel = TextGuildChannel;
|
|
345
344
|
exports.TextGuildChannel = TextGuildChannel = __decorate([
|
|
@@ -351,25 +350,25 @@ exports.DMChannel = DMChannel;
|
|
|
351
350
|
exports.DMChannel = DMChannel = __decorate([
|
|
352
351
|
(0, mixer_1.mix)(MessagesMethods)
|
|
353
352
|
], DMChannel);
|
|
354
|
-
let VoiceChannel = class VoiceChannel extends
|
|
353
|
+
let VoiceChannel = class VoiceChannel extends BaseGuildChannel {
|
|
355
354
|
};
|
|
356
355
|
exports.VoiceChannel = VoiceChannel;
|
|
357
356
|
exports.VoiceChannel = VoiceChannel = __decorate([
|
|
358
|
-
(0, mixer_1.mix)(TextGuildChannel,
|
|
357
|
+
(0, mixer_1.mix)(TextGuildChannel, VoiceChannelMethods)
|
|
359
358
|
], VoiceChannel);
|
|
360
|
-
let StageChannel = class StageChannel extends
|
|
359
|
+
let StageChannel = class StageChannel extends BaseGuildChannel {
|
|
361
360
|
};
|
|
362
361
|
exports.StageChannel = StageChannel;
|
|
363
362
|
exports.StageChannel = StageChannel = __decorate([
|
|
364
363
|
(0, mixer_1.mix)(TopicableGuildChannel, VoiceChannelMethods)
|
|
365
364
|
], StageChannel);
|
|
366
|
-
let MediaChannel = class MediaChannel extends
|
|
365
|
+
let MediaChannel = class MediaChannel extends BaseGuildChannel {
|
|
367
366
|
};
|
|
368
367
|
exports.MediaChannel = MediaChannel;
|
|
369
368
|
exports.MediaChannel = MediaChannel = __decorate([
|
|
370
369
|
(0, mixer_1.mix)(ThreadOnlyMethods)
|
|
371
370
|
], MediaChannel);
|
|
372
|
-
let ForumChannel = class ForumChannel extends
|
|
371
|
+
let ForumChannel = class ForumChannel extends BaseGuildChannel {
|
|
373
372
|
};
|
|
374
373
|
exports.ForumChannel = ForumChannel;
|
|
375
374
|
exports.ForumChannel = ForumChannel = __decorate([
|
|
@@ -424,14 +423,14 @@ exports.ThreadChannel = ThreadChannel = __decorate([
|
|
|
424
423
|
class CategoryChannel extends BaseGuildChannel {
|
|
425
424
|
}
|
|
426
425
|
exports.CategoryChannel = CategoryChannel;
|
|
427
|
-
let NewsChannel = class NewsChannel extends
|
|
426
|
+
let NewsChannel = class NewsChannel extends BaseGuildChannel {
|
|
428
427
|
addFollower(webhookChannelId, reason) {
|
|
429
428
|
return this.client.guilds.channels.addFollower(this.id, webhookChannelId, reason);
|
|
430
429
|
}
|
|
431
430
|
};
|
|
432
431
|
exports.NewsChannel = NewsChannel;
|
|
433
432
|
exports.NewsChannel = NewsChannel = __decorate([
|
|
434
|
-
(0, mixer_1.mix)(WebhookChannelMethods)
|
|
433
|
+
(0, mixer_1.mix)(TextGuildChannel, WebhookChannelMethods)
|
|
435
434
|
], NewsChannel);
|
|
436
435
|
class DirectoryChannel extends BaseChannel {
|
|
437
436
|
}
|