1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 08:20:58 -05:00

Return an error if tag doesn't exist

This commit is contained in:
Toast 2023-08-15 03:15:23 +10:00
parent 28ecc8916a
commit 7bf557c861

View File

@ -17,6 +17,7 @@ export default {
};
({
send: async()=>{
if (!await tagData()) return interaction.reply({content:'This tag is not available in the database.',ephemeral:true});
let targetField = '';
const targetMember = interaction.options.getMember('target_user');
if (targetMember) targetField = `*This tag is for <@${targetMember.id}>*`;