static function anyUsage(string $command, string $prefix = null, \CharlotteDunois\Yasmin\Models\User $user = null) {
        $command = \str_replace(' ', "\u{00A0}", $command);
        
        if(empty($prefix) && $user === null) {
            return '`'.$command.'`';
        }
        
        $prStr = null;
        if(!empty($prefix)) {
            $prefix = \str_replace(' ', "\u{00A0}", $prefix);
            $prStr = '`'.\CharlotteDunois\Yasmin\Utils\MessageHelpers::escapeMarkdown($prefix.$command).'`';
        }
        
        $meStr = null;
        if($user !== null) {
            $meStr = '`@'.\CharlotteDunois\Yasmin\Utils\MessageHelpers::escapeMarkdown(\str_replace(' ', "\u{00A0}", $user->tag)."\u{00A0}".$command).'`';
        }
        
        return ($prStr ?? '').(!empty($prefix) && $user !== null ? ' or ' : '').($meStr ?? '');
    }
static function anyUsage(string $command, string $prefix = null, \CharlotteDunois\Yasmin\Models\User $user = null) {
        $command = \str_replace(' ', "\u{00A0}", $command);
        
        if(empty($prefix) && $user === null) {
            return '`'.$command.'`';
        }
        
        $prStr = null;
        if(!empty($prefix)) {
            $prefix = \str_replace(' ', "\u{00A0}", $prefix);
            $prStr = '`'.\CharlotteDunois\Yasmin\Utils\MessageHelpers::escapeMarkdown($prefix.$command).'`';
        }
        
        $meStr = null;
        if($user !== null) {
            $meStr = '`@'.\CharlotteDunois\Yasmin\Utils\MessageHelpers::escapeMarkdown(\str_replace(' ', "\u{00A0}", $user->tag)."\u{00A0}".$command).'`';
        }
        
        return ($prStr ?? '').(!empty($prefix) && $user !== null ? ' or ' : '').($meStr ?? '');
    }
static function anyUsage ( string $ command , string $ prefix = null , \ CharlotteDunois \ Yasmin \ Models \ User $ user = null ) { $ command = \ str_replace ( ' ' , "\u{00A0}" , $ command ) ; if ( empty ( $ prefix ) && $ user === null ) { return '`' . $ command . '`' ; } $ prStr = null ; if ( ! empty ( $ prefix ) ) { $ prefix = \ str_replace ( ' ' , "\u{00A0}" , $ prefix ) ; $ prStr = '`' . \ CharlotteDunois \ Yasmin \ Utils \ MessageHelpers :: escapeMarkdown ( $ prefix . $ command ) . '`' ; } $ meStr = null ; if ( $ user !== null ) { $ meStr = '`@' . \ CharlotteDunois \ Yasmin \ Utils \ MessageHelpers :: escapeMarkdown ( \ str_replace ( ' ' , "\u{00A0}" , $ user -> tag ) . "\u{00A0}" . $ command ) . '`' ; } return ( $ prStr ?? '' ) . ( ! empty ( $ prefix ) && $ user !== null ? ' or ' : '' ) . ( $ meStr ?? '' ) ; }
Creates a usage string for any command.
@param string                                    $command    A command + arguments string.
@param string|null                               $prefix     Prefix to use for the prefixed command format.
@param \CharlotteDunois\Yasmin\Models\User|null  $user       User to use for the mention command format.
@return string
Creates a usage string for any command .