get channel permission for user

is it possible to check if user has a certain permission in channel for example
let ow = message.channel.permissionoverwrites.get(userID);
if (ow) {
    if (ow.Speak === false) {
        do the command
    }
}
Was this page helpful?