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 + "```" ); }