From 56a789ef87d230f5a80bf04ce740905af24e232e Mon Sep 17 00:00:00 2001 From: VampireChicken12 Date: Mon, 18 Sep 2023 21:02:48 -0400 Subject: [PATCH] Fix typo + counter formatting --- src/commands/settings.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/settings.ts b/src/commands/settings.ts index 8eeeb1964..0cddd7822 100644 --- a/src/commands/settings.ts +++ b/src/commands/settings.ts @@ -82,22 +82,22 @@ const seeSettings: Command = { for (const [counter, content] of counters) { const discordChannel = guild.channels.get(counter); - const { name, type } = discordChannel; + const { type, id } = discordChannel; const icon = ["\\#️⃣", " ", "\\🔊", " ", "\\📚", "\\📢", " "]; countersSection += `${ botHasPermsToEdit(discordChannel) ? " " : " \\⚠️ " - }- ${icon[type]} ${name} \`${counter}\`: \`\`\`${content}\`\`\`\n`; + }\\- ${icon[type]} <#${id}> \`${id}\`: \`\`\`${content}\`\`\`\n`; } } const latestLogs = await guildService.getLatestLogs(100); if (latestLogs.length) { - const formatedLatestLogs = latestLogs + const formattedLatestLogs = latestLogs .map(({ timestamp, text }) => `[${timestamp.toISOString()}] ${text}\n`) .join(""); - logsSection = safeDiscordString(formatedLatestLogs).map( + logsSection = safeDiscordString(formattedLatestLogs).map( (portion) => "```" + portion + "```" ); }