Unable to create a new channel

So I'm trying to create a new channel via
guild.channels.create({
    name: "mafia", 
    parent: parentId, 
    type: ChannelType.GuildText, 
    permissionOverwrites: players
}).catch(e => {
    interaction.followUp("An error occurred! Please try again later.") 
    console.log(e)
}) 


When I do this, I get an error saying Supplied parameter is not a User or a Role

The value of players is shown as in the picture below.

I have checked, and all ids are there. The last id is the guild ID. Any ideas on why it's throwing the error?
image-3.png
Was this page helpful?