How do I use 'this' in Phaser3?

I’m new to Phaser and I’m struggling to understand how ‘this’ is supposed to be used when calling a function I’ve made myself. I’ve tried making it a parameter of the function shiftPlayer but I still get an error saying that add is not a function. My functions are not in a classes.

function movePlayer(player, diceNumber)
{
    //....
    shiftPlayer(player, point[0] - 30, point[1] - 25);
}
function shiftPlayer(player, x, y)
{
    return thisSelf.tweens.add({
        //....
    })
}

:wave:

You can use call() to control calling context.

function update () {
  movePlayer.call(this, player, diceNumber);
}