File tree Expand file tree Collapse file tree 8 files changed +44
-4
lines changed Expand file tree Collapse file tree 8 files changed +44
-4
lines changed Original file line number Diff line number Diff line change @@ -952,6 +952,7 @@ export const Routes = {
952
952
953
953
/**
954
954
* Route for:
955
+ * - GET `/applications/{application.id}/entitlements/{entitlement.id}`
955
956
* - DELETE `/applications/{application.id}/entitlements/{entitlement.id}`
956
957
*/
957
958
entitlement ( applicationId : Snowflake , entitlementId : Snowflake ) {
Original file line number Diff line number Diff line change @@ -33,16 +33,25 @@ export interface RESTGetAPIEntitlementsQuery {
33
33
*/
34
34
guild_id ?: Snowflake | undefined ;
35
35
/**
36
- * Whether ended entitlements should be omitted
36
+ * Whether ended entitlements should be omitted. Defaults to `false`, ended entitlements are included by default
37
37
*/
38
38
exclude_ended ?: boolean | undefined ;
39
+ /**
40
+ * Whether deleted entitlements should be omitted. Defaults to `true`, deleted entitlements are not included by default
41
+ */
42
+ exclude_deleted ?: boolean | undefined ;
39
43
}
40
44
41
45
/**
42
46
* https://discord.com/developers/docs/resources/entitlement#list-entitlements
43
47
*/
44
48
export type RESTGetAPIEntitlementsResult = APIEntitlement [ ] ;
45
49
50
+ /**
51
+ * https://discord.com/developers/docs/resources/entitlement#get-entitlement
52
+ */
53
+ export type RESTGetAPIEntitlementResult = APIEntitlement ;
54
+
46
55
/**
47
56
* https://discord.com/developers/docs/resources/entitlement#create-test-entitlement
48
57
*/
Original file line number Diff line number Diff line change @@ -961,6 +961,7 @@ export const Routes = {
961
961
962
962
/**
963
963
* Route for:
964
+ * - GET `/applications/{application.id}/entitlements/{entitlement.id}`
964
965
* - DELETE `/applications/{application.id}/entitlements/{entitlement.id}`
965
966
*/
966
967
entitlement ( applicationId : Snowflake , entitlementId : Snowflake ) {
Original file line number Diff line number Diff line change @@ -33,16 +33,25 @@ export interface RESTGetAPIEntitlementsQuery {
33
33
*/
34
34
guild_id ?: Snowflake | undefined ;
35
35
/**
36
- * Whether ended entitlements should be omitted
36
+ * Whether ended entitlements should be omitted. Defaults to `false`, ended entitlements are included by default
37
37
*/
38
38
exclude_ended ?: boolean | undefined ;
39
+ /**
40
+ * Whether deleted entitlements should be omitted. Defaults to `true`, deleted entitlements are not included by default
41
+ */
42
+ exclude_deleted ?: boolean | undefined ;
39
43
}
40
44
41
45
/**
42
46
* https://discord.com/developers/docs/resources/entitlement#list-entitlements
43
47
*/
44
48
export type RESTGetAPIEntitlementsResult = APIEntitlement [ ] ;
45
49
50
+ /**
51
+ * https://discord.com/developers/docs/resources/entitlement#get-entitlement
52
+ */
53
+ export type RESTGetAPIEntitlementResult = APIEntitlement ;
54
+
46
55
/**
47
56
* https://discord.com/developers/docs/resources/entitlement#create-test-entitlement
48
57
*/
Original file line number Diff line number Diff line change @@ -952,6 +952,7 @@ export const Routes = {
952
952
953
953
/**
954
954
* Route for:
955
+ * - GET `/applications/{application.id}/entitlements/{entitlement.id}`
955
956
* - DELETE `/applications/{application.id}/entitlements/{entitlement.id}`
956
957
*/
957
958
entitlement ( applicationId : Snowflake , entitlementId : Snowflake ) {
Original file line number Diff line number Diff line change @@ -33,16 +33,25 @@ export interface RESTGetAPIEntitlementsQuery {
33
33
*/
34
34
guild_id ?: Snowflake | undefined ;
35
35
/**
36
- * Whether ended entitlements should be omitted
36
+ * Whether ended entitlements should be omitted. Defaults to `false`, ended entitlements are included by default
37
37
*/
38
38
exclude_ended ?: boolean | undefined ;
39
+ /**
40
+ * Whether deleted entitlements should be omitted. Defaults to `true`, deleted entitlements are not included by default
41
+ */
42
+ exclude_deleted ?: boolean | undefined ;
39
43
}
40
44
41
45
/**
42
46
* https://discord.com/developers/docs/resources/entitlement#list-entitlements
43
47
*/
44
48
export type RESTGetAPIEntitlementsResult = APIEntitlement [ ] ;
45
49
50
+ /**
51
+ * https://discord.com/developers/docs/resources/entitlement#get-entitlement
52
+ */
53
+ export type RESTGetAPIEntitlementResult = APIEntitlement ;
54
+
46
55
/**
47
56
* https://discord.com/developers/docs/resources/entitlement#create-test-entitlement
48
57
*/
Original file line number Diff line number Diff line change @@ -961,6 +961,7 @@ export const Routes = {
961
961
962
962
/**
963
963
* Route for:
964
+ * - GET `/applications/{application.id}/entitlements/{entitlement.id}`
964
965
* - DELETE `/applications/{application.id}/entitlements/{entitlement.id}`
965
966
*/
966
967
entitlement ( applicationId : Snowflake , entitlementId : Snowflake ) {
Original file line number Diff line number Diff line change @@ -33,16 +33,25 @@ export interface RESTGetAPIEntitlementsQuery {
33
33
*/
34
34
guild_id ?: Snowflake | undefined ;
35
35
/**
36
- * Whether ended entitlements should be omitted
36
+ * Whether ended entitlements should be omitted. Defaults to `false`, ended entitlements are included by default
37
37
*/
38
38
exclude_ended ?: boolean | undefined ;
39
+ /**
40
+ * Whether deleted entitlements should be omitted. Defaults to `true`, deleted entitlements are not included by default
41
+ */
42
+ exclude_deleted ?: boolean | undefined ;
39
43
}
40
44
41
45
/**
42
46
* https://discord.com/developers/docs/resources/entitlement#list-entitlements
43
47
*/
44
48
export type RESTGetAPIEntitlementsResult = APIEntitlement [ ] ;
45
49
50
+ /**
51
+ * https://discord.com/developers/docs/resources/entitlement#get-entitlement
52
+ */
53
+ export type RESTGetAPIEntitlementResult = APIEntitlement ;
54
+
46
55
/**
47
56
* https://discord.com/developers/docs/resources/entitlement#create-test-entitlement
48
57
*/
You can’t perform that action at this time.
0 commit comments