Skip to content

Commit

Permalink
Update packages/core/src/api/applicationCommands.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Almeida <[email protected]>
  • Loading branch information
suneettipirneni and almeidx committed Nov 26, 2022
1 parent bae97b5 commit f2840ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/api/applicationCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export class ApplicationCommandsAPI {
data: RESTPutAPIApplicationCommandPermissionsJSONBody,
) {
return this.rest.put(Routes.applicationCommandPermissions(applicationId, guildId, commandId), {
headers: { Authorization: `Bearer ${userToken.replaceAll(/\bbearer\b/gim, '').trimStart()}` },
headers: { Authorization: `Bearer ${userToken.replace('Bearer ', '')}` },
auth: false,
body: data,
}) as Promise<RESTPutAPIApplicationCommandPermissionsResult>;
Expand Down

0 comments on commit f2840ec

Please sign in to comment.