function getGuildPrefix(?\CharlotteDunois\Yasmin\Models\Guild $guild = null) {
        if($guild !== null && $this->provider !== null) {
            try {
                $prefix = $this->provider->get($guild, 'commandPrefix', 404);
                if($prefix !== 404 && $prefix !== '') {
                    return $prefix;
                }
            } catch (\BadMethodCallException $e) {
                return $this->commandPrefix;
            }
        }
        
        return $this->commandPrefix;
    }
function getGuildPrefix(?\CharlotteDunois\Yasmin\Models\Guild $guild = null) {
        if($guild !== null && $this->provider !== null) {
            try {
                $prefix = $this->provider->get($guild, 'commandPrefix', 404);
                if($prefix !== 404 && $prefix !== '') {
                    return $prefix;
                }
            } catch (\BadMethodCallException $e) {
                return $this->commandPrefix;
            }
        }
        
        return $this->commandPrefix;
    }
function getGuildPrefix ( ? \ CharlotteDunois \ Yasmin \ Models \ Guild $ guild = null ) { if ( $ guild !== null && $ this -> provider !== null ) { try { $ prefix = $ this -> provider -> get ( $ guild , 'commandPrefix' , 404 ) ; if ( $ prefix !== 404 && $ prefix !== '' ) { return $ prefix ; } } catch ( \ BadMethodCallException $ e ) { return $ this -> commandPrefix ; } } return $ this -> commandPrefix ; }
Get the guild's prefix - or the default prefix. Null means only mentions.
@param \CharlotteDunois\Yasmin\Models\Guild|null  $guild
@return string|null
Get the guild s prefix - or the default prefix . Null means only mentions .