Merge pull request #20 from ProfessorDey/patch-4
Fixing Roletip sendLBC call
This commit is contained in:
commit
34b7b2391b
1 changed files with 1 additions and 1 deletions
|
@ -273,7 +273,7 @@ function doRoleTip(message, tipper, words, helpmsg) {
|
||||||
if (message.mentions.roles.first().members.first().id) {
|
if (message.mentions.roles.first().members.first().id) {
|
||||||
let userIDs = message.mentions.roles.first().members.map(member => member.user.id.replace('!', ''));
|
let userIDs = message.mentions.roles.first().members.map(member => member.user.id.replace('!', ''));
|
||||||
for (let i = 0; i < userIDs; i++) {
|
for (let i = 0; i < userIDs; i++) {
|
||||||
sendLBC(message, tipper, userIDs[i], amount, prv);
|
sendLBC(message, tipper, userIDs[i].toString(), amount, prv);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
message.reply('Sorry, I could not find any users to tip in that role...').then(message => message.delete(5000));
|
message.reply('Sorry, I could not find any users to tip in that role...').then(message => message.delete(5000));
|
||||||
|
|
Loading…
Reference in a new issue