Skip to content

Commit

Permalink
fix: parse BitField to string (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
r-priyam committed Jul 21, 2022
1 parent 72b48bb commit 9a74f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/utils/application-commands/normalizeInputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export function convertApplicationCommandToApiData(command: ApplicationCommand):
} as RESTPostAPIApplicationCommandsJSONBody;

if (command.defaultMemberPermissions) {
returnData.default_member_permissions = String(command.defaultMemberPermissions);
returnData.default_member_permissions = command.defaultMemberPermissions.bitfield.toString();
}

if (command.type === 'CHAT_INPUT') {
Expand Down

0 comments on commit 9a74f02

Please sign in to comment.