feat: enhance user file upload overview with percentage of total capacity used
This commit is contained in:
parent
fcaf8fee75
commit
0fda50dfb5
2 changed files with 2 additions and 15 deletions
|
@ -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 }
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue