Fix not having a link set in the config crashing the bot

This commit is contained in:
Ethan Lane 2023-01-28 14:53:23 +00:00
parent 4bc6280a1c
commit 27afb3dd22
4 changed files with 5 additions and 5 deletions

View file

@ -13,4 +13,4 @@ BOT_OWNERID=147392775707426816
BOT_CLIENTID=682942374040961060
ABOUT_FUNDING=https://ko-fi.com/vylpes
ABOUT_REPO=https://github.com/vylpes/vylbot-app
ABOUT_REPO=https://gitea.vylpes.xyz/RabbitLabs/vylbot-app

View file

@ -13,4 +13,4 @@ BOT_OWNERID=147392775707426816
BOT_CLIENTID=680083120896081954
ABOUT_FUNDING=https://ko-fi.com/vylpes
ABOUT_REPO=https://github.com/vylpes/vylbot-app
ABOUT_REPO=https://gitea.vylpes.xyz/RabbitLabs/vylbot-app

View file

@ -13,4 +13,4 @@ BOT_OWNERID=147392775707426816
BOT_CLIENTID=1016767908740857949
ABOUT_FUNDING=https://ko-fi.com/vylpes
ABOUT_REPO=https://github.com/vylpes/vylbot-app
ABOUT_REPO=https://gitea.vylpes.xyz/RabbitLabs/vylbot-app

View file

@ -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 ] : [] });
}
}