Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

Commit

Permalink
commas
Browse files Browse the repository at this point in the history
  • Loading branch information
advaith1 committed Jan 2, 2021
1 parent 8dacb77 commit e80d2e5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions assets/Views/templates/servers/view.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
include("../../partials/tag.ejs", {
contentColour: "is-info",
title: __("common.members"),
content: server.counts.members,
content: server.counts.members.toLocaleString(locale),
type: "multi",
id: "members"
});
Expand All @@ -198,7 +198,7 @@
include("../../partials/tag.ejs", {
contentColour: "is-success",
title: __("common.online"),
content: server.counts.online,
content: server.counts.online.toLocaleString(locale),
type: "multi",
id: "online"
});
Expand Down Expand Up @@ -380,8 +380,8 @@
const invite = await (await fetch('https://discord.com/api/v8/invites/<%= server.inviteCode %>?with_counts=true')).json()
if (!invite.channel) return
document.querySelector('#serverName').innerText = invite.guild.name
document.querySelector('#members').innerText = invite.approximate_member_count
document.querySelector('#online').innerText = invite.approximate_presence_count
document.querySelector('#members').innerText = invite.approximate_member_count.toLocaleString("<%= locale %>")
document.querySelector('#online').innerText = invite.approximate_presence_count.toLocaleString("<%= locale %>")
})()
</script>
</div>
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@types/ioredis": "^4.17.10",
"@types/mongodb": "^3.6.3",
"@types/morgan": "^1.9.2",
"@types/node": "^14.14.17",
"@types/node": "^14.14.19",
"@types/passport": "^1.0.5",
"@types/passport-discord": "^0.1.3",
"@types/sanitize-html": "^1.27.0",
Expand Down

0 comments on commit e80d2e5

Please sign in to comment.