Skip to content

Commit

Permalink
Fix typo + counter formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
VampireChicken12 committed Sep 19, 2023
1 parent 4f7f35e commit 56a789e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/commands/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 + "```"
);
}
Expand Down

0 comments on commit 56a789e

Please sign in to comment.