Skip to content

Commit 0e04eb3

Browse files
authoredDec 9, 2023
fix(normalizeInputs): bring back the defaulting I removed (#701)
1 parent 422a338 commit 0e04eb3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/lib/utils/application-commands/normalizeInputs.ts

+2
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,14 @@ function isBuilder(
3333
function addDefaultsToChatInputJSON(data: RESTPostAPIChatInputApplicationCommandsJSONBody): RESTPostAPIChatInputApplicationCommandsJSONBody {
3434
data.dm_permission ??= true;
3535
data.type ??= ApplicationCommandType.ChatInput;
36+
data.default_member_permissions ??= null;
3637

3738
return data;
3839
}
3940

4041
function addDefaultsToContextMenuJSON(data: RESTPostAPIContextMenuApplicationCommandsJSONBody): RESTPostAPIContextMenuApplicationCommandsJSONBody {
4142
data.dm_permission ??= true;
43+
data.default_member_permissions ??= null;
4244

4345
return data;
4446
}

0 commit comments

Comments
 (0)
Please sign in to comment.