mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-11 07:33:14 -04:00
icon redesign
This commit is contained in:
parent
a4df6550cd
commit
6b4e0f3347
19 changed files with 162 additions and 76 deletions
|
@ -34,7 +34,7 @@ module.exports = {
|
|||
const g = context.guild
|
||||
// Guild Card
|
||||
let guildCard = createEmbed("default", context, {
|
||||
description: `${icon("house")} **${g.name}** ${highlight(`(${g.id})`)}\n\n${icon("calendar")} **Created at: **${timestamp(g.createdAt, "f")}`,
|
||||
description: `${icon("home")} **${g.name}** ${highlight(`(${g.id})`)}\n\n${icon("calendar")} **Created at: **${timestamp(g.createdAt, "f")}`,
|
||||
fields: []
|
||||
})
|
||||
|
||||
|
@ -91,11 +91,11 @@ module.exports = {
|
|||
let i = 0;
|
||||
let ic = Math.ceil(featureCards.length / 2);
|
||||
|
||||
if(ic == 1) featureCards[0].name = `${icon("activity")} Guild Features`
|
||||
if(ic == 1) featureCards[0].name = `${icon("list")} Guild Features`
|
||||
while(featureCards.length >= 1){
|
||||
i++;
|
||||
const sub = featureCards.splice(0, 2)
|
||||
sub[0].name = `${icon("activity")} Guild Features (${i}/${ic})`
|
||||
sub[0].name = `${icon("list")} Guild Features (${i}/${ic})`
|
||||
|
||||
pages.push(page(JSON.parse(JSON.stringify(Object.assign({ ...guildCard }, { fields: sub })))))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue