static function disambiguation($items, string $label, ?string $property = null) {
        if($items instanceof \CharlotteDunois\Collect\Collection) {
            $items = $items->all();
        }
        
        $itemList = \array_map(function ($item) use ($property) {
            if($property !== null) {
                $item = (\is_array($item) ? $item[$property] : $item->$property);
            }
            
            return '`'.\str_replace(' ', "\u{00A0}", \CharlotteDunois\Yasmin\Utils\MessageHelpers::escapeMarkdown($item)).'`';
        }, $items);
        
        return 'Multiple '.$label.' found, please be more specific: '.\implode(', ', $itemList);
    }
static function disambiguation($items, string $label, ?string $property = null) {
        if($items instanceof \CharlotteDunois\Collect\Collection) {
            $items = $items->all();
        }
        
        $itemList = \array_map(function ($item) use ($property) {
            if($property !== null) {
                $item = (\is_array($item) ? $item[$property] : $item->$property);
            }
            
            return '`'.\str_replace(' ', "\u{00A0}", \CharlotteDunois\Yasmin\Utils\MessageHelpers::escapeMarkdown($item)).'`';
        }, $items);
        
        return 'Multiple '.$label.' found, please be more specific: '.\implode(', ', $itemList);
    }
static function disambiguation ( $ items , string $ label , ? string $ property = null ) { if ( $ items instanceof \ CharlotteDunois \ Collect \ Collection ) { $ items = $ items -> all ( ) ; } $ itemList = \ array_map ( function ( $ item ) use ( $ property ) { if ( $ property !== null ) { $ item = ( \ is_array ( $ item ) ? $ item [ $ property ] : $ item -> $ property ) ; } return '`' . \ str_replace ( ' ' , "\u{00A0}" , \ CharlotteDunois \ Yasmin \ Utils \ MessageHelpers :: escapeMarkdown ( $ item ) ) . '`' ; } , $ items ) ; return 'Multiple ' . $ label . ' found, please be more specific: ' . \ implode ( ', ' , $ itemList ) ; }
If a selection is ambiguous, this will make a list of selectable items.
@param array|\CharlotteDunois\Collect\Collection       $items
@param string                                          $label
@param string|null                                     $property
@return string
If a selection is ambiguous this will make a list of selectable items .