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

Return an error if tag doesn't exist

This commit is contained in:
toast-ts 2023-08-15 03:15:23 +10:00
parent db3cdc232e
commit a0c3bb77bc

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}>*`;