pass entity data into function

how do I use an entity within a datapack function? I'm creating an among-us adjacent minigame for a server. I want to pass a player username into a function to vote on them. i see /function [namespace]:vote with entity [Username] but how do I use [Username] within the function?

Continue to help post