Skip to content

Commit 25985c0

Browse files
committed
Splitted buttons
1 parent dc79681 commit 25985c0

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

src/commands/info.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default new Command({
3030
const hours = Math.floor(uptime / 3600000) % 24;
3131
const minutes = Math.floor(uptime / 60000) % 60;
3232
const seconds = Math.floor(uptime / 1000) % 60;
33-
33+
3434
const uptimeString = `${days}d ${hours}h ${minutes}m ${seconds}s`;
3535

3636
const embed = new EmbedBuilder()
@@ -66,7 +66,7 @@ export default new Command({
6666
{
6767
name: "Statistics",
6868
value: `**Servers:** ${interaction.client.guilds.cache.size}\n` +
69-
`**Users:** ${interaction.client.users.cache.size}\n`,
69+
`**Users:** ${interaction.client.users.cache.size}\n`,
7070
inline: true,
7171
},
7272
{
@@ -90,9 +90,9 @@ export default new Command({
9090
inline: true,
9191
}
9292
)
93-
.setFooter({
94-
text: `Requested by ${interaction.user.tag}`,
95-
iconURL: interaction.user.displayAvatarURL()
93+
.setFooter({
94+
text: `Requested by ${interaction.user.tag}`,
95+
iconURL: interaction.user.displayAvatarURL()
9696
})
9797
.setTimestamp();
9898

@@ -116,28 +116,30 @@ export default new Command({
116116
.setLabel("Support Server")
117117
.setURL("https://boostify.breaddevv.cc/discord");
118118

119-
const repo = new ButtonBuilder()
119+
const repo = new ButtonBuilder()
120120
.setStyle(ButtonStyle.Link)
121121
.setLabel("Our Repository")
122122
.setURL("https://boostify.breaddevv.cc/github");
123123

124-
const topgg = new ButtonBuilder()
124+
const topgg = new ButtonBuilder()
125125
.setStyle(ButtonStyle.Link)
126126
.setLabel("Support Us On Top.gg")
127127
.setURL("https://top.gg/bot/1453802179789066442");
128128

129-
const actionBar = new ActionRowBuilder<ButtonBuilder>().setComponents(
129+
const actionRow1 = new ActionRowBuilder<ButtonBuilder>().setComponents(
130130
website,
131131
terms,
132132
privacy,
133133
support,
134-
repo,
134+
repo
135+
);
136+
const actionRow2 = new ActionRowBuilder<ButtonBuilder>().setComponents(
135137
topgg
136138
);
137139

138140
await interaction.editReply({
139141
embeds: [embed],
140-
components: [actionBar],
142+
components: [actionRow1, actionRow2],
141143
});
142144
},
143145
})

0 commit comments

Comments
 (0)