File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export default class DataHelperCommand {
4040 } )
4141 . setTitle ( `Migration from ${ version } instructions` )
4242 interaction . followUp ( {
43- embeds : [ embed ]
43+ embeds : [ embed . toJSON ( ) ]
4444 } )
4545 }
4646}
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export default class HelpCommand {
3030 components . push ( this . getSelectDropdown ( 'categories' , localize ) . toJSON ( ) )
3131
3232 interaction . followUp ( {
33- embeds : [ embed ] ,
33+ embeds : [ embed . toJSON ( ) ] ,
3434 components,
3535 } )
3636 }
@@ -46,7 +46,7 @@ export default class HelpCommand {
4646 components . push ( this . getSelectDropdown ( category , localize ) . toJSON ( ) )
4747
4848 interaction . update ( {
49- embeds : [ embed ] ,
49+ embeds : [ embed . toJSON ( ) ] ,
5050 components,
5151 } )
5252 }
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ export default class InfoCommand {
132132
133133 // finally send the embed
134134 interaction . followUp ( {
135- embeds : [ embed ] ,
135+ embeds : [ embed . toJSON ( ) ] ,
136136 components : [ { type : ComponentType . Button , ...row } ] ,
137137 } )
138138 }
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export default class InviteCommand {
2727 . setFooter ( { text : 'LNReader' } )
2828
2929 interaction . followUp ( {
30- embeds : [ embed ] ,
30+ embeds : [ embed . toJSON ( ) ] ,
3131 } )
3232 }
3333
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export default class PluginsCommand {
5353 . setFooter ( { text : `LNReader Plugins v${ pluginRepoVersion } ` } )
5454 . setTitle ( `Page: ${ page } /${ totalPages } - Lang: ${ language || 'All' } ${ keyword ? ' - ' + keyword : '' } ` )
5555 interaction . followUp ( {
56- embeds : [ embed ]
56+ embeds : [ embed . toJSON ( ) ]
5757 } ) ;
5858 }
5959
@@ -91,7 +91,7 @@ export default class PluginsCommand {
9191 . setTitle ( `${ repo === 'App' ? 'App' : 'Plugins' } issue / request` )
9292 . setDescription ( `To report an issue, click [here](${ link } ) and follow the instructions.` )
9393 interaction . followUp ( {
94- embeds : [ embed ]
94+ embeds : [ embed . toJSON ( ) ]
9595 } ) ;
9696 }
9797}
You can’t perform that action at this time.
0 commit comments