Skip to content

Commit

Permalink
Log interaction context and authorizing integration owner
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlul committed Sep 22, 2024
1 parent 129dee5 commit 1dfee5a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ export function serialiseInteraction(
author: interaction.user.id,
id: interaction.commandId,
command: interaction.commandName,
...("context" in interaction && {
context: interaction.context,
authorizingIntegrationOwners: interaction.authorizingIntegrationOwners
}),
...extras
});
}
Expand Down

0 comments on commit 1dfee5a

Please sign in to comment.