Added better user configuration and removed extra logging

This commit is contained in:
root committed 2025-03-25 11:15:14 -07:00
1 parent 7320aa4529
commit 541af2045d
5 files changed
+44 -13

No files matched your search

+10 -10
View File
@@ -180,19 +180,19 @@ router.patch(
where: { id: channel_id },
}),
});
console.log(webhook.channel_id);
await webhook.save();
await emitEvent({
event: "WEBHOOKS_UPDATE",
channel_id,
data: {
await Promise.all([
webhook.save(),
emitEvent({
event: "WEBHOOKS_UPDATE",
channel_id,
guild_id: webhook.guild_id,
},
} as WebhooksUpdateEvent);
data: {
channel_id,
guild_id: webhook.guild_id,
},
} as WebhooksUpdateEvent),
]);
console.log(webhook.channel_id);
res.json(webhook);
},
);