Fix not having a link set in the config crashing the bot
This commit is contained in:
parent
4bc6280a1c
commit
27afb3dd22
4 changed files with 5 additions and 5 deletions
|
@ -31,7 +31,7 @@ export default class About extends Command {
|
|||
value: process.env.BOT_AUTHOR!,
|
||||
inline: true,
|
||||
},
|
||||
])
|
||||
]);
|
||||
|
||||
const row = new ActionRowBuilder<ButtonBuilder>();
|
||||
|
||||
|
@ -51,6 +51,6 @@ export default class About extends Command {
|
|||
.setStyle(ButtonStyle.Link));
|
||||
}
|
||||
|
||||
await interaction.reply({ embeds: [ embed ]});
|
||||
await interaction.reply({ embeds: [ embed ], components: row.components.length > 0 ? [ row ] : [] });
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue