File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ export class ClientBase extends EventEmitter {
271
271
const obj = {
272
272
id : tweet . id ,
273
273
name :
274
- tweet . name ?? tweet ?. user_results ?. result ?. legacy . name ,
274
+ tweet . name ?? tweet . core ?. user_results ?. result ?. legacy . name ,
275
275
username :
276
276
tweet . username ??
277
277
tweet . core ?. user_results ?. result ?. legacy . screen_name ,
Original file line number Diff line number Diff line change @@ -1509,12 +1509,12 @@ Text: ${attachment.text}
1509
1509
this . character . topics
1510
1510
. sort ( ( ) => 0.5 - Math . random ( ) )
1511
1511
. slice ( 0 , 5 )
1512
- . map ( ( topic , index ) => {
1513
- if ( index === this . character . topics . length - 2 ) {
1512
+ . map ( ( topic , index , array ) => {
1513
+ if ( index === array . length - 2 ) {
1514
1514
return topic + " and " ;
1515
1515
}
1516
1516
// if last topic, don't add a comma
1517
- if ( index === this . character . topics . length - 1 ) {
1517
+ if ( index === array . length - 1 ) {
1518
1518
return topic ;
1519
1519
}
1520
1520
return topic + ", " ;
You can’t perform that action at this time.
0 commit comments