mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 12:21:00 -05:00
Return an error if tag doesn't exist
This commit is contained in:
parent
28ecc8916a
commit
7bf557c861
@ -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}>*`;
|
||||
|
Loading…
Reference in New Issue
Block a user