fix(*): Update syntax of ud command to use const

This commit is contained in:
Olly Nicholass
2021-01-15 12:24:51 +00:00
parent 8a68c6c8d5
commit 0cfaf2c240
+1 -1
View File
@@ -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 <query>\``);
}
else if (args[0] != "") {
var searchQuery = args[0];
const searchQuery = args[0];
// Send a GET request to urban dictionary including the search query
axios({