summaryrefslogtreecommitdiff
path: root/packages/gateway/src/commands
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-10-10 11:48:55 -0700
committerFuwn <[email protected]>2025-10-10 11:48:55 -0700
commiteeb6bee6f31fbfcc53075da35a318e0ae18e11cc (patch)
tree5ae92d84255e3144e606c333dea0d179e5eb8361 /packages/gateway/src/commands
parentstyle(gateway): Stylise (diff)
downloadumabotdiscord-eeb6bee6f31fbfcc53075da35a318e0ae18e11cc.tar.xz
umabotdiscord-eeb6bee6f31fbfcc53075da35a318e0ae18e11cc.zip
feat(gateway): Update logging of persona messages and reactions
Diffstat (limited to 'packages/gateway/src/commands')
-rw-r--r--packages/gateway/src/commands/utilities.ts16
1 files changed, 15 insertions, 1 deletions
diff --git a/packages/gateway/src/commands/utilities.ts b/packages/gateway/src/commands/utilities.ts
index b4d32ba..d6ec548 100644
--- a/packages/gateway/src/commands/utilities.ts
+++ b/packages/gateway/src/commands/utilities.ts
@@ -481,6 +481,7 @@ export const sendPersonaLog = async (
personaName: string,
messageLink?: string,
isPrimer: boolean = false,
+ sentMessageLink?: string,
): Promise<void> => {
try {
const logChannelId = "1426269876569509968";
@@ -519,12 +520,25 @@ export const sendPersonaLog = async (
)
.setTimestamp();
- if (messageLink && !isPrimer)
+ if (isPrimer && sentMessageLink) {
+ embed.addFields({
+ name: "Sent Message",
+ value: `[Click to view](${sentMessageLink})`,
+ inline: false,
+ });
+ } else if (type === "reaction" && messageLink) {
embed.addFields({
name: "Trigger Message",
value: `[Click to view](${messageLink})`,
inline: false,
});
+ } else if (sentMessageLink) {
+ embed.addFields({
+ name: "Sent Message",
+ value: `[Click to view](${sentMessageLink})`,
+ inline: false,
+ });
+ }
await (channel as any).send({ embeds: [embed] });
} catch (error) {