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

Merged
Vylpes merged 2 commits from feature/176-about-command into develop 2023-02-03 17:35:16 +00:00
4 changed files with 5 additions and 5 deletions
Showing only changes of commit 27afb3dd22 - Show all commits

View file

@ -13,4 +13,4 @@ BOT_OWNERID=147392775707426816
BOT_CLIENTID=682942374040961060 BOT_CLIENTID=682942374040961060
ABOUT_FUNDING=https://ko-fi.com/vylpes 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 BOT_CLIENTID=680083120896081954
ABOUT_FUNDING=https://ko-fi.com/vylpes 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 BOT_CLIENTID=1016767908740857949
ABOUT_FUNDING=https://ko-fi.com/vylpes 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!, value: process.env.BOT_AUTHOR!,
inline: true, inline: true,
}, },
]) ]);
const row = new ActionRowBuilder<ButtonBuilder>(); const row = new ActionRowBuilder<ButtonBuilder>();
@ -51,6 +51,6 @@ export default class About extends Command {
.setStyle(ButtonStyle.Link)); .setStyle(ButtonStyle.Link));
} }
await interaction.reply({ embeds: [ embed ]}); await interaction.reply({ embeds: [ embed ], components: row.components.length > 0 ? [ row ] : [] });
} }
} }