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.
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InvitesShorter = void 0;
4
+ const utils_1 = require("../it/utils");
5
+ const base_1 = require("./base");
6
+ class InvitesShorter extends base_1.BaseShorter {
7
+ get(code) {
8
+ return this.client.proxy
9
+ .invites(code)
10
+ .get()
11
+ .then(x => (0, utils_1.toCamelCase)(x));
12
+ }
13
+ delete(code, reason) {
14
+ return this.client.proxy
15
+ .invites(code)
16
+ .delete({ reason })
17
+ .then(x => (0, utils_1.toCamelCase)(x));
18
+ }
19
+ channels = {
20
+ create: ({ channelId, reason, ...body }) => this.client.proxy
21
+ .channels(channelId)
22
+ .invites.post({ body, reason })
23
+ .then(x => (0, utils_1.toCamelCase)(x)),
24
+ list: (channelId) => this.client.proxy
25
+ .channels(channelId)
26
+ .invites.get()
27
+ .then(x => (0, utils_1.toCamelCase)(x)),
28
+ };
29
+ guilds = {
30
+ list: (guildId) => this.client.proxy
31
+ .guilds(guildId)
32
+ .invites.get()
33
+ .then(x => (0, utils_1.toCamelCase)(x)),
34
+ };
35
+ }
36
+ exports.InvitesShorter = InvitesShorter;
@@ -51,7 +51,7 @@ export type PickRequired<T, K extends keyof T> = Omit<T, K> & {
51
51
  export type NonFalsy<T> = T extends false | 0 | '' | null | undefined | 0n ? never : T;
52
52
  export type CamelCase<S extends string> = S extends `${infer P1}_${infer P2}${infer P3}` ? `${Lowercase<P1>}${Uppercase<P2>}${CamelCase<P3>}` : Lowercase<S>;
53
53
  export type SnakeCase<S extends string> = S extends `${infer A}${infer Rest}` ? A extends Uppercase<A> ? `_${Lowercase<A>}${SnakeCase<Rest>}` : `${A}${SnakeCase<Rest>}` : Lowercase<S>;
54
- export type ObjectToLower<T> = Identify<{
54
+ export type ObjectToLower<T> = T extends unknown[] ? ObjectToLower<T[0]>[] : Identify<{
55
55
  [K in keyof T as CamelCase<Exclude<K, symbol | number>>]: T[K] extends unknown[] ? Identify<ObjectToLower<T[K][0]>[]> : T[K] extends object ? Identify<ObjectToLower<T[K]>> : AuxIsStrictlyUndefined<T[K]> extends true ? undefined : ObjectToLowerUndefined<T[K]>;
56
56
  }>;
57
57
  export type ObjectToLowerUndefined<T> = T extends unknown[] ? ObjectToLower<T[0]>[] : Identify<{
@@ -1,5 +1,6 @@
1
1
  import type { GuildMemberStructure, GuildStructure } from '../client';
2
2
  import type { UsingClient } from '../commands';
3
+ import type { CreateInviteFromChannel } from '../common';
3
4
  import type { ObjectToLower, StructPropState, StructStates, ToClass } from '../common/types/util';
4
5
  import type { APIGuild, APIPartialGuild, GatewayGuildCreateDispatchData, RESTPatchAPIGuildJSONBody } from '../types';
5
6
  import { BaseGuild } from './extra/BaseGuild';
@@ -85,6 +86,471 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
85
86
  bulkCreate: (body: Parameters<import("../common/shorters/bans").BanShorter["bulkCreate"]>[1], reason?: string) => Promise<import("../types").RESTPostAPIGuildBulkBanResult>;
86
87
  };
87
88
  edit(body: RESTPatchAPIGuildJSONBody, reason?: string): Promise<GuildStructure<'api'>>;
89
+ invites: {
90
+ list: () => Promise<{
91
+ uses: number;
92
+ maxUses: number;
93
+ maxAge: number;
94
+ temporary: boolean;
95
+ createdAt: string;
96
+ code: string;
97
+ guild?: {
98
+ id: string;
99
+ name: string;
100
+ description: string | null;
101
+ icon: string | null;
102
+ splash: string | null;
103
+ banner: string | null;
104
+ features: import("../types").GuildFeature[];
105
+ verificationLevel: import("../types").GuildVerificationLevel;
106
+ vanityUrlCode: string | null;
107
+ premiumSubscriptionCount?: number | undefined;
108
+ nsfwLevel: import("../types").GuildNSFWLevel;
109
+ } | undefined;
110
+ channel: {
111
+ id: string;
112
+ type: import("../types").ChannelType;
113
+ name: string | null;
114
+ } | null;
115
+ inviter?: {
116
+ id: string;
117
+ username: string;
118
+ discriminator: string;
119
+ globalName: string | null;
120
+ avatar: string | null;
121
+ bot?: boolean | undefined;
122
+ system?: boolean | undefined;
123
+ mfaEnabled?: boolean | undefined;
124
+ banner?: string | null | undefined;
125
+ accentColor?: number | null | undefined;
126
+ locale?: string | undefined;
127
+ verified?: boolean | undefined;
128
+ email?: string | null | undefined;
129
+ flags?: import("../types").UserFlags | undefined;
130
+ premiumType?: import("../types").UserPremiumType | undefined;
131
+ publicFlags?: import("../types").UserFlags | undefined;
132
+ avatarDecorationData?: import("../types").APIAvatarDecorationData | null | undefined;
133
+ } | undefined;
134
+ targetType?: import("../types").InviteTargetType | undefined;
135
+ targetUser?: {
136
+ id: string;
137
+ username: string;
138
+ discriminator: string;
139
+ globalName: string | null;
140
+ avatar: string | null;
141
+ bot?: boolean | undefined;
142
+ system?: boolean | undefined;
143
+ mfaEnabled?: boolean | undefined;
144
+ banner?: string | null | undefined;
145
+ accentColor?: number | null | undefined;
146
+ locale?: string | undefined;
147
+ verified?: boolean | undefined;
148
+ email?: string | null | undefined;
149
+ flags?: import("../types").UserFlags | undefined;
150
+ premiumType?: import("../types").UserPremiumType | undefined;
151
+ publicFlags?: import("../types").UserFlags | undefined;
152
+ avatarDecorationData?: import("../types").APIAvatarDecorationData | null | undefined;
153
+ } | undefined;
154
+ targetApplication?: {
155
+ id?: string | undefined;
156
+ name?: string | undefined;
157
+ icon?: string | null | undefined;
158
+ description?: string | undefined;
159
+ rpcOrigins?: string[] | undefined;
160
+ botPublic?: boolean | undefined;
161
+ botRequireCodeGrant?: boolean | undefined;
162
+ bot?: import("../types").APIUser | undefined;
163
+ termsOfServiceUrl?: string | undefined;
164
+ privacyPolicyUrl?: string | undefined;
165
+ owner?: import("../types").APIUser | undefined;
166
+ verifyKey?: string | undefined;
167
+ team?: import("../types").APITeam | null | undefined;
168
+ guildId?: string | undefined;
169
+ guild?: APIPartialGuild | undefined;
170
+ primarySkuId?: string | undefined;
171
+ slug?: string | undefined;
172
+ coverImage?: string | undefined;
173
+ flags?: import("../types").ApplicationFlags | undefined;
174
+ approximateGuildCount?: number | undefined;
175
+ approximateUserInstallCount?: number | undefined;
176
+ redirectUris?: string[] | undefined;
177
+ interactionsEndpointUrl?: string | null | undefined;
178
+ roleConnectionsVerificationUrl?: string | null | undefined;
179
+ tags?: [string, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?] | undefined;
180
+ installParams?: import("../types").APIApplicationInstallParams | undefined;
181
+ integrationTypesConfig?: import("../types").APIApplicationIntegrationTypesConfigMap | undefined;
182
+ customInstallUrl?: string | undefined;
183
+ } | undefined;
184
+ approximatePresenceCount?: number | undefined;
185
+ approximateMemberCount?: number | undefined;
186
+ expiresAt?: string | null | undefined;
187
+ guildScheduledEvent?: {
188
+ channelId: string;
189
+ entityMetadata: null;
190
+ id: string;
191
+ guildId: string;
192
+ creatorId?: string | null | undefined;
193
+ name: string;
194
+ description?: string | null | undefined;
195
+ scheduledStartTime: string;
196
+ scheduledEndTime: string | null;
197
+ privacyLevel: import("../types").GuildScheduledEventPrivacyLevel;
198
+ status: import("../types").GuildScheduledEventStatus;
199
+ entityType: import("../types").GuildScheduledEventEntityType.StageInstance;
200
+ entityId: string | null;
201
+ creator?: import("../types").APIUser | undefined;
202
+ userCount?: number | undefined;
203
+ image?: string | null | undefined;
204
+ recurrenceRule: import("../types").APIGuildScheduledEventRecurrenceRule | null;
205
+ } | {
206
+ channelId: string;
207
+ entityMetadata: null;
208
+ id: string;
209
+ guildId: string;
210
+ creatorId?: string | null | undefined;
211
+ name: string;
212
+ description?: string | null | undefined;
213
+ scheduledStartTime: string;
214
+ scheduledEndTime: string | null;
215
+ privacyLevel: import("../types").GuildScheduledEventPrivacyLevel;
216
+ status: import("../types").GuildScheduledEventStatus;
217
+ entityType: import("../types").GuildScheduledEventEntityType.Voice;
218
+ entityId: string | null;
219
+ creator?: import("../types").APIUser | undefined;
220
+ userCount?: number | undefined;
221
+ image?: string | null | undefined;
222
+ recurrenceRule: import("../types").APIGuildScheduledEventRecurrenceRule | null;
223
+ } | {
224
+ channelId: null;
225
+ entityMetadata: {
226
+ location: string;
227
+ };
228
+ id: string;
229
+ guildId: string;
230
+ creatorId?: string | null | undefined;
231
+ name: string;
232
+ description?: string | null | undefined;
233
+ scheduledStartTime: string;
234
+ scheduledEndTime: string | null;
235
+ privacyLevel: import("../types").GuildScheduledEventPrivacyLevel;
236
+ status: import("../types").GuildScheduledEventStatus;
237
+ entityType: import("../types").GuildScheduledEventEntityType.External;
238
+ entityId: string | null;
239
+ creator?: import("../types").APIUser | undefined;
240
+ userCount?: number | undefined;
241
+ image?: string | null | undefined;
242
+ recurrenceRule: import("../types").APIGuildScheduledEventRecurrenceRule | null;
243
+ } | undefined;
244
+ type: import("../types").InviteType;
245
+ }[]>;
246
+ create: (data: CreateInviteFromChannel) => Promise<{
247
+ uses: number;
248
+ maxUses: number;
249
+ maxAge: number;
250
+ temporary: boolean;
251
+ createdAt: string;
252
+ code: string;
253
+ guild?: {
254
+ id: string;
255
+ name: string;
256
+ description: string | null;
257
+ icon: string | null;
258
+ splash: string | null;
259
+ banner: string | null;
260
+ features: import("../types").GuildFeature[];
261
+ verificationLevel: import("../types").GuildVerificationLevel;
262
+ vanityUrlCode: string | null;
263
+ premiumSubscriptionCount?: number | undefined;
264
+ nsfwLevel: import("../types").GuildNSFWLevel;
265
+ } | undefined;
266
+ channel: {
267
+ id: string;
268
+ type: import("../types").ChannelType;
269
+ name: string | null;
270
+ } | null;
271
+ inviter?: {
272
+ id: string;
273
+ username: string;
274
+ discriminator: string;
275
+ globalName: string | null;
276
+ avatar: string | null;
277
+ bot?: boolean | undefined;
278
+ system?: boolean | undefined;
279
+ mfaEnabled?: boolean | undefined;
280
+ banner?: string | null | undefined;
281
+ accentColor?: number | null | undefined;
282
+ locale?: string | undefined;
283
+ verified?: boolean | undefined;
284
+ email?: string | null | undefined;
285
+ flags?: import("../types").UserFlags | undefined;
286
+ premiumType?: import("../types").UserPremiumType | undefined;
287
+ publicFlags?: import("../types").UserFlags | undefined;
288
+ avatarDecorationData?: import("../types").APIAvatarDecorationData | null | undefined;
289
+ } | undefined;
290
+ targetType?: import("../types").InviteTargetType | undefined;
291
+ targetUser?: {
292
+ id: string;
293
+ username: string;
294
+ discriminator: string;
295
+ globalName: string | null;
296
+ avatar: string | null;
297
+ bot?: boolean | undefined;
298
+ system?: boolean | undefined;
299
+ mfaEnabled?: boolean | undefined;
300
+ banner?: string | null | undefined;
301
+ accentColor?: number | null | undefined;
302
+ locale?: string | undefined;
303
+ verified?: boolean | undefined;
304
+ email?: string | null | undefined;
305
+ flags?: import("../types").UserFlags | undefined;
306
+ premiumType?: import("../types").UserPremiumType | undefined;
307
+ publicFlags?: import("../types").UserFlags | undefined;
308
+ avatarDecorationData?: import("../types").APIAvatarDecorationData | null | undefined;
309
+ } | undefined;
310
+ targetApplication?: {
311
+ id?: string | undefined;
312
+ name?: string | undefined;
313
+ icon?: string | null | undefined;
314
+ description?: string | undefined;
315
+ rpcOrigins?: string[] | undefined;
316
+ botPublic?: boolean | undefined;
317
+ botRequireCodeGrant?: boolean | undefined;
318
+ bot?: import("../types").APIUser | undefined;
319
+ termsOfServiceUrl?: string | undefined;
320
+ privacyPolicyUrl?: string | undefined;
321
+ owner?: import("../types").APIUser | undefined;
322
+ verifyKey?: string | undefined;
323
+ team?: import("../types").APITeam | null | undefined;
324
+ guildId?: string | undefined;
325
+ guild?: APIPartialGuild | undefined;
326
+ primarySkuId?: string | undefined;
327
+ slug?: string | undefined;
328
+ coverImage?: string | undefined;
329
+ flags?: import("../types").ApplicationFlags | undefined;
330
+ approximateGuildCount?: number | undefined;
331
+ approximateUserInstallCount?: number | undefined;
332
+ redirectUris?: string[] | undefined;
333
+ interactionsEndpointUrl?: string | null | undefined;
334
+ roleConnectionsVerificationUrl?: string | null | undefined;
335
+ tags?: [string, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?] | undefined;
336
+ installParams?: import("../types").APIApplicationInstallParams | undefined;
337
+ integrationTypesConfig?: import("../types").APIApplicationIntegrationTypesConfigMap | undefined;
338
+ customInstallUrl?: string | undefined;
339
+ } | undefined;
340
+ approximatePresenceCount?: number | undefined;
341
+ approximateMemberCount?: number | undefined;
342
+ expiresAt?: string | null | undefined;
343
+ guildScheduledEvent?: {
344
+ channelId: string;
345
+ entityMetadata: null;
346
+ id: string;
347
+ guildId: string;
348
+ creatorId?: string | null | undefined;
349
+ name: string;
350
+ description?: string | null | undefined;
351
+ scheduledStartTime: string;
352
+ scheduledEndTime: string | null;
353
+ privacyLevel: import("../types").GuildScheduledEventPrivacyLevel;
354
+ status: import("../types").GuildScheduledEventStatus;
355
+ entityType: import("../types").GuildScheduledEventEntityType.StageInstance;
356
+ entityId: string | null;
357
+ creator?: import("../types").APIUser | undefined;
358
+ userCount?: number | undefined;
359
+ image?: string | null | undefined;
360
+ recurrenceRule: import("../types").APIGuildScheduledEventRecurrenceRule | null;
361
+ } | {
362
+ channelId: string;
363
+ entityMetadata: null;
364
+ id: string;
365
+ guildId: string;
366
+ creatorId?: string | null | undefined;
367
+ name: string;
368
+ description?: string | null | undefined;
369
+ scheduledStartTime: string;
370
+ scheduledEndTime: string | null;
371
+ privacyLevel: import("../types").GuildScheduledEventPrivacyLevel;
372
+ status: import("../types").GuildScheduledEventStatus;
373
+ entityType: import("../types").GuildScheduledEventEntityType.Voice;
374
+ entityId: string | null;
375
+ creator?: import("../types").APIUser | undefined;
376
+ userCount?: number | undefined;
377
+ image?: string | null | undefined;
378
+ recurrenceRule: import("../types").APIGuildScheduledEventRecurrenceRule | null;
379
+ } | {
380
+ channelId: null;
381
+ entityMetadata: {
382
+ location: string;
383
+ };
384
+ id: string;
385
+ guildId: string;
386
+ creatorId?: string | null | undefined;
387
+ name: string;
388
+ description?: string | null | undefined;
389
+ scheduledStartTime: string;
390
+ scheduledEndTime: string | null;
391
+ privacyLevel: import("../types").GuildScheduledEventPrivacyLevel;
392
+ status: import("../types").GuildScheduledEventStatus;
393
+ entityType: import("../types").GuildScheduledEventEntityType.External;
394
+ entityId: string | null;
395
+ creator?: import("../types").APIUser | undefined;
396
+ userCount?: number | undefined;
397
+ image?: string | null | undefined;
398
+ recurrenceRule: import("../types").APIGuildScheduledEventRecurrenceRule | null;
399
+ } | undefined;
400
+ type: import("../types").InviteType;
401
+ }>;
402
+ delete: (code: string, reason?: string) => Promise<{
403
+ code: string;
404
+ guild?: {
405
+ id: string;
406
+ name: string;
407
+ description: string | null;
408
+ icon: string | null;
409
+ splash: string | null;
410
+ banner: string | null;
411
+ features: import("../types").GuildFeature[];
412
+ verificationLevel: import("../types").GuildVerificationLevel;
413
+ vanityUrlCode: string | null;
414
+ premiumSubscriptionCount?: number | undefined;
415
+ nsfwLevel: import("../types").GuildNSFWLevel;
416
+ } | undefined;
417
+ channel: {
418
+ id: string;
419
+ type: import("../types").ChannelType;
420
+ name: string | null;
421
+ } | null;
422
+ inviter?: {
423
+ id: string;
424
+ username: string;
425
+ discriminator: string;
426
+ globalName: string | null;
427
+ avatar: string | null;
428
+ bot?: boolean | undefined;
429
+ system?: boolean | undefined;
430
+ mfaEnabled?: boolean | undefined;
431
+ banner?: string | null | undefined;
432
+ accentColor?: number | null | undefined;
433
+ locale?: string | undefined;
434
+ verified?: boolean | undefined;
435
+ email?: string | null | undefined;
436
+ flags?: import("../types").UserFlags | undefined;
437
+ premiumType?: import("../types").UserPremiumType | undefined;
438
+ publicFlags?: import("../types").UserFlags | undefined;
439
+ avatarDecorationData?: import("../types").APIAvatarDecorationData | null | undefined;
440
+ } | undefined;
441
+ targetType?: import("../types").InviteTargetType | undefined;
442
+ targetUser?: {
443
+ id: string;
444
+ username: string;
445
+ discriminator: string;
446
+ globalName: string | null;
447
+ avatar: string | null;
448
+ bot?: boolean | undefined;
449
+ system?: boolean | undefined;
450
+ mfaEnabled?: boolean | undefined;
451
+ banner?: string | null | undefined;
452
+ accentColor?: number | null | undefined;
453
+ locale?: string | undefined;
454
+ verified?: boolean | undefined;
455
+ email?: string | null | undefined;
456
+ flags?: import("../types").UserFlags | undefined;
457
+ premiumType?: import("../types").UserPremiumType | undefined;
458
+ publicFlags?: import("../types").UserFlags | undefined;
459
+ avatarDecorationData?: import("../types").APIAvatarDecorationData | null | undefined;
460
+ } | undefined;
461
+ targetApplication?: {
462
+ id?: string | undefined;
463
+ name?: string | undefined;
464
+ icon?: string | null | undefined;
465
+ description?: string | undefined;
466
+ rpcOrigins?: string[] | undefined;
467
+ botPublic?: boolean | undefined;
468
+ botRequireCodeGrant?: boolean | undefined;
469
+ bot?: import("../types").APIUser | undefined;
470
+ termsOfServiceUrl?: string | undefined;
471
+ privacyPolicyUrl?: string | undefined;
472
+ owner?: import("../types").APIUser | undefined;
473
+ verifyKey?: string | undefined;
474
+ team?: import("../types").APITeam | null | undefined;
475
+ guildId?: string | undefined;
476
+ guild?: APIPartialGuild | undefined;
477
+ primarySkuId?: string | undefined;
478
+ slug?: string | undefined;
479
+ coverImage?: string | undefined;
480
+ flags?: import("../types").ApplicationFlags | undefined;
481
+ approximateGuildCount?: number | undefined;
482
+ approximateUserInstallCount?: number | undefined;
483
+ redirectUris?: string[] | undefined;
484
+ interactionsEndpointUrl?: string | null | undefined;
485
+ roleConnectionsVerificationUrl?: string | null | undefined;
486
+ tags?: [string, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?] | undefined;
487
+ installParams?: import("../types").APIApplicationInstallParams | undefined;
488
+ integrationTypesConfig?: import("../types").APIApplicationIntegrationTypesConfigMap | undefined;
489
+ customInstallUrl?: string | undefined;
490
+ } | undefined;
491
+ approximatePresenceCount?: number | undefined;
492
+ approximateMemberCount?: number | undefined;
493
+ expiresAt?: string | null | undefined;
494
+ guildScheduledEvent?: {
495
+ channelId: string;
496
+ entityMetadata: null;
497
+ id: string;
498
+ guildId: string;
499
+ creatorId?: string | null | undefined;
500
+ name: string;
501
+ description?: string | null | undefined;
502
+ scheduledStartTime: string;
503
+ scheduledEndTime: string | null;
504
+ privacyLevel: import("../types").GuildScheduledEventPrivacyLevel;
505
+ status: import("../types").GuildScheduledEventStatus;
506
+ entityType: import("../types").GuildScheduledEventEntityType.StageInstance;
507
+ entityId: string | null;
508
+ creator?: import("../types").APIUser | undefined;
509
+ userCount?: number | undefined;
510
+ image?: string | null | undefined;
511
+ recurrenceRule: import("../types").APIGuildScheduledEventRecurrenceRule | null;
512
+ } | {
513
+ channelId: string;
514
+ entityMetadata: null;
515
+ id: string;
516
+ guildId: string;
517
+ creatorId?: string | null | undefined;
518
+ name: string;
519
+ description?: string | null | undefined;
520
+ scheduledStartTime: string;
521
+ scheduledEndTime: string | null;
522
+ privacyLevel: import("../types").GuildScheduledEventPrivacyLevel;
523
+ status: import("../types").GuildScheduledEventStatus;
524
+ entityType: import("../types").GuildScheduledEventEntityType.Voice;
525
+ entityId: string | null;
526
+ creator?: import("../types").APIUser | undefined;
527
+ userCount?: number | undefined;
528
+ image?: string | null | undefined;
529
+ recurrenceRule: import("../types").APIGuildScheduledEventRecurrenceRule | null;
530
+ } | {
531
+ channelId: null;
532
+ entityMetadata: {
533
+ location: string;
534
+ };
535
+ id: string;
536
+ guildId: string;
537
+ creatorId?: string | null | undefined;
538
+ name: string;
539
+ description?: string | null | undefined;
540
+ scheduledStartTime: string;
541
+ scheduledEndTime: string | null;
542
+ privacyLevel: import("../types").GuildScheduledEventPrivacyLevel;
543
+ status: import("../types").GuildScheduledEventStatus;
544
+ entityType: import("../types").GuildScheduledEventEntityType.External;
545
+ entityId: string | null;
546
+ creator?: import("../types").APIUser | undefined;
547
+ userCount?: number | undefined;
548
+ image?: string | null | undefined;
549
+ recurrenceRule: import("../types").APIGuildScheduledEventRecurrenceRule | null;
550
+ } | undefined;
551
+ type: import("../types").InviteType;
552
+ }>;
553
+ };
88
554
  }
89
555
  /** Maximun custom guild emojis per level */
90
556
  export type MaxEmojis = 50 | 100 | 150 | 250;
@@ -67,5 +67,10 @@ class Guild extends BaseGuild_1.BaseGuild {
67
67
  edit(body, reason) {
68
68
  return this.client.guilds.edit(this.id, body, reason);
69
69
  }
70
+ invites = {
71
+ list: () => this.client.invites.guilds.list(this.id),
72
+ create: (data) => this.client.invites.channels.create(data),
73
+ delete: (code, reason) => this.client.invites.delete(code, reason),
74
+ };
70
75
  }
71
76
  exports.Guild = Guild;