How to manage channel and role permissions for context menu commands ?

Hello ! I'm sorry if that's quite a beginner question but I'm trying to set some channel and role permissions for a context menu command and i'm very confused by the documentation :
I try to use the setDefaultMemberPermissions method from ContextMenuCommandBuilder which apparently needs a permissions bit field, but how do i set it to be used only in a specific channel or/and by a specific role ?
Thanks in advance !
Was this page helpful?