mirror of
https://github.com/LBRYFoundation/lbry-wunderbot.git
synced 2025-09-05 05:15:13 +00:00
Changed var to let
This commit is contained in:
parent
1f92b7b663
commit
0d2d2dc270
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue