module.exports = {
  type: 'member',
  resolve: (content, { bot = false }, msg) => {
    const guild = msg.channel.guild
    if (!msg.mentions.length) {
      content = String(content).toLowerCase()
      let members = guild.members.filter(m => {
        if (!bot && m.user.bot) return
        const name = m.user.username.toLowerCase()
        const nick = m.nick ? m.nick.toLowerCase() : name
        const discrim = m.user.discriminator
        return name === content || nick === content ||
        `${name}#${discrim}` === content ||
        `${nick}#${discrim}` === content ||
        name.includes(content) ||
        nick.includes(content)
      })
      if (members.length) {
        return Promise.resolve(members)
      } else {
        return Promise.reject('member.NOT_FOUND')
      }
    } else {
      return Promise.resolve(msg.mentions)
    }
  }
}

module.exports = {
  type: 'member',
  resolve: (content, { bot = false }, msg) => {
    const guild = msg.channel.guild
    if (!msg.mentions.length) {
      content = String(content).toLowerCase()
      let members = guild.members.filter(m => {
        if (!bot && m.user.bot) return
        const name = m.user.username.toLowerCase()
        const nick = m.nick ? m.nick.toLowerCase() : name
        const discrim = m.user.discriminator
        return name === content || nick === content ||
        `${name}#${discrim}` === content ||
        `${nick}#${discrim}` === content ||
        name.includes(content) ||
        nick.includes(content)
      })
      if (members.length) {
        return Promise.resolve(members)
      } else {
        return Promise.reject('member.NOT_FOUND')
      }
    } else {
      return Promise.resolve(msg.mentions.map(m => guild.members.get(m.id)))
    }
  }
}

Change ExtendedUser to Member in resolver
Change ExtendedUser to Member in resolver
