@@ -3,7 +3,7 @@ import config from "../../data/config.json"
33import client from "../../main"
44import Command from "../../utils/Command"
55import { BotEmoji , Character , CharacterFull , CommandSource , SendMessage , Skill , TalentTable , TalentValue } from "../../utils/Types"
6- import { addArg , Bookmarkable , Colors , createTable , findFuzzyBestCandidates , getLinkToGuide , PAD_END , PAD_START , paginator , sendMessage , simplePaginator , urlify } from "../../utils/Utils"
6+ import { addArg , Bookmarkable , Colors , createTable , findFuzzyBestCandidates , getLink , getLinkToGuide , PAD_END , PAD_START , paginator , sendMessage , simplePaginator , urlify } from "../../utils/Utils"
77
88
99const elementTypes = client . data . getCharacters ( )
@@ -220,7 +220,7 @@ Note: this command supports fuzzy search.`,
220220 . setFooter ( `Page ${ currentPage } / ${ maxPages } ` )
221221
222222 if ( char . icon )
223- embed . setThumbnail ( ` ${ data . baseURL } ${ char . icon } ` )
223+ embed . setThumbnail ( getLink ( char . icon ) )
224224
225225 if ( relativePage == 0 ) {
226226 embed . setTitle ( `${ char . name } : Description` )
@@ -370,7 +370,7 @@ Note: this command supports fuzzy search.`,
370370 const { data } = client
371371 const embed = new MessageEmbed ( )
372372 . setColor ( Colors [ char . meta . element ] ?? "" )
373- . setThumbnail ( ` ${ data . baseURL } ${ char . icon } ` )
373+ . setThumbnail ( getLink ( char . icon ) )
374374 . setFooter ( `Page ${ currentPage } / ${ maxPages } ` )
375375
376376 if ( relativePage == 0 ) {
@@ -436,7 +436,7 @@ Note: this command supports fuzzy search.`,
436436 . setTitle ( `${ char . name } ` )
437437 . setURL ( `${ data . baseURL } characters/${ urlify ( char . name , false ) } #videos` )
438438 if ( char . icon )
439- embed . setThumbnail ( ` ${ data . baseURL } ${ char . icon } ` )
439+ embed . setThumbnail ( getLink ( char . icon ) )
440440
441441 const videos = char . media . videos ? ( `**Promotional Videos**
442442${ Object
@@ -464,7 +464,7 @@ ${ Object
464464 . setFooter ( `Page ${ currentPage } / ${ maxPages } ` )
465465
466466 if ( char . icon )
467- embed . setThumbnail ( ` ${ data . baseURL } ${ char . icon } ` )
467+ embed . setThumbnail ( getLink ( char . icon ) )
468468
469469 function isValueTable ( talent : TalentTable | TalentValue ) : talent is TalentTable {
470470 return ( talent as TalentTable ) . values != undefined
@@ -514,7 +514,7 @@ ${ Object
514514 else if ( hasLevels && talentMode == "LITTLE" )
515515 embed . setFooter ( `${ embed . footer ?. text } - Use '${ config . prefix } c ${ char . name } -high' (or -low) to display higher (or lower) levels` )
516516
517- if ( skill . video ) {
517+ if ( skill . video && talentMode == "LITTLE" ) {
518518 embed . setImage ( skill . video )
519519 . setThumbnail ( "" )
520520 }
@@ -553,7 +553,7 @@ ${ Object
553553 if ( skills . constellations && page ++ == relativePage ) {
554554 embed . setTitle ( `${ char . name } : Constellations` )
555555 . setURL ( `${ data . baseURL } characters/${ urlify ( char . name , false ) } #${ urlify ( skills . constellations [ 0 ] . name , false ) } ` )
556- . setThumbnail ( ` ${ client . data . baseURL } ${ skills . constellations [ 0 ] ?. icon } ` )
556+ . setThumbnail ( getLink ( skills . constellations [ 0 ] ?. icon ) )
557557 let c = 0
558558 for ( const constellation of skills . constellations )
559559 embed . addField ( `C${ ++ c } : ${ constellation . name } ` , constellation . desc )
0 commit comments