File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,13 @@ class Invite extends Base {
22
22
23
23
constructor ( client , data ) {
24
24
super ( client ) ;
25
+
26
+ /**
27
+ * The type of this invite
28
+ * @type {InviteType }
29
+ */
30
+ this . type = data . type ;
31
+
25
32
this . _patch ( data ) ;
26
33
}
27
34
Original file line number Diff line number Diff line change 410
410
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10/enum/InteractionResponseType }
411
411
*/
412
412
413
+ /**
414
+ * @external InviteType
415
+ * @see {@link https://discord-api-types.dev/api/discord-api-types-v10/enum/InviteType }
416
+ */
417
+
413
418
/**
414
419
* @external InviteTargetType
415
420
* @see {@link https://discord-api-types.dev/api/discord-api-types-v10/enum/InviteTargetType }
Original file line number Diff line number Diff line change @@ -180,6 +180,7 @@ import {
180
180
APIPollAnswer ,
181
181
APISelectMenuDefaultValue ,
182
182
SelectMenuDefaultValueType ,
183
+ InviteType ,
183
184
} from 'discord-api-types/v10' ;
184
185
import { ChildProcess } from 'node:child_process' ;
185
186
import { EventEmitter } from 'node:events' ;
@@ -1990,6 +1991,7 @@ export class Invite extends Base {
1990
1991
public targetUser : User | null ;
1991
1992
public targetType : InviteTargetType | null ;
1992
1993
public temporary : boolean | null ;
1994
+ public type : InviteType ;
1993
1995
public get url ( ) : string ;
1994
1996
public uses : number | null ;
1995
1997
public delete ( reason ?: string ) : Promise < Invite > ;
You can’t perform that action at this time.
0 commit comments