function setupGuildCommand($guild, \CharlotteDunois\Livia\Commands\Command $command, &$settings) {
        if(!isset($settings['command-'.$command->name])) {
            return;
        }
        
        $command->setEnabledIn(($guild !== 'global' ? $guild : null), $settings['command-'.$command->name]);
    }
function setupGuildCommand($guild, \CharlotteDunois\Livia\Commands\Command $command, &$settings) {
        if(!isset($settings['command-'.$command->name])) {
            return;
        }
        
        $command->setEnabledIn(($guild !== 'global' ? $guild : null), $settings['command-'.$command->name]);
    }
function setupGuildCommand ( $ guild , \ CharlotteDunois \ Livia \ Commands \ Command $ command , & $ settings ) { if ( ! isset ( $ settings [ 'command-' . $ command -> name ] ) ) { return ; } $ command -> setEnabledIn ( ( $ guild !== 'global' ? $ guild : null ) , $ settings [ 'command-' . $ command -> name ] ) ; }
Sets up a command's status in a guild from the guild's settings. Used in listener callbacks.
@param string|\CharlotteDunois\Yasmin\Models\Guild  $guild
@param \CharlotteDunois\Livia\Commands\Command      $command
@param array|\ArrayObject                           $settings
@return void
Sets up a command s status in a guild from the guild s settings . Used in listener callbacks .