From 477d8ec6ee59d2ce1dcbeaeffeb49e0180e74305 Mon Sep 17 00:00:00 2001 From: Loic Bersier Date: Fri, 7 Dec 2018 00:26:19 +0100 Subject: [PATCH] properly delete the tag --- commands/utility/untag.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {