File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -181,19 +181,19 @@ export class RepModule extends Module {
181
181
rg . amount
182
182
} ${ emoji } ** on [message](${ messageLink } ) (<@${
183
183
rg . initialGiver
184
- } >${ rg . amount > 1 ? ' et al.' : '' } ) at <t:${
185
- ( + new Date ( rg . date ) / 1000 ) | 0
186
- } >`;
184
+ } >${ rg . amount > 1 ? ' et al.' : '' } ) at <t:${ Math . floor (
185
+ + new Date ( rg . date ) / 1000 ,
186
+ ) } >`;
187
187
} ) ;
188
188
if ( ! records . length ) records . push ( '[no reputation history]' ) ;
189
- const recordsPerPage = 30 ;
189
+ const recordsPerPage = 10 ;
190
190
const pages = records
191
- . reduce ( ( acc , cur , index ) => {
191
+ . reduce < string [ ] [ ] > ( ( acc , cur , index ) => {
192
192
const curChunk = Math . floor ( index / recordsPerPage ) ;
193
193
acc [ curChunk ] ??= [ ] ;
194
194
acc [ curChunk ] . push ( cur ) ;
195
195
return acc ;
196
- } , [ ] as string [ ] [ ] )
196
+ } , [ ] )
197
197
. map ( page => page . join ( '\n' ) ) ;
198
198
const embed = new MessageEmbed ( )
199
199
. setColor ( TS_BLUE )
You can’t perform that action at this time.
0 commit comments