This repository was archived by the owner on Oct 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ function getRankDisplay(rank: number, dotEmoji: string): string {
7575 if ( rank === 2 ) return '🥈' ;
7676 if ( rank === 3 ) return '🥉' ;
7777 // use purple emoji for rest
78- return `${ dotEmoji } ${ rank } ` ;
78+ return `${ dotEmoji } ` ;
7979}
8080
8181/**
@@ -131,17 +131,16 @@ export async function formatServerLeaderboard(
131131 const guild = ( await client . fetchGuild ( serverId ) . catch ( ( ) => null ) ) ?? { name : 'Unknown' } ;
132132
133133 // Limit the server name length for table formatting.
134- const serverName = guild . name . length > 20 ? `${ guild . name . slice ( 0 , 17 ) } ...` : guild . name ;
135134 const serverData = inviteLinks . find ( ( link ) => link . id === serverId && Boolean ( link . inviteCode ) ) ;
136135 const inviteCode =
137136 serverData ?. inviteCode ?? ( 'vanityURLCode' in guild ? guild . vanityURLCode : null ) ;
138- const invite = inviteCode ? `([join](https://discord.gg/${ inviteCode } ))` : '' ;
137+ const invite = inviteCode ? `([join server ](https://discord.gg/${ inviteCode } ))` : '' ;
139138
140139 // Use the helper function to get the rank display value.
141140 const rankDisplay = getRankDisplay ( rank , getEmoji ( 'dot' , client ) ) ;
142141
143142 // Pad each column for alignment.
144- output += `${ rankDisplay } \` ${ score . toString ( ) } \` - ${ serverName } ${ invite } \n` ;
143+ output += `${ rankDisplay } \` ${ score . toString ( ) } msgs \` - ${ guild . name } ${ invite } \n` ;
145144 }
146145
147146 return output ;
You can’t perform that action at this time.
0 commit comments