function reregisterCommand($command, \CharlotteDunois\Livia\Commands\Command $oldCommand) {
        $oldCommand->group->commands->delete($oldCommand->name);
        $this->commands->delete($oldCommand->name);
        
        if(!($command instanceof \CharlotteDunois\Livia\Commands\Command)) {
            $command = $this->handleCommandSpacing($command);
            $command = $command($this->client);
        }
        
        $this->commands->set($command->name, $command);
        $command->group->commands->set($command->name, $command);
        
        $this->client->emit('debug', 'Reregistered command '.$command->groupID.':'.$command->name);
        $this->client->emit('commandReregister', $command, $oldCommand, $this);
        
        return $this;
    }