diff --git a/commands/utility/untag.js b/commands/utility/untag.js index 34f46ca..aff4a7f 100644 --- a/commands/utility/untag.js +++ b/commands/utility/untag.js @@ -34,7 +34,7 @@ module.exports = class CustomResponseCommand extends Command { console.log(err); } else { customresponse = JSON.parse(data); //now it an object - customresponse [trigger] = '' + delete customresponse[trigger] json = JSON.stringify(customresponse); //convert it back to json fs.writeFile(`./tag/${message.guild.id}.json`, json, 'utf8', function(err) { if(err) {