Merge pull request 'Fix not having a link set in the config crashing the bot' (#261) from feature/176-about-command into develop

Reviewed-on: https://gitea.vylpes.xyz/RabbitLabs/vylbot-app/pulls/261
Reviewed-by: VylpesTester <tester@vylpes.com>
This commit is contained in:
Vylpes 2023-02-03 17:35:15 +00:00
commit 19b6cb033c
4 changed files with 5 additions and 5 deletions

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