From 0cfaf2c240d9271f14b17382abeb81ada35972aa Mon Sep 17 00:00:00 2001 From: Olly Nicholass Date: Fri, 15 Jan 2021 12:24:51 +0000 Subject: [PATCH] fix(*): Update syntax of ud command to use const --- commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.js b/commands.js index bce54bd..7427e7a 100644 --- a/commands.js +++ b/commands.js @@ -44,7 +44,7 @@ function commandUrbanDictionary(Discord, config, logger, message, command, args) return message.channel.send(`You didn't provide any arguments, ${message.author}!\nCorrect Usage: \`${config.prefix}ud \``); } else if (args[0] != "") { - var searchQuery = args[0]; + const searchQuery = args[0]; // Send a GET request to urban dictionary including the search query axios({