Changed var to let

This commit is contained in:
Ralph 2018-04-02 16:34:55 -04:00 committed by GitHub
parent 1f92b7b663
commit 0d2d2dc270
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,8 +13,8 @@ exports.addrole = {
description: 'Adds you to specified role',
process: function(bot, msg, suffix) {
// Here the bot,msg and suffix is avaible, this function can be async if needed.
var newrole = msg.guild.roles.find('name', suffix);
var baserole = msg.guild.roles.find('name', rolelist.baserole);
let newrole = msg.guild.roles.find('name', suffix);
let baserole = msg.guild.roles.find('name', rolelist.baserole);
// Checks if the user put a role in the message.
if (suffix) {