Skip to content

Commit af55c8a

Browse files
committed
fix: build
1 parent d58629c commit af55c8a

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/commands/General/dataHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

src/commands/General/help.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

src/commands/General/info.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

src/commands/General/invite.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/commands/General/plugins.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)