Skip to content

Commit 264c1c3

Browse files
committed
fix: correct channel ID formatting in claim log message
1 parent 57d22fe commit 264c1c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/listeners/Webhooks/claimLog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class UserListener extends Listener {
1717
const webhook = (await channel.fetchWebhooks()).first();
1818
if (!webhook || !webhook?.token) return;
1919

20-
const content = `## \`${data.userTag}\` ${data.success ? 'claimed' : 'tried to claim'} code \`${data.code}\`\n> Message: ${data.message}\n\`\`\`json\n${JSON.stringify(data.apiResponse, null, 2)}\n\`\`\`\n - PID: \`${data.memberCode}\`\n - Result: ${data.success ? `Successful ${Emojis.Confirm}` : `Failed ${Emojis.Cross}`}\n - Guild: \`${data.guild}\` (\`${data.guildId}\`)\n - Channel: \`#${data.channel}\` [<#${data.channelId}] (\`${data.channelId}\`)\n - Time Taken: ⏱ ${data.elapsedTime}`;
20+
const content = `## \`${data.userTag}\` ${data.success ? 'claimed' : 'tried to claim'} code \`${data.code}\`\n> Message: ${data.message}\n\`\`\`json\n${JSON.stringify(data.apiResponse, null, 2)}\n\`\`\`\n - PID: \`${data.memberCode}\`\n - Result: ${data.success ? `Successful ${Emojis.Confirm}` : `Failed ${Emojis.Cross}`}\n - Guild: \`${data.guild}\` (\`${data.guildId}\`)\n - Channel: \`#${data.channel}\` [<#${data.channelId}>] (\`${data.channelId}\`)\n - Time Taken: ⏱ ${data.elapsedTime}`;
2121

2222
return webhook.send({
2323
username: data.userTag,

0 commit comments

Comments
 (0)