From 2122de32d70aa082207459e711656ce0c0708696 Mon Sep 17 00:00:00 2001 From: Schlauer-Hax Date: Thu, 1 Feb 2024 07:13:43 +0100 Subject: [PATCH] feat: hide embeds --- db.ts | 2 +- interactions.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db.ts b/db.ts index a7a7ba8..23a0719 100644 --- a/db.ts +++ b/db.ts @@ -108,7 +108,7 @@ export async function getServerURLs(discordId: string) { const servers = await db.collection("@bbn/hosting/servers").find({ user }).toArray(); - return servers.map(server => server.identifier ? `https://panel.bbn.one/server/${server.identifier}` : `https://bbn.one/hosting?path=servers/${server._id}/`).join("\n"); + return servers.map(server => server.identifier ? `https://panel.bbn.one/server/${server.identifier}` : `https://bbn.one/hosting?path=servers/${server._id}/`); } export async function lastLogin(discordId: string) { diff --git a/interactions.ts b/interactions.ts index e756d82..8f4d205 100644 --- a/interactions.ts +++ b/interactions.ts @@ -461,7 +461,7 @@ export async function handleInteraction(interaction: Interaction) { interaction.reply("This user has no servers."); return; } - interaction.reply(`Servers of ${member.user.username}:\n${servers}`); + interaction.reply(`Servers of ${member.user.username}:\n${servers.map(server => `<${server}>`).join("\n")}`); } }