feat: enhance user file upload overview with percentage of total capacity used

This commit is contained in:
grngxd 2025-08-01 08:33:01 +01:00
parent fcaf8fee75
commit 0fda50dfb5
2 changed files with 2 additions and 15 deletions

View file

@ -45,7 +45,7 @@ export const execute = async (interaction: ChatInputCommandInteraction) => {
.setDescription("Here's your overview:")
.addFields(
{ name: "Uploads", value: `${files.length} files`, inline: true },
{ name: "Uploaded", value: `${formatSize(totalSize)} / 15 GB`, inline: true },
{ name: "Uploaded", value: `${formatSize(totalSize)} / 15 GB (${(totalSize / (15 * 1024 * 1024 * 1024)).toFixed(2)}%)`, inline: true },
{ name: "Plan", value: `Free`, inline: true }
)