fix of fix

This commit is contained in:
Niko Storni 2018-12-04 20:32:38 -05:00
parent 34151fc92b
commit a8578093bf

View file

@ -241,10 +241,7 @@ function doRoleTip(bot, message, tipper, words, helpmsg, MultiorRole) {
let roleToTip = message.mentions.roles.first();
if (roleToTip !== null) {
let membersOfRole = message.mentions.roles
.first()
.members.first()
.keyArray();
let membersOfRole = roleToTip.members.keyArray();
if (membersOfRole.length > 0) {
let userIDs = membersOfRole.map(member => member.user.id.replace('!', ''));
userIDs.forEach(u => {