Skip to content

Commit 6a813be

Browse files
fix(RestPostAPIBaseApplicationJSONBody): make default_member_permissions optional (#460)
1 parent b3736d8 commit 6a813be

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

deno/rest/v10/interactions.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ type RESTPostAPIBaseApplicationCommandsJSONBody = AddUndefinedToPossiblyUndefine
3737
| 'guild_id'
3838
| 'name_localized'
3939
| 'description_localized'
40-
>
40+
| 'default_member_permissions'
41+
> &
42+
Partial<Pick<APIApplicationCommand, 'default_member_permissions'>>
4143
>;
4244

4345
/**

deno/rest/v9/interactions.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ type RESTPostAPIBaseApplicationCommandsJSONBody = AddUndefinedToPossiblyUndefine
3737
| 'guild_id'
3838
| 'name_localized'
3939
| 'description_localized'
40-
>
40+
| 'default_member_permissions'
41+
> &
42+
Partial<Pick<APIApplicationCommand, 'default_member_permissions'>>
4143
>;
4244

4345
/**

rest/v10/interactions.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ type RESTPostAPIBaseApplicationCommandsJSONBody = AddUndefinedToPossiblyUndefine
3737
| 'guild_id'
3838
| 'name_localized'
3939
| 'description_localized'
40-
>
40+
| 'default_member_permissions'
41+
> &
42+
Partial<Pick<APIApplicationCommand, 'default_member_permissions'>>
4143
>;
4244

4345
/**

rest/v9/interactions.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ type RESTPostAPIBaseApplicationCommandsJSONBody = AddUndefinedToPossiblyUndefine
3737
| 'guild_id'
3838
| 'name_localized'
3939
| 'description_localized'
40-
>
40+
| 'default_member_permissions'
41+
> &
42+
Partial<Pick<APIApplicationCommand, 'default_member_permissions'>>
4143
>;
4244

4345
/**

0 commit comments

Comments
 (0)