Fix not having a link set in the config crashing the bot #261
4 changed files with 5 additions and 5 deletions
2
.dev.env
2
.dev.env
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 ] : [] });
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue