#Type 'bigint[]' is missing the following properties from type 'Readonly<PermissionsBitField>'

1 messages · Page 1 of 1 (latest)

teal path
#

any ideas what this should be

violet umbra
teal path
# violet umbra use `OverwriteData[]` instead

can you show?

        const categoryOverwrites: PermissionOverwrites[] = [
            {
                id: guild.roles.everyone.id,

                deny: [ PermissionsBitField.Flags.ViewChannel]


            },
            {
                id: moderatorRole.id,
                allow:  [PermissionsBitField.Flags.ViewChannel],
            }
        ];
violet umbra
#

change the type from PermissionOverwrites[] -> OverwriteData[]

teal path
#

legend

#

thanks for the niche tip

violet umbra
#

👍

teal path
#

cool, even got typescript to debug in webstorm