Here, it is better to specify the type of the overwrite. Plus, "allow" should be an array.
permissionOverwrites: [
{
allow: [ 'VIEW_CHANNEL' ],
id: userId,
type: 'member'
}
],
it should resolve your issue. Note that by default, your channel will be readable by everyone, use:
permissionOverwrites: [
{
deny: ['VIEW_CHANNEL'],
id: reaction.message.guild.id,
type: 'role'
},
{
allow: ['VIEW_CHANNEL'],
id: userId,
type: 'member'
}
],
so everyone can't see the channel except admins and the user
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…