mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 04:10:59 -05:00
Return an error if tag doesn't exist
This commit is contained in:
parent
fe5d3ca8b4
commit
c3ecb0fd4b
@ -17,6 +17,7 @@ export default {
|
|||||||
};
|
};
|
||||||
({
|
({
|
||||||
send: async()=>{
|
send: async()=>{
|
||||||
|
if (!await tagData()) return interaction.reply({content:'This tag is not available in the database.',ephemeral:true});
|
||||||
let targetField = '';
|
let targetField = '';
|
||||||
const targetMember = interaction.options.getMember('target_user');
|
const targetMember = interaction.options.getMember('target_user');
|
||||||
if (targetMember) targetField = `*This tag is for <@${targetMember.id}>*`;
|
if (targetMember) targetField = `*This tag is for <@${targetMember.id}>*`;
|
||||||
|
Loading…
Reference in New Issue
Block a user