seyfert 2.2.1-dev-13937969432.0 → 2.2.1-dev-14241083990.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.
- package/lib/client/base.d.ts +2 -1
- package/lib/client/base.js +1 -0
- package/lib/common/index.d.ts +1 -0
- package/lib/common/index.js +2 -0
- package/lib/common/shorters/invites.d.ts +782 -0
- package/lib/common/shorters/invites.js +36 -0
- package/lib/common/types/util.d.ts +1 -1
- package/lib/structures/Guild.d.ts +466 -0
- package/lib/structures/Guild.js +5 -0
- package/lib/structures/channels.d.ts +466 -1
- package/lib/structures/channels.js +8 -0
- package/package.json +13 -7
|
@@ -2,7 +2,7 @@ import { Collection, type RawFile, type ReturnCache } from '..';
|
|
|
2
2
|
import type { Overwrites } from '../cache/resources/overwrites';
|
|
3
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';
|
|
4
4
|
import type { SeyfertChannelMap, UsingClient } from '../commands';
|
|
5
|
-
import { type EmojiResolvable, type MessageCreateBodyRequest, type MessageUpdateBodyRequest, type MethodContext, type ObjectToLower, type StringToNumber, type ToClass } from '../common';
|
|
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
7
|
import type { GuildMember } from './GuildMember';
|
|
8
8
|
import type { GuildRole } from './GuildRole';
|
|
@@ -67,6 +67,471 @@ export interface BaseGuildChannel extends ObjectToLower<Omit<APIGuildChannel<Cha
|
|
|
67
67
|
export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
|
|
68
68
|
guildId: string;
|
|
69
69
|
constructor(client: UsingClient, data: APIGuildChannel<ChannelType>);
|
|
70
|
+
invites: {
|
|
71
|
+
list: () => Promise<{
|
|
72
|
+
uses: number;
|
|
73
|
+
maxUses: number;
|
|
74
|
+
maxAge: number;
|
|
75
|
+
temporary: boolean;
|
|
76
|
+
createdAt: string;
|
|
77
|
+
code: string;
|
|
78
|
+
guild?: {
|
|
79
|
+
id: string;
|
|
80
|
+
name: string;
|
|
81
|
+
description: string | null;
|
|
82
|
+
icon: string | null;
|
|
83
|
+
splash: string | null;
|
|
84
|
+
banner: string | null;
|
|
85
|
+
features: import("../types").GuildFeature[];
|
|
86
|
+
verificationLevel: import("../types").GuildVerificationLevel;
|
|
87
|
+
vanityUrlCode: string | null;
|
|
88
|
+
premiumSubscriptionCount?: number | undefined;
|
|
89
|
+
nsfwLevel: import("../types").GuildNSFWLevel;
|
|
90
|
+
} | undefined;
|
|
91
|
+
channel: {
|
|
92
|
+
id: string;
|
|
93
|
+
type: ChannelType;
|
|
94
|
+
name: string | null;
|
|
95
|
+
} | null;
|
|
96
|
+
inviter?: {
|
|
97
|
+
id: string;
|
|
98
|
+
username: string;
|
|
99
|
+
discriminator: string;
|
|
100
|
+
globalName: string | null;
|
|
101
|
+
avatar: string | null;
|
|
102
|
+
bot?: boolean | undefined;
|
|
103
|
+
system?: boolean | undefined;
|
|
104
|
+
mfaEnabled?: boolean | undefined;
|
|
105
|
+
banner?: string | null | undefined;
|
|
106
|
+
accentColor?: number | null | undefined;
|
|
107
|
+
locale?: string | undefined;
|
|
108
|
+
verified?: boolean | undefined;
|
|
109
|
+
email?: string | null | undefined;
|
|
110
|
+
flags?: import("../types").UserFlags | undefined;
|
|
111
|
+
premiumType?: import("../types").UserPremiumType | undefined;
|
|
112
|
+
publicFlags?: import("../types").UserFlags | undefined;
|
|
113
|
+
avatarDecorationData?: import("../types").APIAvatarDecorationData | null | undefined;
|
|
114
|
+
} | undefined;
|
|
115
|
+
targetType?: import("../types").InviteTargetType | undefined;
|
|
116
|
+
targetUser?: {
|
|
117
|
+
id: string;
|
|
118
|
+
username: string;
|
|
119
|
+
discriminator: string;
|
|
120
|
+
globalName: string | null;
|
|
121
|
+
avatar: string | null;
|
|
122
|
+
bot?: boolean | undefined;
|
|
123
|
+
system?: boolean | undefined;
|
|
124
|
+
mfaEnabled?: boolean | undefined;
|
|
125
|
+
banner?: string | null | undefined;
|
|
126
|
+
accentColor?: number | null | undefined;
|
|
127
|
+
locale?: string | undefined;
|
|
128
|
+
verified?: boolean | undefined;
|
|
129
|
+
email?: string | null | undefined;
|
|
130
|
+
flags?: import("../types").UserFlags | undefined;
|
|
131
|
+
premiumType?: import("../types").UserPremiumType | undefined;
|
|
132
|
+
publicFlags?: import("../types").UserFlags | undefined;
|
|
133
|
+
avatarDecorationData?: import("../types").APIAvatarDecorationData | null | undefined;
|
|
134
|
+
} | undefined;
|
|
135
|
+
targetApplication?: {
|
|
136
|
+
id?: string | undefined;
|
|
137
|
+
name?: string | undefined;
|
|
138
|
+
icon?: string | null | undefined;
|
|
139
|
+
description?: string | undefined;
|
|
140
|
+
rpcOrigins?: string[] | undefined;
|
|
141
|
+
botPublic?: boolean | undefined;
|
|
142
|
+
botRequireCodeGrant?: boolean | undefined;
|
|
143
|
+
bot?: import("../types").APIUser | undefined;
|
|
144
|
+
termsOfServiceUrl?: string | undefined;
|
|
145
|
+
privacyPolicyUrl?: string | undefined;
|
|
146
|
+
owner?: import("../types").APIUser | undefined;
|
|
147
|
+
verifyKey?: string | undefined;
|
|
148
|
+
team?: import("../types").APITeam | null | undefined;
|
|
149
|
+
guildId?: string | undefined;
|
|
150
|
+
guild?: import("../types").APIPartialGuild | undefined;
|
|
151
|
+
primarySkuId?: string | undefined;
|
|
152
|
+
slug?: string | undefined;
|
|
153
|
+
coverImage?: string | undefined;
|
|
154
|
+
flags?: import("../types").ApplicationFlags | undefined;
|
|
155
|
+
approximateGuildCount?: number | undefined;
|
|
156
|
+
approximateUserInstallCount?: number | undefined;
|
|
157
|
+
redirectUris?: string[] | undefined;
|
|
158
|
+
interactionsEndpointUrl?: string | null | undefined;
|
|
159
|
+
roleConnectionsVerificationUrl?: string | null | undefined;
|
|
160
|
+
tags?: [string, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?] | undefined;
|
|
161
|
+
installParams?: import("../types").APIApplicationInstallParams | undefined;
|
|
162
|
+
integrationTypesConfig?: import("../types").APIApplicationIntegrationTypesConfigMap | undefined;
|
|
163
|
+
customInstallUrl?: string | undefined;
|
|
164
|
+
} | undefined;
|
|
165
|
+
approximatePresenceCount?: number | undefined;
|
|
166
|
+
approximateMemberCount?: number | undefined;
|
|
167
|
+
expiresAt?: string | null | undefined;
|
|
168
|
+
guildScheduledEvent?: {
|
|
169
|
+
channelId: string;
|
|
170
|
+
entityMetadata: null;
|
|
171
|
+
id: string;
|
|
172
|
+
guildId: string;
|
|
173
|
+
creatorId?: string | null | undefined;
|
|
174
|
+
name: string;
|
|
175
|
+
description?: string | null | undefined;
|
|
176
|
+
scheduledStartTime: string;
|
|
177
|
+
scheduledEndTime: string | null;
|
|
178
|
+
privacyLevel: import("../types").GuildScheduledEventPrivacyLevel;
|
|
179
|
+
status: import("../types").GuildScheduledEventStatus;
|
|
180
|
+
entityType: import("../types").GuildScheduledEventEntityType.StageInstance;
|
|
181
|
+
entityId: string | null;
|
|
182
|
+
creator?: import("../types").APIUser | undefined;
|
|
183
|
+
userCount?: number | undefined;
|
|
184
|
+
image?: string | null | undefined;
|
|
185
|
+
recurrenceRule: import("../types").APIGuildScheduledEventRecurrenceRule | null;
|
|
186
|
+
} | {
|
|
187
|
+
channelId: string;
|
|
188
|
+
entityMetadata: null;
|
|
189
|
+
id: string;
|
|
190
|
+
guildId: string;
|
|
191
|
+
creatorId?: string | null | undefined;
|
|
192
|
+
name: string;
|
|
193
|
+
description?: string | null | undefined;
|
|
194
|
+
scheduledStartTime: string;
|
|
195
|
+
scheduledEndTime: string | null;
|
|
196
|
+
privacyLevel: import("../types").GuildScheduledEventPrivacyLevel;
|
|
197
|
+
status: import("../types").GuildScheduledEventStatus;
|
|
198
|
+
entityType: import("../types").GuildScheduledEventEntityType.Voice;
|
|
199
|
+
entityId: string | null;
|
|
200
|
+
creator?: import("../types").APIUser | undefined;
|
|
201
|
+
userCount?: number | undefined;
|
|
202
|
+
image?: string | null | undefined;
|
|
203
|
+
recurrenceRule: import("../types").APIGuildScheduledEventRecurrenceRule | null;
|
|
204
|
+
} | {
|
|
205
|
+
channelId: null;
|
|
206
|
+
entityMetadata: {
|
|
207
|
+
location: string;
|
|
208
|
+
};
|
|
209
|
+
id: string;
|
|
210
|
+
guildId: string;
|
|
211
|
+
creatorId?: string | null | undefined;
|
|
212
|
+
name: string;
|
|
213
|
+
description?: string | null | undefined;
|
|
214
|
+
scheduledStartTime: string;
|
|
215
|
+
scheduledEndTime: string | null;
|
|
216
|
+
privacyLevel: import("../types").GuildScheduledEventPrivacyLevel;
|
|
217
|
+
status: import("../types").GuildScheduledEventStatus;
|
|
218
|
+
entityType: import("../types").GuildScheduledEventEntityType.External;
|
|
219
|
+
entityId: string | null;
|
|
220
|
+
creator?: import("../types").APIUser | undefined;
|
|
221
|
+
userCount?: number | undefined;
|
|
222
|
+
image?: string | null | undefined;
|
|
223
|
+
recurrenceRule: import("../types").APIGuildScheduledEventRecurrenceRule | null;
|
|
224
|
+
} | undefined;
|
|
225
|
+
type: import("../types").InviteType;
|
|
226
|
+
}[]>;
|
|
227
|
+
create: (data: Omit<CreateInviteFromChannel, "channelId">) => Promise<{
|
|
228
|
+
uses: number;
|
|
229
|
+
maxUses: number;
|
|
230
|
+
maxAge: number;
|
|
231
|
+
temporary: boolean;
|
|
232
|
+
createdAt: string;
|
|
233
|
+
code: string;
|
|
234
|
+
guild?: {
|
|
235
|
+
id: string;
|
|
236
|
+
name: string;
|
|
237
|
+
description: string | null;
|
|
238
|
+
icon: string | null;
|
|
239
|
+
splash: string | null;
|
|
240
|
+
banner: string | null;
|
|
241
|
+
features: import("../types").GuildFeature[];
|
|
242
|
+
verificationLevel: import("../types").GuildVerificationLevel;
|
|
243
|
+
vanityUrlCode: string | null;
|
|
244
|
+
premiumSubscriptionCount?: number | undefined;
|
|
245
|
+
nsfwLevel: import("../types").GuildNSFWLevel;
|
|
246
|
+
} | undefined;
|
|
247
|
+
channel: {
|
|
248
|
+
id: string;
|
|
249
|
+
type: ChannelType;
|
|
250
|
+
name: string | null;
|
|
251
|
+
} | null;
|
|
252
|
+
inviter?: {
|
|
253
|
+
id: string;
|
|
254
|
+
username: string;
|
|
255
|
+
discriminator: string;
|
|
256
|
+
globalName: string | null;
|
|
257
|
+
avatar: string | null;
|
|
258
|
+
bot?: boolean | undefined;
|
|
259
|
+
system?: boolean | undefined;
|
|
260
|
+
mfaEnabled?: boolean | undefined;
|
|
261
|
+
banner?: string | null | undefined;
|
|
262
|
+
accentColor?: number | null | undefined;
|
|
263
|
+
locale?: string | undefined;
|
|
264
|
+
verified?: boolean | undefined;
|
|
265
|
+
email?: string | null | undefined;
|
|
266
|
+
flags?: import("../types").UserFlags | undefined;
|
|
267
|
+
premiumType?: import("../types").UserPremiumType | undefined;
|
|
268
|
+
publicFlags?: import("../types").UserFlags | undefined;
|
|
269
|
+
avatarDecorationData?: import("../types").APIAvatarDecorationData | null | undefined;
|
|
270
|
+
} | undefined;
|
|
271
|
+
targetType?: import("../types").InviteTargetType | undefined;
|
|
272
|
+
targetUser?: {
|
|
273
|
+
id: string;
|
|
274
|
+
username: string;
|
|
275
|
+
discriminator: string;
|
|
276
|
+
globalName: string | null;
|
|
277
|
+
avatar: string | null;
|
|
278
|
+
bot?: boolean | undefined;
|
|
279
|
+
system?: boolean | undefined;
|
|
280
|
+
mfaEnabled?: boolean | undefined;
|
|
281
|
+
banner?: string | null | undefined;
|
|
282
|
+
accentColor?: number | null | undefined;
|
|
283
|
+
locale?: string | undefined;
|
|
284
|
+
verified?: boolean | undefined;
|
|
285
|
+
email?: string | null | undefined;
|
|
286
|
+
flags?: import("../types").UserFlags | undefined;
|
|
287
|
+
premiumType?: import("../types").UserPremiumType | undefined;
|
|
288
|
+
publicFlags?: import("../types").UserFlags | undefined;
|
|
289
|
+
avatarDecorationData?: import("../types").APIAvatarDecorationData | null | undefined;
|
|
290
|
+
} | undefined;
|
|
291
|
+
targetApplication?: {
|
|
292
|
+
id?: string | undefined;
|
|
293
|
+
name?: string | undefined;
|
|
294
|
+
icon?: string | null | undefined;
|
|
295
|
+
description?: string | undefined;
|
|
296
|
+
rpcOrigins?: string[] | undefined;
|
|
297
|
+
botPublic?: boolean | undefined;
|
|
298
|
+
botRequireCodeGrant?: boolean | undefined;
|
|
299
|
+
bot?: import("../types").APIUser | undefined;
|
|
300
|
+
termsOfServiceUrl?: string | undefined;
|
|
301
|
+
privacyPolicyUrl?: string | undefined;
|
|
302
|
+
owner?: import("../types").APIUser | undefined;
|
|
303
|
+
verifyKey?: string | undefined;
|
|
304
|
+
team?: import("../types").APITeam | null | undefined;
|
|
305
|
+
guildId?: string | undefined;
|
|
306
|
+
guild?: import("../types").APIPartialGuild | undefined;
|
|
307
|
+
primarySkuId?: string | undefined;
|
|
308
|
+
slug?: string | undefined;
|
|
309
|
+
coverImage?: string | undefined;
|
|
310
|
+
flags?: import("../types").ApplicationFlags | undefined;
|
|
311
|
+
approximateGuildCount?: number | undefined;
|
|
312
|
+
approximateUserInstallCount?: number | undefined;
|
|
313
|
+
redirectUris?: string[] | undefined;
|
|
314
|
+
interactionsEndpointUrl?: string | null | undefined;
|
|
315
|
+
roleConnectionsVerificationUrl?: string | null | undefined;
|
|
316
|
+
tags?: [string, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?] | undefined;
|
|
317
|
+
installParams?: import("../types").APIApplicationInstallParams | undefined;
|
|
318
|
+
integrationTypesConfig?: import("../types").APIApplicationIntegrationTypesConfigMap | undefined;
|
|
319
|
+
customInstallUrl?: string | undefined;
|
|
320
|
+
} | undefined;
|
|
321
|
+
approximatePresenceCount?: number | undefined;
|
|
322
|
+
approximateMemberCount?: number | undefined;
|
|
323
|
+
expiresAt?: string | null | undefined;
|
|
324
|
+
guildScheduledEvent?: {
|
|
325
|
+
channelId: string;
|
|
326
|
+
entityMetadata: null;
|
|
327
|
+
id: string;
|
|
328
|
+
guildId: string;
|
|
329
|
+
creatorId?: string | null | undefined;
|
|
330
|
+
name: string;
|
|
331
|
+
description?: string | null | undefined;
|
|
332
|
+
scheduledStartTime: string;
|
|
333
|
+
scheduledEndTime: string | null;
|
|
334
|
+
privacyLevel: import("../types").GuildScheduledEventPrivacyLevel;
|
|
335
|
+
status: import("../types").GuildScheduledEventStatus;
|
|
336
|
+
entityType: import("../types").GuildScheduledEventEntityType.StageInstance;
|
|
337
|
+
entityId: string | null;
|
|
338
|
+
creator?: import("../types").APIUser | undefined;
|
|
339
|
+
userCount?: number | undefined;
|
|
340
|
+
image?: string | null | undefined;
|
|
341
|
+
recurrenceRule: import("../types").APIGuildScheduledEventRecurrenceRule | null;
|
|
342
|
+
} | {
|
|
343
|
+
channelId: string;
|
|
344
|
+
entityMetadata: null;
|
|
345
|
+
id: string;
|
|
346
|
+
guildId: string;
|
|
347
|
+
creatorId?: string | null | undefined;
|
|
348
|
+
name: string;
|
|
349
|
+
description?: string | null | undefined;
|
|
350
|
+
scheduledStartTime: string;
|
|
351
|
+
scheduledEndTime: string | null;
|
|
352
|
+
privacyLevel: import("../types").GuildScheduledEventPrivacyLevel;
|
|
353
|
+
status: import("../types").GuildScheduledEventStatus;
|
|
354
|
+
entityType: import("../types").GuildScheduledEventEntityType.Voice;
|
|
355
|
+
entityId: string | null;
|
|
356
|
+
creator?: import("../types").APIUser | undefined;
|
|
357
|
+
userCount?: number | undefined;
|
|
358
|
+
image?: string | null | undefined;
|
|
359
|
+
recurrenceRule: import("../types").APIGuildScheduledEventRecurrenceRule | null;
|
|
360
|
+
} | {
|
|
361
|
+
channelId: null;
|
|
362
|
+
entityMetadata: {
|
|
363
|
+
location: string;
|
|
364
|
+
};
|
|
365
|
+
id: string;
|
|
366
|
+
guildId: string;
|
|
367
|
+
creatorId?: string | null | undefined;
|
|
368
|
+
name: string;
|
|
369
|
+
description?: string | null | undefined;
|
|
370
|
+
scheduledStartTime: string;
|
|
371
|
+
scheduledEndTime: string | null;
|
|
372
|
+
privacyLevel: import("../types").GuildScheduledEventPrivacyLevel;
|
|
373
|
+
status: import("../types").GuildScheduledEventStatus;
|
|
374
|
+
entityType: import("../types").GuildScheduledEventEntityType.External;
|
|
375
|
+
entityId: string | null;
|
|
376
|
+
creator?: import("../types").APIUser | undefined;
|
|
377
|
+
userCount?: number | undefined;
|
|
378
|
+
image?: string | null | undefined;
|
|
379
|
+
recurrenceRule: import("../types").APIGuildScheduledEventRecurrenceRule | null;
|
|
380
|
+
} | undefined;
|
|
381
|
+
type: import("../types").InviteType;
|
|
382
|
+
}>;
|
|
383
|
+
delete: (code: string, reason?: string) => Promise<{
|
|
384
|
+
code: string;
|
|
385
|
+
guild?: {
|
|
386
|
+
id: string;
|
|
387
|
+
name: string;
|
|
388
|
+
description: string | null;
|
|
389
|
+
icon: string | null;
|
|
390
|
+
splash: string | null;
|
|
391
|
+
banner: string | null;
|
|
392
|
+
features: import("../types").GuildFeature[];
|
|
393
|
+
verificationLevel: import("../types").GuildVerificationLevel;
|
|
394
|
+
vanityUrlCode: string | null;
|
|
395
|
+
premiumSubscriptionCount?: number | undefined;
|
|
396
|
+
nsfwLevel: import("../types").GuildNSFWLevel;
|
|
397
|
+
} | undefined;
|
|
398
|
+
channel: {
|
|
399
|
+
id: string;
|
|
400
|
+
type: ChannelType;
|
|
401
|
+
name: string | null;
|
|
402
|
+
} | null;
|
|
403
|
+
inviter?: {
|
|
404
|
+
id: string;
|
|
405
|
+
username: string;
|
|
406
|
+
discriminator: string;
|
|
407
|
+
globalName: string | null;
|
|
408
|
+
avatar: string | null;
|
|
409
|
+
bot?: boolean | undefined;
|
|
410
|
+
system?: boolean | undefined;
|
|
411
|
+
mfaEnabled?: boolean | undefined;
|
|
412
|
+
banner?: string | null | undefined;
|
|
413
|
+
accentColor?: number | null | undefined;
|
|
414
|
+
locale?: string | undefined;
|
|
415
|
+
verified?: boolean | undefined;
|
|
416
|
+
email?: string | null | undefined;
|
|
417
|
+
flags?: import("../types").UserFlags | undefined;
|
|
418
|
+
premiumType?: import("../types").UserPremiumType | undefined;
|
|
419
|
+
publicFlags?: import("../types").UserFlags | undefined;
|
|
420
|
+
avatarDecorationData?: import("../types").APIAvatarDecorationData | null | undefined;
|
|
421
|
+
} | undefined;
|
|
422
|
+
targetType?: import("../types").InviteTargetType | undefined;
|
|
423
|
+
targetUser?: {
|
|
424
|
+
id: string;
|
|
425
|
+
username: string;
|
|
426
|
+
discriminator: string;
|
|
427
|
+
globalName: string | null;
|
|
428
|
+
avatar: string | null;
|
|
429
|
+
bot?: boolean | undefined;
|
|
430
|
+
system?: boolean | undefined;
|
|
431
|
+
mfaEnabled?: boolean | undefined;
|
|
432
|
+
banner?: string | null | undefined;
|
|
433
|
+
accentColor?: number | null | undefined;
|
|
434
|
+
locale?: string | undefined;
|
|
435
|
+
verified?: boolean | undefined;
|
|
436
|
+
email?: string | null | undefined;
|
|
437
|
+
flags?: import("../types").UserFlags | undefined;
|
|
438
|
+
premiumType?: import("../types").UserPremiumType | undefined;
|
|
439
|
+
publicFlags?: import("../types").UserFlags | undefined;
|
|
440
|
+
avatarDecorationData?: import("../types").APIAvatarDecorationData | null | undefined;
|
|
441
|
+
} | undefined;
|
|
442
|
+
targetApplication?: {
|
|
443
|
+
id?: string | undefined;
|
|
444
|
+
name?: string | undefined;
|
|
445
|
+
icon?: string | null | undefined;
|
|
446
|
+
description?: string | undefined;
|
|
447
|
+
rpcOrigins?: string[] | undefined;
|
|
448
|
+
botPublic?: boolean | undefined;
|
|
449
|
+
botRequireCodeGrant?: boolean | undefined;
|
|
450
|
+
bot?: import("../types").APIUser | undefined;
|
|
451
|
+
termsOfServiceUrl?: string | undefined;
|
|
452
|
+
privacyPolicyUrl?: string | undefined;
|
|
453
|
+
owner?: import("../types").APIUser | undefined;
|
|
454
|
+
verifyKey?: string | undefined;
|
|
455
|
+
team?: import("../types").APITeam | null | undefined;
|
|
456
|
+
guildId?: string | undefined;
|
|
457
|
+
guild?: import("../types").APIPartialGuild | undefined;
|
|
458
|
+
primarySkuId?: string | undefined;
|
|
459
|
+
slug?: string | undefined;
|
|
460
|
+
coverImage?: string | undefined;
|
|
461
|
+
flags?: import("../types").ApplicationFlags | undefined;
|
|
462
|
+
approximateGuildCount?: number | undefined;
|
|
463
|
+
approximateUserInstallCount?: number | undefined;
|
|
464
|
+
redirectUris?: string[] | undefined;
|
|
465
|
+
interactionsEndpointUrl?: string | null | undefined;
|
|
466
|
+
roleConnectionsVerificationUrl?: string | null | undefined;
|
|
467
|
+
tags?: [string, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?] | undefined;
|
|
468
|
+
installParams?: import("../types").APIApplicationInstallParams | undefined;
|
|
469
|
+
integrationTypesConfig?: import("../types").APIApplicationIntegrationTypesConfigMap | undefined;
|
|
470
|
+
customInstallUrl?: string | undefined;
|
|
471
|
+
} | undefined;
|
|
472
|
+
approximatePresenceCount?: number | undefined;
|
|
473
|
+
approximateMemberCount?: number | undefined;
|
|
474
|
+
expiresAt?: string | null | undefined;
|
|
475
|
+
guildScheduledEvent?: {
|
|
476
|
+
channelId: string;
|
|
477
|
+
entityMetadata: null;
|
|
478
|
+
id: string;
|
|
479
|
+
guildId: string;
|
|
480
|
+
creatorId?: string | null | undefined;
|
|
481
|
+
name: string;
|
|
482
|
+
description?: string | null | undefined;
|
|
483
|
+
scheduledStartTime: string;
|
|
484
|
+
scheduledEndTime: string | null;
|
|
485
|
+
privacyLevel: import("../types").GuildScheduledEventPrivacyLevel;
|
|
486
|
+
status: import("../types").GuildScheduledEventStatus;
|
|
487
|
+
entityType: import("../types").GuildScheduledEventEntityType.StageInstance;
|
|
488
|
+
entityId: string | null;
|
|
489
|
+
creator?: import("../types").APIUser | undefined;
|
|
490
|
+
userCount?: number | undefined;
|
|
491
|
+
image?: string | null | undefined;
|
|
492
|
+
recurrenceRule: import("../types").APIGuildScheduledEventRecurrenceRule | null;
|
|
493
|
+
} | {
|
|
494
|
+
channelId: string;
|
|
495
|
+
entityMetadata: null;
|
|
496
|
+
id: string;
|
|
497
|
+
guildId: string;
|
|
498
|
+
creatorId?: string | null | undefined;
|
|
499
|
+
name: string;
|
|
500
|
+
description?: string | null | undefined;
|
|
501
|
+
scheduledStartTime: string;
|
|
502
|
+
scheduledEndTime: string | null;
|
|
503
|
+
privacyLevel: import("../types").GuildScheduledEventPrivacyLevel;
|
|
504
|
+
status: import("../types").GuildScheduledEventStatus;
|
|
505
|
+
entityType: import("../types").GuildScheduledEventEntityType.Voice;
|
|
506
|
+
entityId: string | null;
|
|
507
|
+
creator?: import("../types").APIUser | undefined;
|
|
508
|
+
userCount?: number | undefined;
|
|
509
|
+
image?: string | null | undefined;
|
|
510
|
+
recurrenceRule: import("../types").APIGuildScheduledEventRecurrenceRule | null;
|
|
511
|
+
} | {
|
|
512
|
+
channelId: null;
|
|
513
|
+
entityMetadata: {
|
|
514
|
+
location: string;
|
|
515
|
+
};
|
|
516
|
+
id: string;
|
|
517
|
+
guildId: string;
|
|
518
|
+
creatorId?: string | null | undefined;
|
|
519
|
+
name: string;
|
|
520
|
+
description?: string | null | undefined;
|
|
521
|
+
scheduledStartTime: string;
|
|
522
|
+
scheduledEndTime: string | null;
|
|
523
|
+
privacyLevel: import("../types").GuildScheduledEventPrivacyLevel;
|
|
524
|
+
status: import("../types").GuildScheduledEventStatus;
|
|
525
|
+
entityType: import("../types").GuildScheduledEventEntityType.External;
|
|
526
|
+
entityId: string | null;
|
|
527
|
+
creator?: import("../types").APIUser | undefined;
|
|
528
|
+
userCount?: number | undefined;
|
|
529
|
+
image?: string | null | undefined;
|
|
530
|
+
recurrenceRule: import("../types").APIGuildScheduledEventRecurrenceRule | null;
|
|
531
|
+
} | undefined;
|
|
532
|
+
type: import("../types").InviteType;
|
|
533
|
+
}>;
|
|
534
|
+
};
|
|
70
535
|
permissionOverwrites: {
|
|
71
536
|
fetch: () => ReturnType<Overwrites["get"]>;
|
|
72
537
|
values: () => ReturnCache<ReturnType<Overwrites["values"]>>;
|
|
@@ -109,6 +109,14 @@ class BaseGuildChannel extends BaseChannel {
|
|
|
109
109
|
const { permission_overwrites, ...rest } = data;
|
|
110
110
|
super(client, rest);
|
|
111
111
|
}
|
|
112
|
+
invites = {
|
|
113
|
+
list: () => this.client.invites.channels.list(this.id),
|
|
114
|
+
create: (data) => this.client.invites.channels.create({
|
|
115
|
+
...data,
|
|
116
|
+
channelId: this.id,
|
|
117
|
+
}),
|
|
118
|
+
delete: (code, reason) => this.client.invites.delete(code, reason),
|
|
119
|
+
};
|
|
112
120
|
permissionOverwrites = {
|
|
113
121
|
fetch: () => this.client.cache.overwrites?.get(this.id) ||
|
|
114
122
|
(this.client.cache.adapter.isAsync ? Promise.resolve() : undefined),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "seyfert",
|
|
3
|
-
"version": "2.2.1-dev-
|
|
3
|
+
"version": "2.2.1-dev-14241083990.0",
|
|
4
4
|
"description": "The most advanced framework for discord bots",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@biomejs/biome": "1.9.4",
|
|
25
25
|
"@changesets/cli": "^2.28.1",
|
|
26
|
-
"@commitlint/cli": "^19.
|
|
27
|
-
"@commitlint/config-conventional": "^19.
|
|
28
|
-
"@types/node": "^22.
|
|
26
|
+
"@commitlint/cli": "^19.8.0",
|
|
27
|
+
"@commitlint/config-conventional": "^19.8.0",
|
|
28
|
+
"@types/node": "^22.14.0",
|
|
29
29
|
"husky": "^9.1.7",
|
|
30
|
-
"lint-staged": "^15.
|
|
31
|
-
"typescript": "^5.
|
|
32
|
-
"vitest": "^3.
|
|
30
|
+
"lint-staged": "^15.5.0",
|
|
31
|
+
"typescript": "^5.8.2",
|
|
32
|
+
"vitest": "^3.1.1"
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://seyfert.dev",
|
|
35
35
|
"repository": {
|
|
@@ -69,5 +69,11 @@
|
|
|
69
69
|
"*.ts": [
|
|
70
70
|
"biome check --write"
|
|
71
71
|
]
|
|
72
|
+
},
|
|
73
|
+
"pnpm": {
|
|
74
|
+
"onlyBuiltDependencies": [
|
|
75
|
+
"@biomejs/biome",
|
|
76
|
+
"esbuild"
|
|
77
|
+
]
|
|
72
78
|
}
|
|
73
79
|
}
|