Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Commit 78e4732

Browse files
committed
fix(leaderboard): make it less ugly
1 parent 16f8974 commit 78e4732

File tree

22 files changed

+47
-57
lines changed

22 files changed

+47
-57
lines changed

src/commands/Information/about.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export default class About extends BaseCommand {
101101

102102
const usernames = await this.getUsernames(interaction.client);
103103
const creditsDivider = `${getEmoji('blueLine', interaction.client).repeat(9)} **CREDITS** ${getEmoji('blueLine', interaction.client).repeat(9)}`;
104-
const dotBlue = getEmoji('dotBlue', interaction.client);
104+
const dotBlue = getEmoji('dot', interaction.client);
105105

106106
const creditsEmbed = new InfoEmbed()
107107
.setDescription(

src/commands/Information/rank.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export default class RankCommand extends BaseCommand {
160160

161161
// Level
162162
ctx.font = RankCommand.FONTS.LEVEL;
163-
ctx.fillStyle = Constants.Colors.interchatBlue;
163+
ctx.fillStyle = Constants.Colors.interchat;
164164
ctx.fillText(`Level ${stats.level}`, textX, avatarY + 80);
165165

166166
// Rank

src/commands/Information/rules.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default class Rules extends BaseCommand {
3636
const rulesEmbed = new EmbedBuilder()
3737
.setDescription(t('rules.rules', locale, { rules_emoji: ctx.getEmoji('rules_icon') }))
3838
.setImage(Constants.Links.RulesBanner)
39-
.setColor(Constants.Colors.interchatBlue);
39+
.setColor(Constants.Colors.interchat);
4040

4141
await ctx.reply({ embeds: [rulesEmbed] });
4242
}

src/commands/Information/stats.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default class Stats extends BaseCommand {
6464
const memoryUsed = memoryUsedRaw.reduce((p, n) => p + (n ?? 0), 0);
6565

6666
const embed = new EmbedBuilder()
67-
.setColor(Constants.Colors.interchatBlue)
67+
.setColor(Constants.Colors.interchat)
6868
.setDescription(`### ${ctx.getEmoji('fire_icon')} InterChat Statistics`)
6969
.setFooter({
7070
text: `InterChat v${ctx.client.version}${Constants.isDevBuild ? '+dev' : ''}`,

src/commands/Main/connection/list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export default class ConnectionListSubcommand extends BaseCommand {
110110

111111
private getEmbed(fields: EmbedField[], description: string) {
112112
return new EmbedBuilder()
113-
.setColor(Constants.Colors.interchatBlue)
113+
.setColor(Constants.Colors.interchat)
114114
.setDescription(description)
115115
.addFields(fields);
116116
}

src/commands/Main/hub/edit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,11 +512,11 @@ export default class HubEditSubcommand extends BaseCommand {
512512
where: { hubId: hub.id, status: 'ACTIVE' },
513513
});
514514

515-
const dotBlueEmoji = getEmoji('dotBlue', client);
515+
const dotBlueEmoji = getEmoji('dot', client);
516516

517517
return new EmbedBuilder()
518518
.setTitle(hub.name)
519-
.setColor(Constants.Colors.interchatBlue)
519+
.setColor(Constants.Colors.interchat)
520520
.setDescription(
521521
stripIndents`
522522
${hub.description}

src/commands/Main/hub/servers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export default class HubServersSubcommand extends BaseCommand {
7575
.setTitle(
7676
`${server?.name ?? 'Unknown Server'} \`(${connection.data.serverId})\``,
7777
)
78-
.setColor(Constants.Colors.interchatBlue)
78+
.setColor(Constants.Colors.interchat)
7979
.setDescription(
8080
t('hub.servers.connectionInfo', locale, {
8181
serverId: connection.data.serverId,
@@ -223,7 +223,7 @@ export default class HubServersSubcommand extends BaseCommand {
223223
total: `${totalConnections}`,
224224
}),
225225
)
226-
.setColor(Constants.Colors.interchatBlue)
226+
.setColor(Constants.Colors.interchat)
227227
.setFields(fields),
228228
],
229229
});

src/commands/Main/messageInfo.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export default class MessageInfo extends BaseCommand {
113113
{ name: 'Sent At', value: time(new Date(originalMsg.timestamp), 't'), inline: true },
114114
])
115115
.setThumbnail(author.displayAvatarURL())
116-
.setColor(Constants.Colors.interchatBlue);
116+
.setColor(Constants.Colors.interchat);
117117

118118
const connection = (await hub.connections.fetch())?.find(
119119
(c) => c.data.connected && c.data.serverId === originalMsg.guildId,
@@ -259,7 +259,7 @@ export default class MessageInfo extends BaseCommand {
259259
])
260260
.setThumbnail(iconUrl)
261261
.setImage(bannerUrL)
262-
.setColor(Constants.Colors.interchatBlue);
262+
.setColor(Constants.Colors.interchat);
263263

264264
// disable the server info button
265265
greyOutButton(components[0], 1);

src/commands/Support/support/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default class SupportServer extends BaseCommand {
3232
const embed = new EmbedBuilder()
3333
.setTitle('InterChat Central')
3434
.setDescription(`[Click Here](${Constants.Links.SupportInvite}) to join the support server.`)
35-
.setColor(Constants.Colors.interchatBlue)
35+
.setColor(Constants.Colors.interchat)
3636
.setTimestamp();
3737
await ctx.reply({ embeds: [embed] });
3838
}

src/events/guildCreate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default class Ready extends BaseEventListener<'guildCreate'> {
5050
🌟 If you liked InterChat, consider [donating](${Constants.Links.Donate}) to support the project!
5151
`,
5252
)
53-
.setColor(Constants.Colors.interchatBlue)
53+
.setColor(Constants.Colors.interchat)
5454
.setFooter({
5555
text: `Sent for server: ${guild.name}`,
5656
iconURL: guild.iconURL() ?? undefined,

0 commit comments

Comments
 (0)