fix: simplify interaction logging by removing detailed user information
This commit is contained in:
parent
de09a84daa
commit
fee40b10a2
10
src/index.ts
10
src/index.ts
@ -132,15 +132,7 @@ app.post("/interactions", async (c) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const interaction = JSON.parse(raw);
|
const interaction = JSON.parse(raw);
|
||||||
logger.info(
|
logger.info("Received interaction");
|
||||||
{
|
|
||||||
user: interaction.user.id,
|
|
||||||
name: interaction.name,
|
|
||||||
guideId: interaction.channel.guild_id,
|
|
||||||
channelId: interaction.channel_id,
|
|
||||||
},
|
|
||||||
"Received interaction",
|
|
||||||
);
|
|
||||||
const { type } = interaction;
|
const { type } = interaction;
|
||||||
|
|
||||||
if (type === 1) {
|
if (type === 1) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user