Retrieving discord ID's from patron list


Hi, I am making a Discord bot and I am trying to add a premium function. I want to make it so that whenever someone buys something I can get their Discord user id So i can give them the premium access. I am using Discord.js.