From 1dfee5af7a190182bdf72253a3680a65869d1443 Mon Sep 17 00:00:00 2001 From: kevinlul <6320810+kevinlul@users.noreply.github.com> Date: Sun, 22 Sep 2024 14:24:00 -0400 Subject: [PATCH] Log interaction context and authorizing integration owner https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-authorizing-integration-owners-object #432 --- src/utils.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils.ts b/src/utils.ts index 24ec189c..dcd68757 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -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 }); }