function isUsable(?\CharlotteDunois\Livia\Commands\Context $context = null) {
        if($context === null) {
            return $this->globalEnabled;
        }
        
        if($this->guildOnly && $context->message->guild === null) {
            return false;
        }
        
        return ($this->isEnabledIn($context->message->guild) && $this->hasPermission($context) === true);
    }
function isUsable(?\CharlotteDunois\Livia\Commands\Context $context = null) {
        if($context === null) {
            return $this->globalEnabled;
        }
        
        if($this->guildOnly && $context->message->guild === null) {
            return false;
        }
        
        return ($this->isEnabledIn($context->message->guild) && $this->hasPermission($context) === true);
    }
function isUsable ( ? \ CharlotteDunois \ Livia \ Commands \ Context $ context = null ) { if ( $ context === null ) { return $ this -> globalEnabled ; } if ( $ this -> guildOnly && $ context -> message -> guild === null ) { return false ; } return ( $ this -> isEnabledIn ( $ context -> message -> guild ) && $ this -> hasPermission ( $ context ) === true ) ; }
Checks if the command is usable for a message.
@param \CharlotteDunois\Livia\Commands\Context|null  $context
@return bool
Checks if the command is usable for a message .