Skip to content

Commit

Permalink
feat: hide embeds
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlauer-Hax committed Feb 1, 2024
1 parent 82ac89b commit 2122de3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion db.ts
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion interactions.ts
Expand Up @@ -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")}`);
}
}

Expand Down

0 comments on commit 2122de3

Please sign in to comment.